Re: linux bridging vlans?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 30, 2006 at 02:43:05AM +0200, Andraz Sraka wrote:
> re
> 
> can somebody tell me what am I doing wrong (at this late night hour),
> because vlan are not getting bridged at all.
> 
>    ifconfig eth0 0.0.0.0 up
>    ifconfig eth1 0.0.0.0 up
>    brctl addbr br0
>    brctl addif br0 eth0
>    brctl addif br0 eth1
>    ifconfig br0 up
>    vconfig add br0 X
>    vconfig add br0 Y
> 
> X = vlan-ID (example: 222)
> Y = vlan ID (example: 223)
>
You can't add vlan interface to bridge , bridge connects two or more
physical ethernet interfaces to one logical. 

Would be better to first create vlans on eth0/1 and next you can bridge
both vlans.

Something like that:

vconfig add eth0 X
vconfig add eth0 Y
vconfig add eth1 X
vconfig add eth1 Y
brctl addbr br0
brctl addif br0 eth0.X
brctl addif br0 eth1.X

brctl addbr br1
brctl addif br1 eth0.Y
brctl addif br1 eth1.Y

/pch

-- 
Dyslexia bug unpatched since 1977 ...
exploit has been leaked to the underground.
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux