4
Table 1 Some routing protocols and the default priorities for routes found by them
Routing approach Preference
DIRECT
0
STATIC 60
UNKNOWN 256
NOTE:
• The smaller the preference value, the higher the preference.
• The preference for a direct route is always 0, which cannot be changed. Any other type of routes can
have their priorities manually configured.
• Each static route can be configured with a different preference.
• IPv4 and IPv6 routes have their own respective routing tables.
Displaying and maintaining a routing table
To do… Use the command… Remarks
Display brief information about the
active routes in the routing table
display ip routing-table [ verbose ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view
Display information about routes to
the specified destination
display ip routing-table ip-address
[ mask-length | mask ] [ longer-match ]
[ verbose ] [ | { begin | exclude |
include } regular-expression ]
Available in any view
Display information about routes
with destination addresses in the
specified range
display ip routing-table ip-address1
{ mask-length | mask } ip-address2
{ mask-length | mask } [ verbose ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view
Display information about routes
permitted by an IPv4 basic ACL
display ip routing-table acl acl-number
[ verbose ] [ | { begin | exclude |
include } regular-expression ]
Available in any view
Display routes of a routing protocol
display ip routing-table protocol protocol
[ inactive | verbose ] [ | { begin | exclude
| include } regular-expression ] [ | { begin
| exclude | include } regular-expression ]
[ | { begin | exclude | include }
regular-expression ]
Available in any view
Display statistics about the network
routing table
display ip routing-table statistics [ |
{ begin | exclude | include }
regular-expression ]
Available in any view
Clear statistics for the routing table
reset ip routing-table statistics protocol
{ protocol | all }
Available in user view
Display brief IPv6 routing table
information
display ipv6 routing-table [ | { begin |
exclude | include } regular-expression ]