Show commands

Use these M4500 CLI commands to display IP interfaces, the routing table, best routes, ECMP groups, route failures, and route summaries.

show ip brief

This command displays all the summary information of the IP.

Default None
Format show ip brief
Mode

Privileged EXEC

User EXEC

Display Message

Fields Definition
Default Time to Live The computed TTL (Time to Live) of forwarding a packet from the local router to the final destination.
Routing Mode Shows whether the routing is enabled or disabled.
Maximum Next Hops The maximum number of hops supported by this switch.
Maximum Routes The maximum number of routes the packet can travel.
Maximum Static Routes The maximum number of static routes supported by this switch.
ICMP Rate Limit Interval Shows how often the token bucket is initialized with burst-size tokens. Burst-interval is from 0 to 2147483647 milliseconds. The default burst-interval is 1000 msec.
ICMP Rate Limit Burst Size Shows the number of ICMPv4 error messages that can be sent during one burst-interval. The range is from 1 to 200 messages. The default value is 100 messages.
ICMP Echo Replies Shows whether ICMP Echo Replies are enabled or disabled.
ICMP Redirects Shows whether ICMP Redirects are enabled or disabled.

show ip interface port

This command displays all pertinent information about the IP interfaces.

Default None
Format show ip interface port <slot/port>
Mode

Privileged EXEC

User EXEC

Display Message

Fields Definition
Routing Interface Status Determine the operational status of IPv4 routing Interface. The possible values are Up or Down.
Primary IP Address The primary IP address and subnet masks for the interface. This value appears only if you configure it.
Method Shows whether the IP address was configured manually or acquired from a DHCP server.
Secondary IP Address One or more secondary IP addresses and subnet masks for the interface. This value appears only if you configure it.
Helper IP Address The helper IP addresses configured by the command “ip helper-address (Interface Config)”
Routing Mode The administrative mode of router interface participation. The possible values are enable or disable. This value is configurable.
Administrative Mode The administrative mode of the specified interface. The possible values of this field are enable or disable. This value is configurable.
Forward Net Directed Broadcasts Displays whether forwarding of network-directed broadcasts is enabled or disabled. This value is configurable.
Proxy ARP Displays whether Proxy ARP is enabled or disabled on the system.
Local Proxy ARP Displays whether Local Proxy ARP is enabled or disabled on the interface. Active State Displays whether the interface is active or inactive. An interface is considered active if its link is up and it is in forwarding state.
Active State An interface is considered active if it has link up, is in forwarding state.
Link Speed Data Rate An integer representing the physical link data rate of the specified interface. This is measured in Megabits per second (Mbps).
MAC Address The burned in physical address of the specified interface. The format is 6 two-digit hexadecimal numbers that are separated by colons.
Encapsulation Type The encapsulation type for the specified interface. The types are: Ethernet or SNAP.
IP MTU The maximum transmission unit (MTU) size of a frame, in bytes.
Bandwidth Shows the bandwidth of the interface.
Destination Unreachables Displays whether ICMP Destination Unreachables may be sent (enabled or disabled).
ICMP Redirects Displays whether ICMP Redirects may be sent (enabled or disabled).
Interface Suppress Status Displays whether the interface suppressed or not.
Interface Name Displays the routing interface name.

show ip interface vlan

This command displays all pertinent information about the VLAN routing interfaces.

Default None
Format show ip interface vlan <1-4093>
Mode

Privileged EXEC

User EXEC

Display Message

