[Bridge] problems with bridging and dhcp

Carlos Carvalho carlos at fisica.ufpr.br
Sat Sep 2 12:59:41 PDT 2006


I'm trying to use bridging in our servers and found a problem with
dhcp. Some clients manage to get an IP from the server, using
don't seem to get an answer. The server sends a BOOTREPLY but the
clients continue to send BOOTREQUEST for ever. There are also some
(occasional) messages from the dhcp server like "ip length 576
disagrees with bytes received 590" followed by "accepting packet with
data after udp payload".

I'm using kernel.org's The bridge is created like this:

ifconfig eth1 up
vconfig set_name_type DEV_PLUS_VID_NO_PAD
brctl addbr br0

for i in <range of vlan tags>; do
   vconfig add eth1 $i
   vconfig set_flag eth1.$i 1 0
   brctl addif br0 eth1.$i

for i in <range of vlan tags>; do
   ifconfig eth1.$i up

ifconfig br0 <internal-ip>

Note that eth1 doesn't get an IP.

I also have a question. With the above setup shouldn't the bridge
forward packets between all vlans automatically? ebtables says the
default policy is accept but pinging between machines in different
vlans doesn't work. Does the bridge adjusts the tags (I'd think so)?
If it doesn't the switch will block the frames.

More information about the Bridge mailing list