Administrative distance

The IP route table contains the best path to a destination. When the software receives paths from more than one of the sources listed above, the software compares the administrative distance of each path and selects the path with the lowest administrative distance. The administrative distance is a protocol-independent value from 1 to 255.

The IP route table is displayed by entering the show ip route command from any context level in the console CLI. Here is an example of an entry in the IP route table:

IP route table entry

Destination       Gateway         VLAN Type      Sub-Type   Metric   Di
----------------- --------------- ---- --------- ---------- -------- --           connected             1

Each IP route table entry contains the destination's IP address and subnet mask and the IP address of the next-hop router interface to the destination. Each entry also indicates route type, and for OSPF routes, the subtype, and the route's IP metric (cost). The type indicates how the IP route table received the route.

Enter the show ip route summary command to display the aggregate count of routes for each routing protocol.

IP route summary display

switch(config)# show ip route summary

 IPv4 Route Table Summary

 Protocol  Active Routes
 --------- -------------
 Connected 1
 Static    1

To configure a static IP route, see Static Routing.