Fields Definition
Routing Interface Status Determine the operational status of IPv4 routing Interface. The possible values are Up or Down.
Primary IP Address The primary IP address and subnet masks for the interface. This value appears only if you configure it.
Method Shows whether the IP address was configured manually or acquired from a DHCP server.
Secondary IP Address One or more secondary IP addresses and subnet masks for the interface. This value appears only if you configure it.
Helper IP Address The helper IP addresses configured by the command “ip helper-address (Interface Config)”
Routing Mode The administrative mode of router interface participation. The possible values are enable or disable. This value is configurable.
Administrative Mode The administrative mode of the specified interface. The possible values of this field are enable or disable. This value is configurable.
Forward Net Directed Broadcasts Displays whether forwarding of network-directed broadcasts is enabled or disabled. This value is configurable.
Proxy ARP Displays whether Proxy ARP is enabled or disabled on the system.
Local Proxy ARP Displays whether Local Proxy ARP is enabled or disabled on the interface. Active State displays whether the interface is active or inactive. An interface is considered active if its link is up and it is in forwarding state.
Active State Displays whether an interface is active with its link up and in forwarding state.
Link Speed Data Rate An integer representing the physical link data rate of the specified interface. This is measured in Megabits per second (Mbps).
MAC Address The burned in physical address of the specified interface. The format is 6 two-digit hexadecimal numbers that are separated by colons.
Encapsulation Type The encapsulation type for the specified interface. The types are: Ethernet or SNAP.
IP MTU The maximum transmission unit (MTU) size of a frame, in bytes.
Bandwidth Shows the bandwidth of the interface.
Destination Unreachables Displays whether ICMP Destination Unreachables may be sent (enabled or disabled).
ICMP Redirects Displays whether ICMP Redirects may be sent (enabled or disabled).
Interface Suppress Status Displays whether the interface suppressed or not.
Auto-State Mode Displays the mode of the AutoState feature of the interface.
Interface Name Displays the routing interface name.

show ip interface lookback

This command displays information about configured loopback interfaces.

Default None
Format show ip interface loopback <0-63>
Mode

Privileged EXEC

User EXEC

Display Message

Fields Definition
Loopback Id The loopback ID associated with the rest of the information in the row.
Interface The interface name.
IP Address The IPv4 address of the interface.

If you specify a loopback ID, the following information appears:

Fields Definition
Routing Interface Status The operational status of IPv4 routing Interface. The possible values are Up or Down.
Primary IP Address The primary IP address and subnet masks for the interface. This value appears only if you configure it.
Secondary IP Address(es) One or more secondary IP addresses and subnet masks for the interface. This value appears only if you configure it.
Routing Mode The administrative mode of router interface participation. The possible values are enable or disable. This value is configurable.
Interface Name The routing interface name.

show ip interface brief

This command displays summary information about IP configuration settings for all ports in the router.

Default None
Format show ip interface brief
Mode

Privileged EXEC

User EXEC

Display Message

Fields Definition
Interface Valid slot, and port number separated by forward slashes or VLAN routing interface.
State Indicate the operational state of the routing interface.
IP Address The IP address of the routing interface.
IP Mask The IP mask of the routing interface.
Method Is the way to get the IP Address. The possible value is “Manual”, “DHCP” or “None”.
Netdir Bcast Indicates if IP forwards net-directed broadcasts on this interface. Possible values are Enable or Disable.
MultiCast Fwd Indicates the multicast forwarding administrative mode on the interface. Possible values are Enable or Disable.

show ip route

This command displays the routing table. The <ip-address> specifies the network for which the route is to be displayed and displays the best matching best-route for the address. The <mask> specifies the subnet mask for the given <ip-address>. When you use the <longer-prefixes> keyword, the <ip-address> and <mask> pair becomes the prefix, and the command displays the routes to the addresses that match that prefix. Use the <protocol> parameter to specify the protocol that installed the routes. The value for <protocol> can be connected, bgp, ospf, static, or kernel. Use the <all> parameter to display all routes including best and nonbest routes. If you do not use the <all> parameter, the command only displays the best route. If you use static as <protocol>, a description option can be used to show the description of the static route.

If you use the <connected> keyword for <protocol>, the all option is not available

!

because there are no best or non-best connected routes.

Default None
Format show ip route [vrf <vrf-name>] [{<ip-address> [<protocol>] | {<ip-address> <mask> [longer-prefixes] [<protocol>] | <protocol>} [all] | all}]
Mode Privileged EXEC

Display Message

Fields Definition
Route Codes

Displays the key for the routing protocol codes that might appear in the routing table output. Route Codes:

R - RIP Derived, O - OSPF Derived, C - Connected, S - Static B - BGP Derived, IA - OSPF Inter Area E1 - OSPF External Type 1, E2 - OSPF External Type 2 N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2 S U - Unnumbered Peer L - Leaked Route, K - Kernel, D - Database Route

State Indicate the operational state of the routing interface.
IP Address The IP address of the routing interface.
IP Mask The IP mask of the routing interface.
Method Is the way to get the IP Address. The possible value is “Manual”, “DHCP” or “None”.
Netdir Bcast Indicates if IP forwards net-directed broadcasts on this interface. Possible values are Enable or Disable.
MultiCast Fwd Indicates the multicast forwarding administrative mode on the interface. Possible values are Enable or Disable.

