The above works only if setup can select a physical interface. It does not create the orange0 interface if there is no physical interface left. Fortunately, it is easy to create a bridge interface with the command brctl addbr orange0
. This bridge can be used for configuring virtual machines or for binding local services. To create "orange0" persistently at system startup, put this script as "brctl-orange0" in /etc/init.d:
#!/bin/sh
set +x
. /etc/sysconfig/rc
. $rc_functions
case "${1}" in
start)
boot_mesg "Create bridge orange0..."
brctl addbr orange0
;;
stop)
boot_mesg "Destroy bridge orange0..."
brctl delbr orange0
;;
*)
echo "Usage: ${0} {start|stop}"
exit 1
;;
esac
Execute it at startup /etc/rc.d/rc3.d:
ln -sf /etc/init.d/brctl-orange0 S16orange
Setup still cannot find orange0 properly, so the final step is to update /var/ipfire/ethernet/settings
: manually:
ORANGE_MODE=bridge
ORANGE_DEV=orange0
ORANGE_ADDRESS=10.0.0.1
ORANGE_NETMASK=255.255.255.0
ORANGE_NETADDRESS=10.0.0.0