Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks to mizumoto for your reply? But why I ping from 192.168.153.2(on cc201, vlan 6) to 192.168.155.2(on cc201, vlan 8), it is not connected? Is it because they are on the same physical host? If so, how can I make VLAN work? What should I do?

Because I the image I use is simple tty-linux, so the information may be not detail. If you need more informations, just tell me! Routing tables of VMs are as below: 1) on 192.168.153.2: $ route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.153.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.153.1 0.0.0.0 UG 0 0 0 eth0

2)on 192.168.155.4: $ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.155.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.155.1 0.0.0.0 UG 0 0 0 eth0

3) cc201 ovs-vsctl:

ovs-vsctl show

974585a6-2b5b-4bea-be4a-3127f71007bf Bridge vlan-test-br Port vlan-test-br Interface vlan-test-br type: internal Bridge br-int Port "gw-87a6f352-35" tag: 4 Interface "gw-87a6f352-35" type: internal Port "gw-e7863e30-1c" tag: 6 Interface "gw-e7863e30-1c" type: internal Port "tap908304d1-d1" tag: 8 Interface "tap908304d1-d1" Port "gw-6d53af57-d9" tag: 8 Interface "gw-6d53af57-d9" type: internal Port "tap1585a714-10" tag: 6 Interface "tap1585a714-10" Port br-int Interface br-int type: internal Port "eth1" Interface "eth1" Port "gw-3faffe59-5d" tag: 5 Interface "gw-3faffe59-5d" type: internal Port "tap09ae4556-2b" tag: 8 Interface "tap09ae4556-2b" Port "tap77918099-5a" tag: 6 Interface "tap77918099-5a" Port "tap6011d326-33" tag: 6 Interface "tap6011d326-33" Port "gw-9a2757f4-2d" tag: 7 Interface "gw-9a2757f4-2d" type: internal ovs_version: "1.4.0+build0"

4) cc201 ifconfig:

ifconfig

br-int Link encap:Ethernet HWaddr 00:1b:21:c6:35:a6
inet6 addr: fe80::21b:21ff:fec6:35a6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10524930 errors:0 dropped:0 overruns:0 frame:0 TX packets:9110 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:714364025 (714.3 MB) TX bytes:783412 (783.4 KB)

eth0 Link encap:Ethernet HWaddr d0:67:e5:23:96:d4
inet addr:10.131.0.31 Bcast:10.131.255.255 Mask:255.252.0.0 inet6 addr: fe80::d267:e5ff:fe23:96d4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3473405 errors:0 dropped:0 overruns:0 frame:0 TX packets:2372097 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:694315585 (694.3 MB) TX bytes:1224320432 (1.2 GB) Interrupt:43 Base address:0x6000

eth1 Link encap:Ethernet HWaddr 00:1b:21:c6:35:a6
inet6 addr: fe80::21b:21ff:fec6:35a6/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:10906571 errors:0 dropped:0 overruns:0 frame:0 TX packets:99047 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:814630415 (814.6 MB) TX bytes:21598782 (21.5 MB) Interrupt:18 Memory:e10c0000-e10e0000

eth1.25 Link encap:Ethernet HWaddr 00:1b:21:c6:35:a6
inet addr:192.168.200.10 Bcast:192.168.200.255 Mask:255.255.255.0 inet6 addr: fe80::21b:21ff:fec6:35a6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:95905 errors:0 dropped:0 overruns:0 frame:0 TX packets:138 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4799632 (4.7 MB) TX bytes:13124 (13.1 KB)

gw-3faffe59-5d Link encap:Ethernet HWaddr fa:16:3e:34:03:72
inet addr:192.168.152.1 Bcast:192.168.152.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe34:372/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:231581 errors:0 dropped:0 overruns:0 frame:0 TX packets:11756 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:17957763 (17.9 MB) TX bytes:2282431 (2.2 MB)

gw-6d53af57-d9 Link encap:Ethernet HWaddr fa:16:3e:22:d7:40
inet addr:192.168.155.1 Bcast:192.168.155.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe22:d740/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:80548 errors:0 dropped:0 overruns:0 frame:0 TX packets:19101 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8413833 (8.4 MB) TX bytes:2921376 (2.9 MB)