The command displays the routing tables in the following format:

Code IP-Address/Mask [Preference/Metric] via Next-Hop, Interface

Fields Definition
Code The codes for the routing protocols that created the routes.
IP-Address/Mask The IP-Address and mask of the destination network corresponding to this route.
Preference The administrative distance associated with this route. Routes with low values are preferred over routes with higher values.
Metric The cost associated with this route.
via Next-Hop The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.
Interface The outgoing router interface to use when forwarding traffic to the next destination.

show ip route bestroutes

This command displays router route table information for the best routes.

Default None
Format show ip route bestroutes
Mode Privileged EXEC

Display Message

Fields Definition
Total Number of Routes The total number of routes.
Network Address Is an IP route prefix for the destination.
Subnet Mask Is a mask of the network and host portion of the IP address for the router interface.
Protocol Tells which protocol added the specified route. The possibilities are: local, static, OSPF.

For each next hop:

Fields Definition
Next Hop Intf The outgoing router interface to use when forwarding traffic to the next destination.
Next Hop IP Address The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.

show ip route entry

This command displays the router route entry information.

Default None
Format show ip route entry <networkaddress>
Mode Privileged EXEC
Fields Definition
<networkaddress> Is a valid network address identifying the network on the specified interface.

Display Message

Fields Definition
Network Address Is a valid network address identifying the network on the specified interface.
Subnet Mask Is a mask of the network and host portion of the IP address for the attached network.
Protocol Tells which protocol added the specified route. The possibilities are: local, static, OSPF.
Total Number of Routes The total number of routes.

For each next hop:

Fields Definition
Next Hop Intf The outgoing router interface to use when forwarding traffic to the next destination.
Next Hop IP Address The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.
Metric Specifies the metric for this route entry.
Pref The preference value that is used for this route entry.

show ip route connected

This command displays directly connected routes.

Default None
Format show ip route [vrf <vrf-name>] connected
Mode Privileged EXEC

Display Message

Fields Definition
Route Codes Displays the key for the routing protocol codes that might appear in the routing table output.

The command displays the routing tables in the following format:

Code IP-Address/Mask [Preference/Metric] via Next-Hop, Interface

Fields Definition
Code The codes for the routing protocols that created the routes.
IP-Address/Mask The IP-Address and mask of the destination network corresponding to this route.
Preference The administrative distance associated with this route. Routes with low values are preferred over routes with higher values.
Metric The cost associated with this route.
via Next-Hop The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.
Interface The outgoing router interface to use when forwarding traffic to the next destination.

show ip route ospf

This command displays Open Shortest Path First (OSPF) routes. The option all command displays all (best and non-best) routes.

Default None
Format show ip route [vrf <vrf-name>] ospf [all]
Mode Privileged EXEC

Display Message

Fields Definition
Route Codes Displays the key for the routing protocol codes that might appear in the routing table output.

The command displays the routing tables in the following format:

CODE
Code        IP-Address/Mask      [Preference/Metric]       via Next-Hop,        Interface
Fields Definition
Code The codes for the routing protocols that created the routes.
IP-Address/Mask The IP-Address and mask of the destination network corresponding to this route.
Preference The administrative distance associated with this route. Routes with low values are preferred over routes with higher values.
Metric The cost associated with this route.
via Next-Hop The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.
Interface The outgoing router interface to use when forwarding traffic to the next destination.

show ip route static

This command displays Static Routes. The option all command displays all (best and non-best) routes.

Default None
Format show ip route [vrf <vrf-name>] static [all]
Mode Privileged EXEC

Display Message

Fields Definition
Route Codes Displays the key for the routing protocol codes that might appear in the routing table output.

The command displays the routing tables in the following format:

Code IP-Address/Mask [Preference/Metric] via Next-Hop, Interface

Fields Definition
Code The codes for the routing protocols that created the routes.
IP-Address/Mask The IP-Address and mask of the destination network corresponding to this route.
Preference The administrative distance associated with this route. Routes with low values are preferred over routes with higher values.
Metric The cost associated with this route.
via Next-Hop The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.
Interface The outgoing router interface to use when forwarding traffic to the next destination.

show ip route ecmp-groups

This command displays all the current ECMP groups in the IPv4 routing table. An ECMP group is a set of two or more next hops used in one or more routes. The groups are numbered arbitrarily from 1 to n. The output indicates the number of next hops in the group and the number of routes that use the set of the next hops.The output lists the IPv4 address and the outgoing interface of each next hop in each group.

