]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit - etc/rc.d/netif
MFC 251584:
authorhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 12 Jul 2013 01:34:24 +0000 (01:34 +0000)
committerhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 12 Jul 2013 01:34:24 +0000 (01:34 +0000)
commitc0cc18af0be6498c7cca6defa791885dc113f2d0
treed40e0acd4e1a59136d51b86c9a6e0e74ebd52b44
parent448a8e7fd141f77cbc613e6b28d6cc22b9fc97af
MFC 251584:

Add :ifname modifier to specify interface-specific routes into
{,ipv6_}static_routes and rc.d/routing.  For example:

 static_routes="foo bar:em0"
 route_foo="-net 10.0.0.0/24 -gateway 192.168.2.1"
 route_bar="-net 192.168.1.0/24 -gateway 192.168.0.2"

At boot time, all of the static routes are installed as before.
The differences are:

- "/etc/rc.d/netif start/stop <if>" now configures static routes
  with :<if> if any.
- "/etc/rc.d/routing start/stop <af> <if>" works as well.  <af> cannot be
  omitted when <if> is specified, but a keyword "any" or "all" can be used
  for <af> and <if>.

git-svn-id: svn://svn.freebsd.org/base/stable/9@253238 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/rc.d/netif
etc/rc.d/routing
share/man/man5/rc.conf.5