Edit FreeBSD /etc/rc.conf
Don’t do this on classroom machines
On production machines, add lines to /etc/rc.conf to configure network on reboot
hostname="porcupine.tomato.example"
ifconfig_fxp0="inet 192.0.2.5 netmask 255.255.255.224"
defaultrouter="192.0.2.1"
See /etc/default/rc.conf for more information