gw-87a6f352-35 Link encap:Ethernet HWaddr fa:16:3e:44:9c:9b
inet addr:192.168.151.1 Bcast:192.168.151.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe44:9c9b/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:268056 errors:0 dropped:0 overruns:0 frame:0 TX packets:35932 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:26677418 (26.6 MB) TX bytes:6863883 (6.8 MB)

gw-9a2757f4-2d Link encap:Ethernet HWaddr fa:16:3e:16:12:4e
inet addr:192.168.154.1 Bcast:192.168.154.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe16:124e/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:84896 errors:0 dropped:0 overruns:0 frame:0 TX packets:1275 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5781594 (5.7 MB) TX bytes:227757 (227.7 KB)

gw-e7863e30-1c Link encap:Ethernet HWaddr fa:16:3e:7f:6e:64
inet addr:192.168.153.1 Bcast:192.168.153.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe7f:6e64/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:394653 errors:0 dropped:0 overruns:0 frame:0 TX packets:78912 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43450135 (43.4 MB) TX bytes:11888884 (11.8 MB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12419775 errors:0 dropped:0 overruns:0 frame:0 TX packets:12419775 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5098372204 (5.0 GB) TX bytes:5098372204 (5.0 GB)

tap09ae4556-2b Link encap:Ethernet HWaddr ca:95:1e:48:33:89
inet6 addr: fe80::c895:1eff:fe48:3389/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5387 errors:0 dropped:0 overruns:0 frame:0 TX packets:60301 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:1323149 (1.3 MB) TX bytes:5239956 (5.2 MB)

tap1585a714-10 Link encap:Ethernet HWaddr 86:fc:eb:6b:36:9e
inet6 addr: fe80::84fc:ebff:fe6b:369e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:129863 errors:0 dropped:0 overruns:0 frame:0 TX packets:274698 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:16792199 (16.7 MB) TX bytes:24268329 (24.2 MB)

tap6011d326-33 Link encap:Ethernet HWaddr d2:56:1e:77:52:21
inet6 addr: fe80::d056:1eff:fe77:5221/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5143 errors:0 dropped:0 overruns:0 frame:0 TX packets:60777 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:1196755 (1.1 MB) TX bytes:7073594 (7.0 MB)

tap77918099-5a Link encap:Ethernet HWaddr be:b5:63:97:aa:73
inet6 addr: fe80::bcb5:63ff:fe97:aa73/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4697 errors:0 dropped:0 overruns:0 frame:0 TX packets:60320 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:1154503 (1.1 MB) TX bytes:7029312 (7.0 MB)

tap908304d1-d1 Link encap:Ethernet HWaddr 42:e7:2f:38:21:91
inet6 addr: fe80::40e7:2fff:fe38:2191/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5408 errors:0 dropped:0 overruns:0 frame:0 TX packets:63295 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:1328382 (1.3 MB) TX bytes:5450809 (5.4 MB)

virbr0 Link encap:Ethernet HWaddr ee:96:fd:10:c7:53
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

5) cc201 route:

route

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default ccs00.cloud.dhc 0.0.0.0 UG 100 0 0 eth0 10.128.0.0 * 255.252.0.0 U 0 0 0 eth0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 192.168.151.0 * 255.255.255.0 U 0 0 0 gw-87a6f352-35 192.168.152.0 * 255.255.255.0 U 0 0 0 gw-3faffe59-5d 192.168.153.0 * 255.255.255.0 U 0 0 0 gw-e7863e30-1c 192.168.154.0 * 255.255.255.0 U 0 0 0 gw-9a2757f4-2d 192.168.155.0 * 255.255.255.0 U 0 0 0 gw-6d53af57-d9 192.168.200.0 * 255.255.255.0 U 0 0 0 eth1.25

6) cc201 iptables-save: http://paste.openstack.org/show/18631/

7) cc202 ovs-vsctl:

ovs-vsctl show

