Saturday, March 30, 2013

Network interface bridging on FreeNAS

The information regarding bridging in FreeNAS is quite scattered. And frankly, I think they changed some stuff from version 8 to 8.3.1 (latest). Here's what a few hours produced...

* Enable SSH in FreeNAS. Don't bother using the web console: can't copy-paste (in Firefox at least). I assume you're logged in as root via SSH for the following steps...
* ifconfig | more : take note of what interfaces you need to bridge.
* mount -rw / : /etc gets replaced on boot, so we'll be editing /conf/base/etc instead.
* nano /conf/base/etc/rc.conf and add the following (change the interfaces as needed)...
autobridge_bridge0="em0 em1"
* nano /conf/base/etc/sysctl.conf and add the following (may not be needed for FreeNAS per se)...
 * reboot and then log back into FreeNAS. You should be able to assign an IP to the bridged interface.

References of note

* FreeBSD bridging manual: did not readily mention autobridge
* Post that I found autobridge in

1 comment: