Tuesday, February 6, 2018
Network interface bridging on FreeNAS
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). Heres what a few hours produced...
* Enable SSH in FreeNAS. Dont bother using the web console: cant copy-paste (in Firefox at least). I assume youre 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 well be editing /conf/base/etc instead.
* nano /conf/base/etc/rc.conf and add the following (change the interfaces as needed)...
gateway_enable="YES"* nano /conf/base/etc/sysctl.conf and add the following (may not be needed for FreeNAS per se)...
cloned_interfaces="bridge0"
autobridge_interfaces="bridge0"
autobridge_bridge0="em0 em1"
ifconfig_em0="up"
ifconfig_em1="up"
net.link.bridge.pfil_member=0* reboot and then log back into FreeNAS. You should be able to assign an IP to the bridged interface.
net.link.bridge.pfil_bridge=0
net.link.bridge.pfil_local_phys=0
net.link.ether.bridge=1
References of note
* FreeBSD bridging manual: did not readily mention autobridge
* Post that I found autobridge in