My code is given below, but the bridge is not getting created while booting up:
/etc/rc.conf
/boot/loader.conf
/etc/sysctl.conf
But still in the boot-up phase the bridge is not getting created. When I enter the command to create the bridge it's working. Commands I used to create the bridge manually are given below.
When I use the above commands manually the bridge is working. But I want to get it created as default while booting up.
/etc/rc.conf
Code:
if_bridge_load="YES"
cloned_interface="bridge0"
ifconfig_bridge0="addm em0 addm em1 up"
sshd_enable="YES"
firewall_enable="YES"
firewall_type="open
firewall_quiet="YES"
hostname="Bridge"
static route "-net 192.168.20.0 192.168.30.11 255.255.255.0"
/boot/loader.conf
Code:
dummynet_load="YES"
if_bridge_load="YES"
ipfw_load="YES"
kern.hz=10000
/etc/sysctl.conf
Code:
net.link.bridge.ipfw=1
But still in the boot-up phase the bridge is not getting created. When I enter the command to create the bridge it's working. Commands I used to create the bridge manually are given below.
Code:
Bridge# ifconfig bridge create
Bridge# ifconfig em0 up
Bridge# ifconfig em1 up
Bridge# ipfw add 2000 pipe 1 ip from any to any
Bridge# ipfw pipe 1 config delay 20ms plr .2