Administrative Distance costs
Administrative Distance <-- Route protocol/type
0 <-- Directly connected
1 <-- Static
20 <-- External BGP (eBGP)
90 <-- EIGRP
100 <-- IGRP
110 <-- OSPF
115 <-- IS-IS
120 <-- RIP
170 <-- EIGRP (external)
200 <-- Internal BGP (iBGP)
255 <-- Unusable route
Floating Static Routes
This is useful to configure a backup route that should not be used unless the normal path goes down.
#show ip route
^Displays existing routes
(config)#ip route <network> <subnet> <ip of alternate next hop> <metric higher than usual path>
(config)#ip route 10.0.2.0 255.255.255.0 203.0.113.1 111
#show ip route
^You won't see the new route because its administrative cost is higher than the better path
Here's a way:
#show running-config | incl route
[These are my notes from Jeremy's excellent CCNA course which can be viewed here.]