Technical data

Gateway Routing Daemon (GATED) Configuration Reference
A.17 Static Routes Statements
static {
( host host ) | default |
( network [ ( mask mask ) | ( masklen number ) ] )
gateway gateway_list
[ interface interface_list ]
[ preference preference ]
[ retain ]
[ reject ]
[ blackhole ]
[ noinstall ] ;
( network [ ( mask mask ) | ( masklen number ) ] )
interface interface
[ preference preference ]
[ retain ]
[ reject ]
[ blackhole ]
[ noinstall ] ;
};
network [ ( mask mask ) | ( masklen number ) ] interface interface
This sytax is used to define a static interface route which is used for primitive
support of multiple network addresses on one interface.
The parameters for the static route statement are as follows:
interface interface_list
When
interface
is specified, gateways are only considered valid when they
are on one of these interfaces. See Section A.10.1 for the description of the
interface_list.
preference preference
Selects the preference of this static route. The preference controls how this
route competes with routes from other protocols. The default preference is 60.
retain
Normally, GATED removes all routes except interface routes from the kernel
forwarding table during a graceful shutdown. The
retain
option may be used
to prevent specific static routes from being removed.
retain
insures that
some routing is available when GATED is not running.
reject
Instead of forwarding a packet like a normal route, reject routes cause
packets to be dropped and unreachable messages to be sent to the packet
originators. Specifying
reject
causes this route to be installed as a reject
route. Not all kernel forwarding engines support reject routes.
blackhole
A blackhole route is the same as a reject route except that unreachable
messages are not supported. Specifying
blackhole
causes this route to be
installed as a blackhole route.
noinstall
Normally the route with the lowest preference is installed in the kernel
forwarding table and is the route exported to other protocols. When
noinstall
is specified on a route, it will not be installed in the kernel
forwarding table when it is active, but it will still be eligible to be exported to
other protocols.
Gateway Routing Daemon (GATED) Configuration Reference A–31