Static IP on a Bridge

james at colannino.org james at colannino.org
Thu Dec 29 08:17:55 UTC 2011


Hey everyone.  I've successfully setup a network bridge in  
/etc/rc.conf.  However, I am only able to access the network if I dhcp  
on bridge0 *after* the bridge is configured.  If I try to set a static  
IP on the bridge, things don't work.  Here's my /etc/rc.conf:

cloned_interfaces="bridge0 tap0 tap1"
ifconfig_bridge0="addm re0 addm tap0 addm tap1 up inet 192.168.1.6  
netmask 255.255.255.0"
ifconfig_re0="up"
ifconfig_tap0="up"
ifconfig_tap1="up"
defaultrouter="192.168.1.1"

bridge0 is configured with the IP 192.168.1.6, but I can't ping out.   
However, once I run dhclient in bridge0, things magically work.  Does  
anyone know why the above won't work?  Thanks!

James



More information about the freebsd-questions mailing list