Default None
Format show ip route [vrf <vrf-name>] ecmp-groups
Mode Privileged EXEC

show ip route hw-failure

This command displays the routes that failed to be added to the hardware due to the hash errors or a table full condition.

Default None
Format show ip route hw-failure
Mode Privileged EXEC

Display Message

Fields Definition
Route Codes Displays the key for the routing protocol codes that might appear in the routing table output.

The command displays the routing tables in the following format:

Code IP-Address/Mask [Preference/Metric] via Next-Hop, Interface

Fields Definition
Code The codes for the routing protocols that created the routes.
IP-Address/Mask The IP-Address and mask of the destination network corresponding to this route.
Preference The administrative distance associated with this route. Routes with low values are preferred over routes with higher values.
Metric The cost associated with this route.
via Next-Hop The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.
Interface The outgoing router interface to use when forwarding traffic to the next destination.

show ip route summary

This command displays the routing table summary. Use the optional all parameter to show the number of all routes, including best and non-best routes. To include only the number of best routes, do not use the optional parameter.

Default None
Format show ip route [vrf <vrf-name>] summary [all]
Mode Privileged EXEC

Display Message

Fields Definition
Connected Routes The total number of connected routes in the routing table.
Static Routes Total number of static routes in the routing table.
Kernel Routes Total number of kernel routes in the routing table.
Unnumbered Peer Routes Total number of unnumbered peer routes in the routing table.
BGP Routes

Total number of routes installed by BGP protocol.

External: The number of external BGP routes.

Internal: The number of internal BGP routes.

Local: The number of local BGP routes.

OSPF Routes

Total number of routes installed by OSPF protocol:

Intra Area Routes: Total number of Intra Area routes installed by OSPF protocol.

Inter Area Routes: Total number of Inter Area routes installed by OSPF protocol.

External Type-1 Routes: Total number of External Type-1 routes installed by OSPF protocol.

External Type-2 Routes: Total number of External Type-2 routes installed by OSPF protocol.

Reject Routes Total number of reject routes installed by all protocols.
Total Routes Total number of routes in the routing table.
Best Routes (High) The number of best routes currently in the routing table. This number only counts the best route to each destination. The value in parentheses indicates the highest count of unique best routes after counters were last cleared.
Alternate Routes The number of alternate routes currently in the routing table. An alternate route is a route that was not selected as the best route to its destination.
Leaked Routes The number of leaked routes currently in the routing table. This leaked routes are the routes leaked into RTO from other VRF.
RFC5549 Routes - IPv4 with IPv6 nexthop The number of RFC5549 routes currently in the routing table. This RFC5549 routes are advertising BGP IPv4 NLRI with an IPv6 Next Hop.
Route Adds The number of routes that have been added to the routing table.
Route Modifies The number of routes that have been changed after they were initially added to the routing table.
Route Deletes The number of routes that have been deleted from the routing table.
Unresolved Route Adds The number of route adds that failed because none of the route’s next hop were on a local subnet. Note that static routes can fail to be added to the routing table at startup because ther routing interfaces are not yet up. This counter gets incremented in this case. The static routes are added to the routing table when the routing interfaces come up.
Invalid Route Adds The number of routes that failed to be added to the routing table because the route was invalid. A log message is written for each of these failures.
Failed Route Adds The number of routes that failed to be added to the routing table because of a resource limitation in the routing table.
Failed Kernel Route Adds The number of kernel routes that failed to be added to the routing table because of a kernel error or a table full condition.
Hardware Failed Route Adds The number of routes failed to be inserted into the hardware because of a hash error or a table full condition.
Reserved Locals The number of routing table entries reserved for a local subnet on a routing interface that is down. Space for local routes is always reserved so that the local routes can be installed when a routing interface is up.
Unique Next Hop (High) The number of the distinct next hops used among all routes currently in the routing table. This number includes local interfaces for local routes and neighbors for indirect routes. The value in the parentheses indicates the highest count of unique next hops after counters were last cleared.
Next Hop Groups (High) The current number of next hop groups in use by one or more routes. Each next hop group includes one or more next hops. The value in the parentheses indicates the highest count of next hop groups after counters were last cleared.
ECMP Groups (High) The number of next hop groups with multiple next hops. The value in the parentheses indicates the highest count of next hop groups after counters were last cleared.
ECMP Routes The number of routes with multiple next hops currently in the routing table.
Truncated ECMP Routes The number of ECMP routes that are currently installed in the forwarding table with just one next hop. The forwarding table may limit the number of ECMP routes or the number of ECMP groups. When an ECMP route cannot be installed because such a limit is reached, the route is installed with a single next hop.
ECMP Retries The number of ECMP routes that have been installed in the forwarding table after initially being installed with a single next hop.
Routes with n Next Hop The current number of routes with specific number (n) of next hops.

