[Bug 498987] Re: vlan
Thomas Schweikle
498987 at bugs.launchpad.net
Thu Sep 1 11:32:33 UTC 2011
It's the same for 11.04, 10.10, 10.04, 9.10, 9.04 ...
I have set up on PC1:
/etc/networking/interfaces:
! auto eth0.114
! iface eth0.114 inet manual
! vlan-raw-device eth0
!
!auto vm1
!iface vm1 inet static
! address 192.168.114.94
! netmask 255.255.254.0
! bridge_fd 3
! bridge_hello 2
! bridge_stp off
! bridge_ports eth0.114
after restarting:
!root at adga:~# ifconfig vm1
!vm1 Link encap:Ethernet Hardware Adresse 00:24:1d:df:f0:38
! inet Adresse:192.168.114.94 Bcast:192.168.115.255 Maske:255.255.254.0
! inet6-Adresse: fe80::224:1dff:fedf:f038/64 Gültigkeitsbereich:Verbindung
! UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
! RX packets:0 errors:0 dropped:0 overruns:0 frame:0
! TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
! Kollisionen:0 Sendewarteschlangenlänge:0
! RX bytes:0 (0.0 B) TX bytes:2018 (2.0 KB)
!root at adga:~# ifconfig eth0.114
!eth0.114 Link encap:Ethernet Hardware Adresse 00:24:1d:df:f0:38
! inet6-Adresse: fe80::224:1dff:fedf:f038/64 Gültigkeitsbereich:Verbindung
! UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
! RX packets:0 errors:0 dropped:0 overruns:0 frame:0
! TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
! Kollisionen:0 Sendewarteschlangenlänge:0
! RX bytes:0 (0.0 B) TX bytes:2496 (2.4 KB)
!root at adga:~# brctl show
!bridge name bridge id STP enabled interfaces
!vm1 8000.00241ddff038 no eth0.114
Pinging the interface works:
!root at adga:~# ping 192.168.114.94
!PING 192.168.114.94 (192.168.114.94) 56(84) bytes of data.
!64 bytes from 192.168.114.94: icmp_req=1 ttl=64 time=0.039 ms
!64 bytes from 192.168.114.94: icmp_req=2 ttl=64 time=0.036 ms
!^C
!--- 192.168.114.94 ping statistics ---
!2 packets transmitted, 2 received, 0% packet loss, time 999ms
!rtt min/avg/max/mdev = 0.036/0.037/0.039/0.006 ms
On PC2:
/etc/network/interfaces:
!auto eth0.114
!iface eth0.114 inet manual
! vlan-raw-device eth0
!
!auto vm2
!iface vm2 inet static
! address 192.168.114.98
! netmask 255.255.254.0
! bridge_fd 3
! bridge_hello 2
! bridge_maxage 12
! bridge_stp off
! bridge_ports eth0.114
!tps at ivory:~$ ifconfig vm2
!vm2 Link encap:Ethernet Hardware Adresse 00:1e:68:06:4b:e9
! inet Adresse:192.168.114.98 Bcast:192.168.115.255 Maske:255.255.254.0
! inet6-Adresse: fe80::21e:68ff:fe06:4be9/64 Gültigkeitsbereich:Verbindung
! UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
! RX packets:0 errors:0 dropped:0 overruns:0 frame:0
! TX packets:224 errors:0 dropped:0 overruns:0 carrier:0
! Kollisionen:0 Sendewarteschlangenlänge:0
! RX bytes:0 (0.0 B) TX bytes:32662 (32.6 KB)
!tps at ivory:~$ ifconfig eth0.114
!eth0.114 Link encap:Ethernet Hardware Adresse 00:1e:68:06:4b:e9
! inet6-Adresse: fe80::21e:68ff:fe06:4be9/64 Gültigkeitsbereich:Verbindung
! UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
! RX packets:0 errors:0 dropped:0 overruns:0 frame:0
! TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
! Kollisionen:0 Sendewarteschlangenlänge:0
! RX bytes:0 (0.0 B) TX bytes:41537 (41.5 KB)
!tps at ivory:~$ brctl show
!bridge name bridge id STP enabled interfaces
!vm2 8000.001e68064be9 no eth0.114
pinging the own interface works:
!tps at ivory:~$ ping 192.168.114.98
!PING 192.168.114.98 (192.168.114.98) 56(84) bytes of data.
!64 bytes from 192.168.114.98: icmp_req=1 ttl=64 time=0.103 ms
!64 bytes from 192.168.114.98: icmp_req=2 ttl=64 time=0.046 ms
!^C
!--- 192.168.114.98 ping statistics ---
!2 packets transmitted, 2 received, 0% packet loss, time 999ms
!rtt min/avg/max/mdev = 0.046/0.074/0.103/0.029 ms
Now trying to ping the other system:
!tps at ivory:~$ ping 192.168.114.94
!PING 192.168.114.94 (192.168.114.94) 56(84) bytes of data.
!From 192.168.114.98 icmp_seq=1 Destination Host Unreachable
!From 192.168.114.98 icmp_seq=2 Destination Host Unreachable
!From 192.168.114.98 icmp_seq=3 Destination Host Unreachable
!^C
!--- 192.168.114.94 ping statistics ---
!5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4004ms
doesn't work! Check routing:
PC1:
!root at adga:~# route -n
!Kernel-IP-Routentabelle
!Ziel Router Genmask Flags Metric Ref Use Iface
!192.168.114.0 0.0.0.0 255.255.254.0 U 0 0 0 vm1
PC2:
!tps at ivory:~$ route -n
!Kernel-IP-Routentabelle
!Ziel Router Genmask Flags Metric Ref Use Iface
!192.168.114.0 0.0.0.0 255.255.254.0 U 0 0 0 vm2
Looks OK to me!
Setting up the same, but without vlan tags works out of the box.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vlan in Ubuntu.
https://bugs.launchpad.net/bugs/498987
Title:
vlan
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlan/+bug/498987/+subscriptions
More information about the Ubuntu-server-bugs
mailing list