Ask Your Question

Revision history [back]


# docker ps
CONTAINER ID        IMAGE                                COMMAND             CREATED             STATUS              PORTS                  NAMES
9081b29f54bc        sotolitolabs/nginx-test-net:latest   "/usr/sbin/nginx"   10 hours ago        Up 10 hours                                nova-5f3309cf-06df-4969-8810-45bd917b3d4a   
 

# ip netns
9081b29f54bc276a87770f058013b33a86019bda747052f2e2ba350bea1b8573
6240bfee62fcfe2b8546b06bb051ee34a1e2476c1da8a231b0f54895ac2f7884
51a4a54efbb9185b9112b73bd354ee19c02e376df91d674e5cda59cef1da7ca5
89b59bf9f442a0d468d9d4d8c9370c53f8e4a3ba4d8affcd6be8b2dde84fff64
3e0514527a598ab9262a2d5353ee5fe3f0687dc8fbf8a16eb8f05388bcd6a23e
c39d11c069a81b1473c7961852daf691c0588d2e5ad467ff6b65b3eb5483ac3d
96759c5e11b3041c30750b95a8a1d68da2c0e7ea716b926361b948ed58e5d4e6
557c4e73d6cec26a89a569ba22414b54b016d855e88e85338e0640247cf028fa
d04079cd207db77604f8544d03f784da8235a55bd339baef03323e0fcb841231
69f35240de4fc1bf26a981f3db26ccc19903deac152144f2d34088e5c63b68de
990a92c1f5fc9f591285a3bb90fdeac9991aa96fd8fe1bb3f7facbaa165e018f
1e11bffe192e96568553a1e7ad80aacb9f8cc205c48eb358d3cded6be4d71b92
3a833584bb0459d84e25154d10443c87eaf0cc5cf58312cc3f3fd6f2e36236a4
qdhcp-f7f6b1c3-3431-4831-b32c-6a00811d7056
 

# ovs-vsctl show
2de4ca9a-78cc-426c-84d0-a43537c66d62
    Bridge br-tun
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
    Bridge br-int
        fail_mode: secure
        Port "tapd2d0eea1-6a"
            tag: 1
            Interface "tapd2d0eea1-6a"
        Port br-int
            Interface br-int
                type: internal
        Port "tap6b2917cb-4c"
            tag: 1
            Interface "tap6b2917cb-4c"
        Port "tap7893b669-3e"
            tag: 1
            Interface "tap7893b669-3e"
        Port "tap38e65528-a9"
            tag: 1
            Interface "tap38e65528-a9"
        Port "tapdf6d26d4-c8"
            tag: 1
            Interface "tapdf6d26d4-c8"
        Port "tap451d2e6f-93"
            tag: 1
            Interface "tap451d2e6f-93"
        Port "tapc9b6577a-ac"
            tag: 1
            Interface "tapc9b6577a-ac"
        Port "tape4d2a4f7-36"
            tag: 1
            Interface "tape4d2a4f7-36"
        Port "tapd77a11f0-33"
            tag: 1
            Interface "tapd77a11f0-33"
        Port "tap2a930a1f-c5"
            tag: 1
            Interface "tap2a930a1f-c5"
        Port "tap5116e690-9a"
            tag: 1
            Interface "tap5116e690-9a"
        Port "tapbbe59188-ab"
            tag: 1
            Interface "tapbbe59188-ab"
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "tapa24789ad-23"
            tag: 1
            Interface "tapa24789ad-23"
        Port "tap863eb9a3-46"
            tag: 4095
            Interface "tap863eb9a3-46"
                type: internal
    Bridge br-ex
        Port "eth0"
            Interface "eth0"
        Port "nsbbe59188-ab"
            Interface "nsbbe59188-ab"
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.3.0"
 

Couldn't find the router in the ip netns output

I don't know what i did wrong here. But i guess this is the source of my problems How can i create this router??

This part i do have:


# ip netns exec qdhcp-f7f6b1c3-3431-4831-b32c-6a00811d7056 route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 tap863eb9a3-46
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tap863eb9a3-46
 

# ip netns exec qdhcp-f7f6b1c3-3431-4831-b32c-6a00811d7056 ifconfig
lo: flags=73<up,loopback,running>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap863eb9a3-46: flags=4163<up,broadcast,running,multicast>  mtu 1500
        inet 10.0.0.2  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::f816:3eff:fe24:7b2c  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:24:7b:2c  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 648 (648.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 

Thanks!
Ivan