A bridge defined in rc.conf does not take a static IP address. According to the man page for if_bridge a bridge is created using cloned_interfaces. It is then configured using ifconfig_{bridgename}="whatever". The documentation example in the man page says: cloned_interfaces="bridge0" ifconfig_bridge0="addm em0 addm em1 DHCP" Assuming that you were going to add a static IP address for the bridge that would be: ifconfig_bridge0="addm em0 addm em1 inet 10.0.0.1 netmask 255.0.0.0" This however does not work. The bridge is created with child interfaces correctly, but an IP address is not assigned to the bridge interface. This creates problems during startup as many services need to bind to an IP. The workaround is to make your own RC script and assign it there. If there is another way to do this, it should be documented. How-To-Repeat: Attempt to create static ip address on bridged interface during bootup. See rc.conf example above.
Responsible Changed From-To: freebsd-bugs->freebsd-rc reassign to rc.
Hi, It would be interesting to see if it worked with a different order of the arguments, please try with: ifconfig_bridge0="inet 10.0.0.1 netmask 255.0.0.0 addm em0 addm em1" cheers, Andrew
Hi, I had the same problem setting up a bridge with static ip address. I tried with a different order of arguments as it was sugested by Andrew and it worked. Here's my /etc/rc.conf: ifconfig_vr0="up" ifconfig_dc0="up" cloned_interfaces="bridge0" ifconfig_bridge0="inet 10.0.1.10 netmask 255.255.255.0 addm vr0 addm dc0" cheers
Responsible Changed From-To: freebsd-rc->freebsd-net This is a limitation of ifconfig rather than rc. The ip address needs to be the first argument, why is this so? http://www.freebsd.org/cgi/query-pr.cgi?pr=107035 Date: Mon, 16 Apr 2007 23:26:30 +0930
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>