static
Syntax
static{
defaults {
static-options;
}
rib-groupgroup-name;
routedestination-prefix{
next-hop;
qualified-next-hopaddress{
metricmetric;
preferencepreference;(
}
active|passive);
as-path<as-path> <origin(egp|igp|incomplete)> <atomic-aggregate>
<aggregatoras-number in-address>;
community[community-ids];
(install|no-install);
(metric|metric2|metric3|metric4)value<typetype>;
(preference|preference2|color|color2)preference<typetype>;(readvertise|no-readvertise);
(resolve| no-resolve);
(no-retain|retain);}
}Hierarchy Level
[edit routing-options rib inet6.0]Description
Configure static routes to be installed in the routing table. You can specify any number of routes within a single
staticstatement, and you can specify any number ofstaticstatements in the configuration.Options
destination-prefix—Destination of the generated route, specified as:
destination-prefix/prefix-length—destination-prefixis the network portion of the IPv6 address, andprefix-lengthis the destination prefix length.
next-hop—How to reach the destination, specified as:
next-hopaddress—Reach the next-hop router by specifying an IPv6 address or an interface name.next-tablerouting-table-name—Name of the next routing table to the destination.reject—Do not forward packets addressed to this destination. Instead, drop the packets, send Internet Control Message Protocol version 6 (ICMPv6) unreachable messages to the packets' originators, and install a reject route for this destination into the routing table.discard—Do not forward packets addressed to this destination. Instead, drop the packets, do not send ICMPv6 unreachable messages to the packets' originators, and install a reject route for this destination into the routing table.receive—Install a receive route for this destination into the routing table.
qualified-next-hop—An independent metric or preference for a static route.
address—Reach the next-hop router by specifying an IPv6 address.The remaining statements are explained separately.
Usage Guidelines
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.