After you configure routes, you can run the display commands to check the configurations. You can also clear routing statistics or enable debugging if necessary.
After configuring routes, you can run the display commands in any view to display and verify the configuration.
Table 1 and Table 2 list the commands for displaying the configurations of IP routes.
Action |
Command |
|---|---|
Display the general information about the active routes in the routing table. |
|
Display the detailed information about the routing table. |
|
Display the routes to the specified destination IP address. |
display ip routing-table ip-address [ mask | mask-length ] [ longer-match ] [ verbose ] |
Display the routes to the addresses in the specified destination IP address range. |
display ip routing-table ip-address1 { mask1 | mask-length1 } ip-address2 { mask2 | mask-length2 } [ verbose ] |
Display the routes defined in the specified basic ACL. |
display ip routing-table acl acl-number [ verbose ] |
Display the route filtered by the specified prefix list. |
display ip routing-table ip-prefix ip-prefix-name [ verbose ] |
Display the route learned using the specified protocol. |
display ip routing-table protocol protocol [ inactive | verbose ] |
Display the comprehensive information about the routing table. |
|
Display the general information about the routing table on a private network. |
display ip routing-table vpn-instance vpn-instance-name |
Display the detailed information about the private network routing table. |
display ip routing-table vpn-instance vpn-instance-name verbose |
Action |
Command |
|---|---|
Display the general information about the active routes in the IPv6 routing table. |
|
Display the detailed information about the IPv6 routing table. |
display ipv6 routing-table verbose |
Display the routes to the specified destination IP address. |
display ipv6 routing-table ipv6-address prefix-length [ longer-match ] [ verbose ] |
Display the routes to the addresses in the specified destination IP address range. |
display ipv6 routing-table ipv6-address1 prefix-length ipv6-address2 prefix-length } [ verbose ] |
Display the routes defined in the specified basic ACL. |
display ipv6 routing-table acl acl-number [ verbose ] |
Display the route filtered by the specified prefix list. |
display ipv6 routing-table ip-prefix ipv6-prefix-name [ verbose ] |
Display the route learned using the specified protocol. |
display ipv6 routing-table protocol protocol [ inactive | verbose ] |
Display the comprehensive information about the IPv6 routing table. |
|
Display the general information about the routing table on a private network. |
display ipv6 routing-table vpn-instance vpn-instance-name |
Display the detailed information about the private network routing table. |
display ipv6 routing-table vpn-instance vpn-instance-name verbose |
You can clear routing statistics to restart the statistics. Statistics on cleared routes cannot be restored. Exercise caution before you clear any routes.
Table 3 describes how to clear routing statistics. Perform these actions in the user view.
Action |
Command |
|---|---|
Clear the statistics in the IPv4 routing table. |
reset ip routing-table statistics protocol [ vpn-instance vpn-instance-name ] { all | direct | bgp | isis | ospf | rip | unr | static } |
Clear the statistics in the IPv6 routing table. |
reset ipv6 routing-table [ vpn-instance vpn-instance-name ] statistics protocol { all | bgp | direct | isis | ripng | static | ospfv3 | unr } |