show ip route | show ipv6 route

Description                                                    Display the IPv4 or IPv6 routing table.

Syntax                                                                  show {ip | ipv6} route 
[
ipaddr[/mask-length] |
all |
bgp |
connected |
database |
isis |
mgmt |
ospf |
rip |
static |
summary 
]

Mode                                                                   All

Usage                                                                  The all option is only applicable for IPv4.

The show ip route summary command displays summary information for all IP routes, including the total number of routes. The command output applies to both the data route table and the management route table, which are separate route tables.

The following commands display routes for only one of the route tables:

     show ip route – Shows information for the data route table only.

     show ip route mgmt – Shows information for the management route table only.

The total number of routes listed by the output differs depending on the command you use. For example, the total number of routes listed by the show ip route command includes only data routes, whereas the total number of routes listed by the show ip route summary command includes data routes and management routes.

Example                                                            The following example shows the IP route table:

ACOS#show ip route

Codes: C - connected, S - static, O - OSPF

 

S*    0.0.0.0/0 [1/0] via 192.168.20.1, ve 10

S*    192.168.1.0/24 [1/0] is directly connected, Management

C*    192.168.1.0/24 is directly connected, Management

C*    192.168.19.0/24 is directly connected, ve 10

Total number of routes : 4

Table of Contents

Index

Glossary

-Search-

Back