Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2020 15:54:04 -0700
From:      Scott Gasch <>
Subject:   Persistent static route not present after reboot
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help

I'm trying to add a persistent static route to a freebsd machine:

# uname -a
FreeBSD backup 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC  amd64

I've done this by adding these lines to rc.conf per this doc


When I reboot the machine, the route is not there:
# netstat -rn
Routing tables
Destination        Gateway            Flags     Netif Expire
default             UGS         em0
        link#1             U           em0          link#1             UHS         lo0          link#4             UH          lo0
However if I run "service routing restart" the route is added.  Why isn't
this happening at boot time?

# service routing restart
Doing route _loopback
delete host
: gateway lo0
Doing route vpn
route: route has not been found
delete net
: gateway fib 0: not in table.   // <--- not there to tear down
Doing route _default
delete net default: gateway
delete host ::1: gateway lo0
delete net fe80::: gateway ::1
delete net ff02::: gateway ::1
delete net ::ffff:
: gateway ::1
delete net ::
: gateway ::1
Doing route _loopback
add host
: gateway lo0
Doing route vpn
add net
: gateway    // <--- but happy to add it now.
Doing route _default
add net default: gateway
add host ::1: gateway lo0
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:
: gateway ::1
add net ::
: gateway ::1


Want to link to this message? Use this URL: <>