9.2.3 Configuring Single-Path Routes
Set single-path static routes. The distances will determine path priority.
- Points to note
-
For the static route you are setting as the alternate route, specify a distance larger than that of the preferred route.
Command examples
-
(config)# ip route 192.168.1.0 255.255.255.0 10.1.1.100 100
Specifies the remote gateway 10.1.1.100 as the next hop of the static route 192.168.1.0/24. Also, specify 100 as the distance.
-
(config)# ip route 192.168.1.0 255.255.255.0 172.16.1.100 200 noresolve
Specifies neighboring gateway 172.16.1.100 as the next hop of static route 192.168.1.0/24. Also, specify 200 as the distance. The Switch will use this path as the alternate route if the route to gateway 10.1.1.100 becomes invalid.