Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Dec 2011 01:48:19 -0600
From:      james@colannino.org
To:        freebsd-questions@freebsd.org
Subject:   Static IP on a Bridge
Message-ID:  <20111229014819.11102imhiognb9es@gator1823.hostgator.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111229014819.11102imhiognb9es>