All for "Lucid Lynx":
!# cat /etc/lsb-release 
!DISTRIB_ID=Ubuntu
!DISTRIB_RELEASE=10.04
!DISTRIB_CODENAME=lucid
!DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

!# uname -a
!Linux ubuntu 2.6.32-25-generic-pae #45-Ubuntu SMP Sat Oct 16 21:01:33 UTC 2010 
i686 GNU/Linux

dpkg:
linux-image-2.6.32-25-generic-pae

Straight ahead script for a bridge without an interface (sometimes useful):
!auto vb1
!iface vb1 inet static
!  address 172.16.1.1
!  netmask 255.255.255.0
!  broadcast 172.16.1.255
!  mtu 1496
!  bridge_fd 9
!  bridge_hello 2
!  bridge_maxage 12
!  bridge_stp off

!# ifup vb1
!SIOCSIFADDR: No such device
!vb1: ERROR while getting interface flags: No such device
!SIOCSIFNETMASK: No such device
!SIOCSIFBRDADDR: No such device
!vb1: ERROR while getting interface flags: No such device
!SIOCSIFMTU: No such device
!vb1: ERROR while getting interface flags: No such device
!Failed to bring up vb1.

Does not work. You'll have to define at least one device for this bridge:
!auto vb1
!iface vb1 inet static
!  address 172.16.1.1
!  netmask 255.255.255.0
!  broadcast 172.16.1.255
!  mtu 1496
!  bridge_fd 9
!  bridge_hello 2
!  bridge_maxage 12
!  bridge_stp off
!  bridge_ports lo

!# ifup vb1
!can't add lo to bridge vb1: Invalid argument
!
!Waiting for vb1 to get ready (MAXWAIT is 20 seconds).
!ssh stop/waiting
!ssh start/running, process 2228

Quite sure the error message is nonsense device lo should be addable to any 
bridge, but it is true: it just does not work to add "lo" to any bridge! Quite 
bad!!
!# brctl show
!bridge name     bridge id               STP enabled     interfaces
!vb1             8000.000000000000       no

!# brctl showstp vb1
!vb1
! bridge id              8000.000000000000
! designated root        8000.000000000000
! root port                 0                    path cost                  0
! max age                  12.00                 bridge max age            12.00
! hello time                2.00                 bridge hello time          2.00
! forward delay             9.00                 bridge forward delay       9.00
! ageing time             300.01
! hello timer               0.20                 tcn timer                  0.00
! topology change timer     0.00                 gc timer                   4.20
! flags

Trying to add a tun-interface to the bridge does not work either:
!# brctl addif vb1 lo
!can't add lo to bridge vb1: Invalid argument

!# ssh -w 0:0 [email protected]
!# ifconfig tun0
!tun0      Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
!          POINTOPOINT NOARP 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:500 
!          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
!
!# brctl addif vb1 tun0
!can't add tun0 to bridge vb1: Invalid argument

In /proc/net/vlan is only on file: config. It holds:
!VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD

Seems as if the whole bridging code is badly broken.

-- 
VLAN does not work with Ubuntu 10.04.1 LTS "lucid lynx"
https://bugs.launchpad.net/bugs/674652
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to