|
|
The show ip commands display information about the configured and runtime IP parameters and IP routes. They can also show information about the status of the IP ARP cache and IP statistics.
show ip {filter | protocol | cache | statistics | rtcount |
filter | The show ip filter command will display the runtime IP protocol filters for all of the interfaces. |
protocol | The show ip protocol command can be used to display a summary of the configuration of each IP routing protocol. |
cache | The show ip cache command displays information about IP addresses presently in the fast-routing cache. |
statistics | The show ip statistics command displays information about various IP tallies. |
rtcount | The show ip rtcount command will display the total number of routes currently in the IP routing table. This command is particularly useful if there are a very large number of routes. |
config [{Ethernet | WAN} [slot:port[.sub-interface]] | VPN [Number]] [Status] | The show ip config command will display the IP configuration parameters for all of the interfaces. For more information about how to set the parameters see the IP section.
|
routing [Direct | Dynamic [protocol] | Static | Default | Configured] [IP_address subnet_mask] | The show ip routing command will display the IP routing table presently being used by the device. This information is useful for determining if the device is connected to the networks desired and to find out if there are routes to networks directly attached.
|
The following sections describe the display contents for each command.
The show ip config Ethernet parameters are displayed with one line, while WAN interfaces are displayed with two, unless disabled. The column headings are described below:
Port | This column usually displays all of the physical interfaces. The exception is for devices that also do bridging. In that case, the bridge "port" is also listed. While bridging is usually associated with Ethernet interfaces, it is logically different to the device. If a WAN interface is unnumbered, WAN interfaces are noted as such. |
IP Addr | This is the IP address assigned to this interface. If there is no IP address assigned, it is designated as an unnumbered interface. |
Subnet | This is the subnet mask that is being used by this interface. |
Broadcast | This is the broadcast address which this interface will use. |
Options | These are the IP options set for this interface. These include information on the status of routing protocols, Proxy ARP, etc. |
Remote Address | This is the remote address, if configured, for this interface. The address itself is actually displayed in the second line of the WAN output under the Broadcast column. |
The show ip route output is displayed in four main sections.
The first is the Directly Connected Routes. These are the routes installed based upon the configuration information as well as internal routes that the device uses for routing packets sent directly to it. The second section lists runtime Static Routes. These are routes defined by the user. The third section, Dynamic Routes, lists routes picked up from other devices on the network. The last section, Configured IP Routes, shows permanently configured static routes.
The column headings are described below.
Destination | This is the network or host which a route has been defined for. |
Mask | This is the subnet mask associated with the destination. |
Gateway | This is the gateway (or router) where packets for the destination are to be sent. |
Metric | This is the number of routers between this device and the destination. Values will be between 1 and 16. If a metric count is 16, the route is timed out and will be purged from the table. |
Refs | This is the internal count of references to the route displayed. |
Uses | This is the number of IP packets routed to the destination by this device. |
Type | This is the method by which the route was "discovered." Possible types include RIP, RIP V2, and OSPF. |
Src/TTL | This is the Time To Live for the route in seconds. A TTL value of 999 means that the timeout is infinite and will never be timed out. |
Interface | This is the interface that packets for this destination will be forwarded on. |
The show ip cache column headings are described below:
Destination | This is the IP address of the destination. |
Ethernet Address | This is the MAC-level Ethernet address. |
Iface | This is the interface through which the device communicated with this destination. |
Use cnt | This is the number of packets sent to this destination. |
Last Used | This is the time (relative to the start of the device and measured in clock ticks) of the last use of this entry. |
The show ip statistics display is split up into sections based on whether the statistic is IP, ICMP, or UDP. The values are all defined as MIB variables and can also be obtained by using an SNMP Management station. For more information, see RFC 1213 "Management Information Base for Network Management of TCP/IP-based internets: MIB-II." Unless otherwise indicated, these tallies are only for packets directed to the device.
IP: |
|
| The total number of datagrams received, including errors, or number of datagrams received from the IP stack to be transmitted. The Received packets tally is for all packets which have passed through the device. |
| The number of datagrams delivered to the IP stack. |
| This is the number of packets forwarded by this device. The datagrams tally is for all packets which have passed through the device. |
| These tallies are for all packets passing through the device.
|
| The number of datagrams discarded for other reasons. |
| The number of datagrams sent that had to be fragmented.
|
| The number of IP fragments received that needed to be reassembled.
|
ICMP: |
|
| The number of ICMP packets sent or received. |
| The number of ICMP packets not sent because of errors or received with errors. |
| The number of ICMP destination unreachable messages sent or received. |
| The number of ICMP packets sent or received that timed out. |
| The number of ICMP parameter problem packets sent or received. |
| The number of ICMP source quench packets sent or received. |
| The number of ICMP redirects sent or received. |
| The number of echo requests sent or received. |
| The number of echo replies sent or received. |
| The number of ICMP timestamp request packets sent or received. |
| The number of ICMP timestamp replies sent or received. |
| The number of ICMP address mask requests received. |
| The number of ICMP address mask replies sent. |
UDP: |
|
| Total number of datagrams delivered to UDP users. |
| Number of UDP datagrams not delivered because of an error. |
| The number of UDP datagrams received for which there was no application at the destination port. |
The following sections show an example for each command.
The following is the output from a show ip config command:
Addresses
Port IP Addr Subnet Broadcast Flags
Ethernet 0 192.168.11.6 255.255.255.224 192.168.11.31 <OSPF:Active>
<RIP:in,V2>
Ethernet 1 ** Disabled **
Bridge ** Disabled **
Wan0 Unnumbered interface <Rip_out,Rip_in>
Remote Address: 0.0.0.0 <>
Wan1 disabled
Wan2 Unnumbered interface <Rip_out,Rip_in>
Remote Address: 192.168.9.18 <>
Wan3 163.179.16.33 255.255.255.0 163.179.16.255 <Rip_out,Rip_in>
Remote Address: 163.179.16.2 <>
The following is the output from a show ip filter command.
Filter Spec: test (1)
1: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: ==45
Matches: 0:
Output from the show ip routing command follows:
Directly Connected Routes: Destination Mask Refs Uses Type Interface 127.0.0.1 FFFFFFFF 1 0 STIF Local 192.168.9.31 FFFFFFFF 1 4812 STIF Local 192.168.9.0 FFFFFFFF 1 0 STIF Local 192.168.9.8 @FFFFFFFF 1 2820 Local Local 192.168.9.18 @FFFFFFFF 1 27 Stat Wan2 192.168.9.0 FFFFFFE0 1 45253 STIF Ethernet0 163.179.16.255 FFFFFFFF 1 0 STIF Local 163.179.16.0 FFFFFFFF 1 0 STIF Local 163.179.16.33 @FFFFFFFF 1 0 Local Local 163.179.16.0 FFFFFF00 1 2036 STIF Wan3 255.255.255.255 @FFFFFFFF 1 1737 Local Local Static Routes: Destination Mask Gateway Metric Refs Uses Type Interface Dynamic Routes: Destination Mask Gateway Metric Refs Uses Type TTL Interface DEFAULT 199.45.130.49 1 1 52724 RIP 176 Wan0 192.168.8.0 FFFFFF00 192.168.9.1 3 1 2682 RIP 171 Ethernet0 192.168.9.128 FFFFFFE0 192.168.9.1 1 1 0 RIP 171 Ethernet0 192.168.9.224 FFFFFFE0 192.168.9.1 5 1 1603 RIP 171 Ethernet0 192.168.9.64 FFFFFFE0 192.168.9.1 3 1 0 RIP 171 Ethernet0 192.168.9.32 FFFFFFE0 192.168.9.1 3 1 1502 RIP 171 Ethernet0 192.168.10.0 FFFFFF00 192.168.9.1 5 1 8756 RIP 171 Ethernet0 199.45.130.24 FFFFFFE0 199.45.130.49 1 1 0 RIP 175 Wan0 163.179.0.0 FFFFFF00 192.168.9.6 1 1 0 RIP 154 Ethernet0 Total Routes in use: 24 Default Router = <not set> @Mask -> Host route *Type -> Redistribute Configured IP Routes: Destination Mask Gateway Metric IFnum Wan0 DEFAULT 192.168.200.1 1 0
A show ip protocol example:
IP PROTOCOL CONFIGURATION
Wan0 : OSPF:passive RIP:disabled,V2
Wan1 : OSPF:passive RIP:disabled,V2
Ether0: OSPF:disabled RIP:in,out,V2
Ether1: OSPF:active RIP:disabled,V2
IP PROTOCOL PRECEDENCE: (1) ospf (2) rip (3) static
ROUTING PROTOCOL REDISTRIBUTION
RIP to OSPF: disabled
Default to OSPF: disabled
OSPF to RIP: disabled
An example of the show ip cache command is given below.
Destination Ethernet Address Iface Use cnt Last Used 192.168.11.50 00:00:a5:71:2c:00 Eth3 1381589 361247 192.168.9.226 00:00:a5:f1:54:00 Eth2 195745 360677 192.168.11.10 02:60:8c:dd:af:58 Eth1 106912 360909 192.168.9.30 aa:00:04:00:0a:04 Eth0 18048 360677
The following is the output from a show ip statistics command:
Received Transmitted Other
------------------------ ------------------------ -----------------------
IP:
Packets 111638 Packets 2218 Fragmentation
Delivered 5999 Forwarded 1 Success 0
(datagrams) 102700 Creates 0
Errors Errors Failures 0
Bad Header 30 No route 0 Reassembly
Proto Unkn 721 Success 0
Bad Address 0 Requests 0
Timeouts 30
Discards 0 Discards 0 Failures 0
ICMP:
Packets 0 Packets 1769
Errors 0 Errors 0
Dest Unreach 0 Dest Unreach 1738
Time Exceeded 0 Time Exceeded 30
Parameter Err 0 Parameter Err 0
Source Quench 0 Source Quench 0
Redirect 0 Redirect 1
Echo 0 Echo 0
Echo Reply 0 Echo Reply 0
Timestamp 0 Timestamp 0
Tstamp Reply 0 Tstamp Reply 0
Addr Mask 0 Addr Mask 0
Amask Reply 0 Amask Reply 0
UDP:
Packets 5856 Packets 4088 No Ports 1
Errors 0
An example of the show ip rtcount command is given below.
Number of routes in IP Routing Table: 1008
| Command | Description |
|---|---|
add ip arp | Adds a static IP ARP cache entry |
add ip route | Adds a static IP route |
configure IP | Configures IP parameters for an interface |
edit config IP Filter | Creates IP packet filters |
edit config IP Route Filter | Creates IP route filters |
edit config IP Static | Creates static IP routes |
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Sep 27 11:28:10 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.