•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
11.2 Static routes configuration
Static routing is a type of routing in which routes are defined explicitly during the router configuration without
dynamic routing protocols.
11.2.1 Configuration algorithm
You can add a static route by using the following command in global configuration mode:
esr(config)# ip route [ vrf <VRF> ] <SUBNET> { <NEXTHOP> | interface <IF> | tunnel <TUN> | wan load-
balance rule <RULE> [<METRIC>] | blackhole | unreachable | prohibit } [ <METRIC> ] [ track <TRACK-ID> ]
[ bfd ]
<VRF> – VRF name, set by the string of up to 31 characters.
<SUBNET> – destination address, can be specified in the following format:
BBB.CCC.DDD – host IP address, where each part takes values of [0..255].
BBB.CCC.DDD/NN – network IP address with prefix mask, where AAA-DDD take values of [0..255]
and NN takes values of [1..32].
<NEXTHOP> – gateway IP address, defined as AAA.BBB.CCC.DDD where each part takes values of
[0..255];
<IF> – an IP interface name specified in the form described in Section Types and naming order of router
interfaces;
<TUN> – the name of the tunnel is specified as described in section Types and naming order of router
tunnels;
<RULE> – wan rule number, set in the range of [1..50];
blackhole – when specifying the command, the packets to this subnet will be removed by the device
without sending notifications to a sender;
unreachable – when specifying the command, the packets to this subnet will be removed by the device,
a sender will receive in response ICMP Destination unreachable (Host unreachable, code 1);
prohibit – when specifying the command, the packets to this subnet will be removed by the device, a
sender will receive in response ICMP Destination unreachable (Communication administratively
prohibited, code 13);
bfd – when specifying the given key, the removal of static route in case of next-hop unavailability is
activated.
To add static IPv6 route to the given subnet, use the following command:
ipv6 route [ vrf <VRF> ] <SUBNET> { <NEXTHOP> [ resolve ] | interface <IF> | wan load-balance rule <RULE>
| blackhole | unreachable | prohibit } [ <METRIC> ] [ bfd ]
<VRF> – VRF name, set by the string of up to 31 characters.
<SUBNET> – destination address, can be specified in the following formats:
The addresses are defined as X:X:X:X::X where each part takes values in hexadecimal format
[0..FFFF].
<IPV6-ADDR/LEN> – IP address and mask of a subnet, defined as X:X:X:X::X/EE where each X part
takes values in hexadecimal format [0..FFFF] and EE takes values of [1..128].
<IPV6-ADDR> – client IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal
format [0..FFFF];
resolve – when specifying the given parameter, gateway IPv6 address will be recursively calculated
through the routing table. If the recursive calculation fails to find a gateway from a directly connected
subnet, then this route will not be installed into the system;