Adding static routes in FreeBSD

Adding routes is easy but doesn’t survive reboots. In order to make a route static or persistent we add an entry to the /etc/rc.conf file

route add

becomes this in /etc/rc.conf
net1=”-net 192.1681.0/24

or if you have multiple routes they are space delimited like this
static_routes=”net1 net2″
route_net1=”-net  192.1681.0/24″
route_net2=”-net  192.1682.0/24″