The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS unicast Routing Information Base (RIB) and the Forwarding Information Base (FIB) show commands.
To display forwarding information, use the show forwarding command.
show forwarding [ip | ipv4] {adjacency | interfaces | route | trace [clear] | table id | pss | route} [ethernet | port-channel | vlan slot] [vrf vrf-name]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
Use the show forwarding command on the supervisor to view forwarding information on a module. Optionally, you can use the attach module command to attach to a module and use the show forwarding command on the module.
This example shows how to display forwarding information for module 2:
switch# show forwarding route ethernet 2
|
|
---|---|
show ip fib |
Displays information about the FIB. |
To display forwarding distribution information, use the show forwarding distribution command.
show forwarding distribution [clients | fib-state]
clients |
(Optional) Displays the forwarding distribution information for unicast clients. |
fib-state |
(Optional) Displays the forwarding distribution state for unicast Forwarding Information Base (FIB). |
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the forwarding information for unicast clients:
switch# show forwarding distribution clients
|
|
---|---|
show ip fib distribution |
Displays distribution information about the FIB. |
To display information about multicast Forwarding Information Base (FIB) distribution messages, use the show forwarding distribution multicast command.
show forwarding distribution multicast [messages]
messages |
(Optional) Displays message information. |
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display information about multicast distribution messages:
switch(
config)#
show forwarding distribution multicast
Number of Multicast FIB Processes Active: 1
Slot FIB State
1 ACTIVE
switch#
To display information about the multicast Forwarding Information Base (FIB) distribution client, use the show forwarding distribution multicast client command.
show forwarding distribution multicast client
This command has no arguments or keywords.
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display information about the multicast FIB distribution client:
switch#
show forwarding distribution multicast client
Client-name Client-id Shared Memory Name
mrib 1 mrib-mfdm
switch#
To display information about the multicast Forwarding Information Base (FIB) outgoing interface (OIF) list, use the show forwarding distribution multicast outgoing-interface-list command.
show forwarding distribution multicast outgoing-interface-list {L2 | L3} [index]
L2 |
Specifies the Layer 2 OIF list. |
L3 |
Specifies the Layer 3 OIF list. |
index |
(Optional) OIF list index. |
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display information about the multicast OIF list for Layer 3:
switch#
show forwarding distribution multicast outgoing-interface-list L3
To display information about the multicast Forwarding Information Base (FIB) distribution routes, use the show forwarding distribution multicast route command.
show forwarding distribution [ip | ipv4] multicast route [table id | vrf vrf_name] [[group {group-addr [mask] | group-prefix}] [source {source-addr [source-mask] | source-prefix}] | summary]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display information about all the multicast FIB distribution routes:
switch(
config)#
show forwarding distribution multicast route
IPv4 Multicast Routing Table for table-id: 1
Total number of groups: 5
Legend:
C = Control Route
D = Drop Route
G = Local Group (directly connected receivers)
O = Drop on RPF Fail
P = Punt to supervisor
d = Decap Route
(*, 224.0.0.0/4), RPF Interface: NULL, flags: D
Received Packets: 0 Bytes: 0
Number of Outgoing Interfaces: 0
Null Outgoing Interface List
(*, 224.0.0.0/24), RPF Interface: NULL, flags: CP
Received Packets: 0 Bytes: 0
Number of Outgoing Interfaces: 0
Null Outgoing Interface List
(*, 224.0.1.39/32), RPF Interface: NULL, flags: CP
Received Packets: 0 Bytes: 0
Number of Outgoing Interfaces: 0
Null Outgoing Interface List
(*, 224.0.1.40/32), RPF Interface: NULL, flags: CP
Received Packets: 0 Bytes: 0
Number of Outgoing Interfaces: 0
Null Outgoing Interface List
(*, 232.0.0.0/8), RPF Interface: NULL, flags: D
Received Packets: 0 Bytes: 0
Number of Outgoing Interfaces: 0
Null Outgoing Interface List
switch#
To display the results of the forwarding inconsistency checker, use the show forwarding inconsistency command.
show forwarding inconsistency [ip | ipv4] [unicast] module slot [vrf vrf-name]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
Use the show forwarding inconsistency command to display the results of the test forwarding inconsistency command.
This example shows how to display the forwarding inconsistency information for module 2:
switch# show forwarding inconsistency module 2
|
|
---|---|
clear forwarding inconsistency |
Clears the forwarding inconsistency checker. |
test forwarding inconsistency |
Triggers the forwarding inconsistency checker. |
To display information about the multicast Forwarding Information Base (FIB) outgoing interface (OIF) list, use the show forwarding multicast outgoing-interface-list command.
show forwarding multicast outgoing-interface-list [index]
index |
(Optional) OIF list index. The OIF list index is from 1 to 65535. |
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display information about the multicast FIB OIF list:
switch#
show forwarding multicast outgoing-interface-list
Outgoing Interface List Index: 1
Reference Count: 1
Ethernet1/5
switch#
|
|
---|---|
clear ip igmp interface statistics |
Clears the IGMP statistics for an interface. |
ip igmp static-oif |
Binds a multicast group to the outgoing interface (OIF). |
To display information about the IPv4 Forwarding Information Base (FIB) multicast routes, use the show forwarding multicast route command.
show forwarding [vrf {vrf-name | all}] [ip | ipv4] multicast route {[group {group-addr [group-mask] | group-prefix} | source {source-addr [source-mask] | source-prefix} | module num | vrf {vrf-name | all}] | summary [vrf {vrf-name | all}]}
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display information about the IPv4 multicast FIB routes:
switch#
show forwarding multicast route
IPv4 Multicast Routing table table-id:1
Total number of groups: 1
Legend:
C = Control Route
D = Drop Route
G = Local Group (directly connected receivers)
O = Drop on RPF failure
P = Punt to Supervisor
W = Wildcard
d = OTV Decap route
(*, 230.0.0.0/32), RPF Interface: NULL, flags: DG
Received Packets: 0 Bytes: 0
Number of Outgoing Interfaces: 1
Outgoing Interface List Index: 1
Ethernet1/5 Outgoing Packets:0 Bytes:0
switch#
This example shows how to display the summary information about the IPv4 multicast FIB routes:
switch#
show forwarding multicast route summary
IPv4 Multicast Routing Table for Context "default"
Total number of routes: 1
Total number of (*,G) routes: 1
Total number of (S,G) routes: 0
Total number of (*,G-prefix) routes: 0
Group count: 1
Prefix insert fail count: 9
switch#
|
|
---|---|
clear ip mroute |
Clears the multicast routing table. |
To display adjacency information, use the show ip adjacency command.
show ip adjacency [ip-addr | interface] [detail] [non-best] [statistics] [summary]
[vrf vrf-name | all | default | management]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
The counter values in the output of show ip adjacency {statistics | detail} command are cleared after a supervisor module switchover.
This example shows how to display a summary of the adjacency information:
switch# show ip adjacency summary
IP Adjacency Table for VRF default
Total number of entries: 1
Address MAC Address Pref Source Interface
2.2.2.100 000a.000a.000a 1 Static Ethernet1/2
switch#
|
|
---|---|
show forwarding adjacency |
Displays forwarding adjacency information. |
To display the IP adjacency summary, use the show ip adjacency summary command.
show ip adjacency summary
This command has no arguments or keywords.
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display the IP adjacency summary:
switch# show ip adjacency summary
I
IP AM Table - Adjacency Summary
Static : 1
Dynamic : 0
Others : 0
Total : 1
switch#
|
|
---|---|
ip arp timeout |
Configures ARP. |
To display forwarding information, use the show ip fib command.
show ip fib {adjacency | interfaces | route} module slot
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
Use the show ip fib command on the supervisor to view forwarding information on a module. Optionally, you can use the attach module command to attach to a module and use the show ip fib command on the module.
This example shows how to display the forwarding information for module 1:
switch# show ip fib route module 1
IPv4 routes for table default/base
------------------+------------------+---------------------
Prefix | Next-hop | Interface
------------------+------------------+---------------------
0.0.0.0/32 Drop Null0
255.255.255.255/32 Receive sup-eth1
switch#
|
|
---|---|
show forwarding |
Displays information about the FIB. |
To display forwarding distribution information, use the show ip fib distribution command.
show ip fib distribution [clients | state]
clients |
(Optional) Displays the forwarding distribution information for unicast clients. |
state |
(Optional) Displays the forwarding distribution state for unicast FIB. |
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the forwarding information for unicast clients:
switch# show ip fib distribution clients
|
|
---|---|
show forwarding distribution |
Displays distribution information about the FIB. |
To display IP load sharing information, use the show ip load-sharing command.
show ip load-sharing
This command has no arguments or keywords.
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the IP load sharing information:
switch# show ip load-sharing
|
|
---|---|
show ip load-sharing |
Displays IP load sharing. |
To display formation about the IP process, use the show ip process command.
show ip process [vrf vrf-name]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows details about the IP process:
switch(config)# show ip process
VRF default
VRF id is 1
Base table id is 1
Auto discard is disabled
Auto discard is not added
Auto Null broadcast is configured
Auto Punt broadcast is configured
Static discard is not configured
Number of static default route configured is 0
Number of ip unreachable configured is 0
Iodlist: 73 74
Local address list: 1.1.1.1 2.2.2.1 21.1.1.1
switch(config)#
To display routes from the unicast Routing Information Base (RIB), use the show ip route command.
show ip route [all | addr | hostname | prefix | route-type | interface type number | next-hop addr]] [vrf vrf-name]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the route table:
switch(config)# show ip route all
|
|
---|---|
clear ip route |
Clears entries in the route table. |
To display static routes from the unicast Routing Information Base (RIB), use the show ip static-route command.
show ip static-route [vrf {vrf-name | all}]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the static routes:
switch(config)# show ip static-route
|
|
---|---|
ip route |
Configures a static route. |
To display routing information, use the show routing command.
show routing [ip | ipv4] [address | hostname | prefix | route-type | clients | hidden-nh interface type number | next-hop addr | recursive-next-hop [addr]] [vrf vrf-name]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the route table:
switch(config)# show ip routing
|
|
---|---|
clear ip route |
Clears entries in the route table. |
To display an estimate of routing memory requirements, use the show routing memory estimate command.
show routing memory estimate [routes num-routes next-hops num-hop-addresses]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
Use the show routing memory estimate command to estimate the memory required for a selected number of routes and number of next-hop addresses per route.
This example shows how to display the route table:
switch# show routing memory estimate routes 1000 next-hops 1
Shared memory estimates:
Current max 32 MB; 27495 routes with 16 nhs
in-use 1 MB; 11 routes with 1 nhs (average)
Configured max 32 MB; 27495 routes with 16 nhs
Estimate 0 MB; 1000 routes with 1 nhs
To display the route selected for a particular source and destination address, use the show routing hash command.
show routing hash source-addr dest-addr [source-port dest-port]] [vrf vrf-name]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the route selected to reach 30.0.0.2 from 10.0.0.5:
switch# show routing hash 10.0.0.5 30.0.0.2
|
|
---|---|
clear ip route |
Clears entries in the route table. |
To display information about the sockets clients, use the show sockets client command.
show sockets client [pid id] [raw | tcp | udp ] [detail]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the UDP socket client information:
switch# show sockets client udp
Total number of UDP clients: 9
client: syslogd, pid: 4367, sockets: 2
client: ntpd, pid: 4602, sockets: 3
client: ntp, pid: 4591, sockets: 2
client: radiusd, pid: 4586, sockets: 2
client: dhcp_snoop, pid: 5260, sockets: 1
client: pim, pid: 5296, sockets: 1
client: mcecm, pid: 5265, sockets: 1
client: snmpd, pid: 4609, sockets: 2
client: hsrp_engine, pid: 9588, sockets: 2
Statistics: Cancels 12777, Cancel-unblocks 11257, Cancel-misses 0
Select-drops 1520, Select-wakes 11257,
switch#
To display information about the sockets connection, use the show sockets connection command.
show sockets connection [pid id] [local address | foreign address | raw | tcp | udp] [detail]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the TCP socket connection information:
switch# show sockets connection tcp
Total number of tcp sockets: 4
Active connections (including servers)
Protocol State/ Recv-Q/ Local Address(port)/
Context Send-Q Remote Address(port)
tcp6 LISTEN 0 *(22)
Wildcard 0 *(*)
tcp6 LISTEN 0 *(23)
Wildcard 0 *(*)
tcp LISTEN 0 *(161)
Wildcard 0 *(*)
tcp ESTABLISHED 0 172.29.231.33(23)
management 4 72.163.177.151(1559)
switch#
|
|
---|---|
clear sockets statistics |
Clears the socket statistics. |
show sockets client |
Displays information about the socket client. |
show sockets statistics |
Displays the socket statistics. |
To display the socket statistics, use the show sockets statistics command.
show sockets statistics [all | raw | rawsum | tcp | tcpsum | udp | udpsum]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This example shows how to display the TCP socket statistics:
switch# show sockets statistics tcp
TCP v4 Received:
11622 packets total
0 checksum error, 0 bad offset, 0 too short, 0 MD5 error
8782 packets (33566 bytes) in sequence
0 duplicate packets (0 bytes)
0 partially dup packets (0 bytes)
0 out-of-order packets (0 bytes)
0 packets (0 bytes) with data after window
0 packets after close
0 window probe packets, 0 window update packets
2 duplicate ack packets, 0 ack packets with unsent data
9349 ack packets (890960 bytes)
TCP v4 Sent:
9543 total, 0 urgent packets
3 control packets
9492 data packets (890955 bytes)
0 data packets (0 bytes) retransmitted
48 ack only packets
0 window probe packets, 0 window update packets
TCP v4:
0 connections initiated, 6 connections accepted, 6 connections established
6 connections closed (including 2 dropped, 0 embryonic dropped)
0 total rxmt timeout, 0 connections dropped in rxmt timeout
0 keepalive timeout, 0 keepalive probe, 0 connections dropped in keepalive
switch#