ffa556ea-e355-4bf1-b652-fb0b6d7120b7 Bridge br-int Port br-int Interface br-int type: internal Port "eth1" Interface "eth1" Port "tap13bcaa60-3a" tag: 6 Interface "tap13bcaa60-3a" Port "tape682c82f-0c" tag: 6 Interface "tape682c82f-0c" Port "tapb697f556-23" tag: 6 Interface "tapb697f556-23" Port "tapc636bfdf-a1" tag: 6 Interface "tapc636bfdf-a1" Port "tap3f1e7fe8-5d" tag: 8 Interface "tap3f1e7fe8-5d" ovs_version: "1.4.0+build0"

8) cc202 ifconfig:

ifconfig

br-int Link encap:Ethernet HWaddr 00:1b:21:c6:35:b4
inet6 addr: fe80::21b:21ff:fec6:35b4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4785437 errors:0 dropped:0 overruns:0 frame:0 TX packets:2749 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:339951419 (339.9 MB) TX bytes:236366 (236.3 KB)

eth0 Link encap:Ethernet HWaddr d0:67:e5:23:96:ab
inet addr:10.131.0.244 Bcast:10.131.255.255 Mask:255.252.0.0 inet6 addr: fe80::d267:e5ff:fe23:96ab/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2553715 errors:0 dropped:0 overruns:0 frame:0 TX packets:2636818 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1160731658 (1.1 GB) TX bytes:604610655 (604.6 MB) Interrupt:40 Base address:0x4000

eth1 Link encap:Ethernet HWaddr 00:1b:21:c6:35:b4
inet6 addr: fe80::21b:21ff:fec6:35b4/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:4969577 errors:0 dropped:0 overruns:0 frame:0 TX packets:68991 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:371072963 (371.0 MB) TX bytes:14618515 (14.6 MB) Interrupt:18 Memory:e10c0000-e10e0000

eth1.25 Link encap:Ethernet HWaddr 00:1b:21:c6:35:b4
inet addr:192.168.200.11 Bcast:192.168.200.255 Mask:255.255.255.0 inet6 addr: fe80::21b:21ff:fec6:35b4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:95884 errors:0 dropped:0 overruns:0 frame:0 TX packets:138 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4798498 (4.7 MB) TX bytes:13124 (13.1 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1116 errors:0 dropped:0 overruns:0 frame:0 TX packets:1116 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:327986 (327.9 KB) TX bytes:327986 (327.9 KB)

tap13bcaa60-3a Link encap:Ethernet HWaddr 2a:b0:9e:55:45:8b
inet6 addr: fe80::28b0:9eff:fe55:458b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4847 errors:0 dropped:0 overruns:0 frame:0 TX packets:60892 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:1172829 (1.1 MB) TX bytes:7117880 (7.1 MB)

tap3f1e7fe8-5d Link encap:Ethernet HWaddr 1e:ef:54:90:3b:b7
inet6 addr: fe80::1cef:54ff:fe90:3bb7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13508 errors:0 dropped:0 overruns:0 frame:0 TX packets:68710 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:2118307 (2.1 MB) TX bytes:6078996 (6.0 MB)

tapb697f556-23 Link encap:Ethernet HWaddr a2:da:d6:7d:1c:63
inet6 addr: fe80::a0da:d6ff:fe7d:1c63/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:33911 errors:0 dropped:0 overruns:0 frame:0 TX packets:170700 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:10107665 (10.1 MB) TX bytes:28282735 (28.2 MB)

tapc636bfdf-a1 Link encap:Ethernet HWaddr 3a:04:ff:4c:5f:c7
inet6 addr: fe80::3804:ffff:fe4c:5fc7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:36931 errors:0 dropped:0 overruns:0 frame:0 TX packets:173664 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:10444839 (10.4 MB) TX bytes:28618769 (28.6 MB)

tape682c82f-0c Link encap:Ethernet HWaddr 76:eb:44:9e:25:36
inet6 addr: fe80::74eb:44ff:fe9e:2536/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:46940 errors:0 dropped:0 overruns:0 frame:0 TX packets:180542 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:12607864 (12.6 MB) TX bytes:29152040 (29.1 MB)

9) cc202 iptables-save: http://paste.openstack.org/show/18632/