DHCP on bridge0 fails on boot

Paul Grave paul at stomer.net
Wed Nov 25 23:01:22 UTC 2009


I need some help configure DHCP on my bridge.  I'm pretty much out of ideas, so I'd be grateful for any help.  

On boot, I want my FreeBSD install to create a bridge, add a couple of interfaces to it (re0 and tap0), and they receive an IP address via DHCP. 

Here are the relevant lines in rc.conf:

cloned_interfaces="bridge0"
autobridge_interfaces="bridge0"
autobridge_bridge0="tap* re0"
ifconfig_re0="up"
ifconfig_bridge0="up"
ifconfig_bridge0="DHCP"

Whilst my system is booting I see this:
"Waiting 30s for the default route interface"
When that message is being display I can also see output similar to ifconfig's.  I can see that both bridge0 and re0 are up.  I can also see that re0 has a status or "no carrier".  I'm not sure if that is significant or not. 

If I look at dmesg, "re0: link state changed to UP" is right at the bottom and ifconfig displays something similar to this:

re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=3898<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
	ether 00:1c:c0:de:9d:39
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
	inet6 ::1 prefixlen 128 
	inet 127.0.0.1 netmask 0xff000000 
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 76:15:56:05:de:63
	id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
	maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
	root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
	member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
	        ifmaxaddr 0 port 1 priority 128 path cost 20000
	member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
	        ifmaxaddr 0 port 5 priority 128 path cost 2000000
tap0: flags=8942<BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:bd:a0:b1:00:00
	Opened by PID 1027

--
Paul Grave 
email: mailto:paul at stomer.net



More information about the freebsd-questions mailing list