summaryrefslogtreecommitdiffstats
path: root/share/man/man5/rc.conf.5
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-06-09 18:11:36 +0000
committerhrs <hrs@FreeBSD.org>2013-06-09 18:11:36 +0000
commit2ec3ccab05ceb9d46ff8bfd7510e7859e344aa5a (patch)
tree8afffc588e1b5a5d270906681d36fabdc14b5337 /share/man/man5/rc.conf.5
parent64a7278134b4fcca2717b660dc511d4b792d12c4 (diff)
downloadFreeBSD-src-2ec3ccab05ceb9d46ff8bfd7510e7859e344aa5a.zip
FreeBSD-src-2ec3ccab05ceb9d46ff8bfd7510e7859e344aa5a.tar.gz
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>.
Diffstat (limited to 'share/man/man5/rc.conf.5')
-rw-r--r--share/man/man5/rc.conf.512
1 files changed, 10 insertions, 2 deletions
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5
index 891a0c2..63c0ea2 100644
--- a/share/man/man5/rc.conf.5
+++ b/share/man/man5/rc.conf.5
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 27, 2012
+.Dd June 9, 2013
.Dt RC.CONF 5
.Os
.Sh NAME
@@ -2689,10 +2689,18 @@ whose contents will later be passed to a
operation.
For example:
.Bd -literal
-static_routes="mcast gif0local"
+static_routes="ext mcast:gif0 gif0local:gif0"
+route_ext="-net 10.0.0.0/24 -gateway 192.168.0.1"
route_mcast="-net 224.0.0.0/4 -iface gif0"
route_gif0local="-host 169.254.1.1 -iface lo0"
.Ed
+.Pp
+When an
+.Ar element
+is in the form of
+.Li name:ifname ,
+the route is specific to the interface
+.Li ifname .
.It Va ipv6_static_routes
.Pq Vt str
The IPv6 equivalent of
OpenPOWER on IntegriCloud