■
Use the
no
version to remove a static route from the routing table.
■
See ip route
Configuring Static Routes with Indirect Next Hops
You can configure static routes where next hops are not on directly connected
interfaces. Such a route is usable, and appears in the route table, only if another
route in the route table can resolve the next hop.
The resolving route can be either statically created or dynamically learned by a routing
protocol (like RIP, BGP, OSPF, and so on).
NOTE:
When configuring this type of static route, the route that resolves the next
hop must have an administrative distance value that is better (lower) than the distance
of the static route you want to resolve.
Figure 11: Static Routes with Indirect Next Hops
On the Boston router in the network shown in Figure 11 on page 30:
1.
Configure a static route to 10.2.0.0/16 with a next hop of 10.5.0.2 (which is not
directly connected) and an administrative distance of 254 (which is worse [higher]
than the default administrative distance for static routes [1]).
host1(config)#
ip route 10.2.0.0 255.255.0.0 10.5.0.2 254
2.
Configure another static route that resolves 10.5.0.2 and uses the default
administrative distance.
host1(config)#
ip route 10.5.0.0 255.255.255.252 10.1.0.2
[
1
]
NOTE:
The previous example shows the default administrative distance value, 1, to
illustrate the difference between the two static route commands. However, you do
not have to enter this value when issuing the command.
A static route to 10.2.0.0 is added to the route table with a next hop of 10.1.0.2
(on the directly connected Ethernet interface).
30
■
IP Routing
JUNOSe 11.0.x IP, IPv6, and IGP Configuration Guide
Содержание IGP - CONFIGURATION GUIDE V11.1.X
Страница 6: ...vi...
Страница 8: ...viii JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 18: ...xviii List of Figures JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 20: ...xx List of Tables JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 26: ...2 Internet Protocol JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 148: ...Set clauses set local pref 400 See show route map 124 Monitoring IP JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 228: ...204 Internet Protocol Routing JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 264: ...240 Monitoring RIP JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 438: ...414 Monitoring IS IS JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 439: ...Part 3 Index Index on page 417 Index 415...
Страница 440: ...416 Index JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 454: ...430 Index JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...