clear ip route counters

This command resets the IPv4 routing table counters reported in the command “show ip route summary” to zero. This command only resets event counters. Counters that report the current state of the routing table, such as the number of routes of each type, are not reset.

Default None
Format clear ip route counters [vrf <vrf-name>]
Mode Privileged EXEC

show ip route preferences

This command displays detailed information about the route preferences. Route preferences are used in determining the best route. Lower router preference values are preferred over higher router preference values.

Default None
Format show ip route [vrf <vrf-name>] preferences
Mode

Privileged EXEC

User EXEC

Display Message

Fields Definition
Local This field displays the local route preference value.
Static This field displays the static route preference value.
BGP External This field displays the BGP external route preference value.
OSPF Intra This field displays the OSPF intra route preference value.
OSPF Inter This field displays the OSPF inter route preference value.
OSPF External The OSPF External route preference value.
BGP Internal The BGP Internal route preference value.
BGP Local The BGP local route preference value.
Configured Default Gateway The route preference value of the statically-configured default gateway.
DHCP Default Gateway The route preference value of the default gateway learned from the DHCP server.

show ip stats

This command displays IP statistical information. Refer to RFC 1213 for more information about the fields that are displayed.

Default None
Format show ip stats [vrf <vrf-name>]
Mode Privileged EXEC

show routing heap summary

This command displays a summary of the memory allocation from the routing heap. The routing heap is a chunk of memory set aside when the system boots for use by the routing protocols.

Default None
Format show routing heap summary
Mode Privileged EXEC

Display Message

Fields Definition
Heap Size The amount of memory, in bytes, allocated at startup for the routing heap.
Memory in Use The number of bytes currently allocated.
Memory on Free List The number of bytes currently on the free list. When a chunk of memory from the routing heap is freed, it is placed on a free list for future reuse.
Memory Available in Heap The number of bytes in the original heap that have never been allocated.
In Use High Water Mark The maximum memory in use since the system last rebooted.

show ip load-sharing

This command displays the currently configured IP ECMP load balancing mode.

Format show ip load-sharing
Mode Privileged EXEC

show bfd neighbors

This command displays the BFD adjacency list showing the active BFD neighbors. The parameter details provides additional details with the routing protocol BFD has registered.

Format show bfd neighbors [{details [{<ip-address> | <ipv6-address>}] | interface {<slot/port> | vlan <vlan-id>} [details]}]
Mode Privileged Exec

Display Message

Fields Definition
Our IP address The current IP address.
Neighbor IP address The IP address of the active BFD neighbor.
State The current state, either Up or Down.
Interface The current interface.
Uptime The amount of time the interface has been up.
Registered Protocol The protocol from which the BFD session was initiated and that is registered to receive events from BFD. (for example, BGP)
Local Diag The diagnostic state specifying the reason for the most recent change in the local session state.
Demand mode Indicates if the system wishes to use Demand mode. NOTE: Demand mode is not supported in the current release.
Minimum transmit interval The minimum interval to use when transmitting BFD control packets.
Minimum receive interval The minimum interval at which the system can receive BFD control packets.
Actual tx interval The transmitting interval being used for control packets.
Actual tx echo interval The transmitting interval being used for echo packets.
Detection interval multiplier The number of BFD control packets that must be missed in a row to declare a session down.
My discriminator Unique Session Identifier for Local BFD Session.
Your discriminator Unique Session Identifier for Remote BFD Session.
Tx Count The number of transmitted BFD packets.
Tx Fail Count The number of transmitted failed BFD packets.
Rx Count The number of received BFD packets.
Drop Count The number of dropped packets.
Echo Mode Show whether the BFD echo mode is enabled or disabled.
Echo Tx Count The number of transmitted BFD echo packets.
Echo Rx Count The number of received BFD echo packets.