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 Open Shortest Path First (OSPF) show commands.
To display general information about Open Shortest Path First (OSPF) routing instances, use the show ip ospf command.
show ip ospf [instance-tag] [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf command to display information about one or more OSPF instances.
This command requires the LAN Base Services license.
This example shows how to display information all about OSPF instances:
switch# show ip ospf
Routing Process 201 with ID 192.0.2.1 VRF default
Stateful High Availability enabled
Graceful-restart is configured
Grace period: 60 state: Inactive
Last graceful restart exit status: None
Supports only single TOS(TOS0) routes
Supports opaque LSA
This router is an autonomous system boundary
Redistributing External Routes from
bgp-1
Maximum limit: 1000 (warning-only)
Threshold: message 750
Current count: 0
Administrative distance 110
Reference Bandwidth is 40000 Mbps
Initial SPF schedule delay 3000.000 msecs,
minimum inter SPF delay of 2000.000 msecs,
maximum inter SPF delay of 4000.000 msecs
Initial LSA generation delay 3000.000 msecs,
minimum inter LSA delay of 6000.000 msecs,
maximum inter LSA delay of 6000.000 msecs
Minimum LSA arrival 2000.000 msec
Maximum paths to destination 3
Originating router LSA with maximum metric
Condition: Always
Number of external LSAs 0, checksum sum 0
Number of opaque AS LSAs 0, checksum sum 0
Number of areas is 3, 3 normal, 0 stub, 0 nssa
Number of active areas is 0, 0 normal, 0 stub, 0 nssa
Area BACKBONE(0.0.0.0) (Inactive)
Area has existed for 00:22:49
Interfaces in this area: 1 Active interfaces: 0
Passive interfaces: 0 Loopback interfaces: 0
No authentication available
SPF calculation has run 3 times
Last SPF ran for 0.000036s
Area ranges are
Number of LSAs: 0, checksum sum 0
Area (0.0.0.10) (Inactive)
Area has existed for 00:41:30
Interfaces in this area: 0 Active interfaces: 0
Passive interfaces: 0 Loopback interfaces: 0
Summarization is disabled
Simple password authentication
SPF calculation has run 8 times
Last SPF ran for 0.000150s
Area ranges are
10.3.0.0/16 Passive (Num nets: 0) Advertise
Area-filter in 'FilterLSAs'
Number of LSAs: 0, checksum sum 0
Area (0.0.0.15) (Inactive)
Area has existed for 00:49:30
Interfaces in this area: 1 Active interfaces: 0
Passive interfaces: 1 Loopback interfaces: 0
No authentication available
SPF calculation has run 8 times
Last SPF ran for 0.000021s
Area ranges are
Number of LSAs: 0, checksum sum 0
switch#
This example shows how to display information about one specific OSPF instance:
switch# show ip ospf 201
Routing Process 201 with ID 192.0.2.1 VRF default
Stateful High Availability enabled
Graceful-restart is configured
Grace period: 60 state: Inactive
Last graceful restart exit status: None
Supports only single TOS(TOS0) routes
Supports opaque LSA
Administrative distance 110
Reference Bandwidth is 40000 Mbps
Initial SPF schedule delay 200.000 msecs,
minimum inter SPF delay of 1000.000 msecs,
maximum inter SPF delay of 5000.000 msecs
Initial LSA generation delay 0.000 msecs,
minimum inter LSA delay of 5000.000 msecs,
maximum inter LSA delay of 5000.000 msecs
Minimum LSA arrival 1000.000 msec
Maximum paths to destination 3
Number of external LSAs 0, checksum sum 0
Number of opaque AS LSAs 0, checksum sum 0
Number of areas is 2, 1 normal, 1 stub, 0 nssa
Number of active areas is 0, 0 normal, 0 stub, 0 nssa
Area (0.0.0.10) (Inactive)
Area has existed for 00:12:18
Interfaces in this area: 0 Active interfaces: 0
Passive interfaces: 0 Loopback interfaces: 0
This area is a STUB area
Generates stub default route with cost 25
Simple password authentication
SPF calculation has run 1 times
Last SPF ran for 0.000122s
Area ranges are
Area-filter in 'FilterLSAs'
Number of LSAs: 0, checksum sum 0
Area (0.0.0.15) (Inactive)
Area has existed for 00:20:18
Interfaces in this area: 1 Active interfaces: 0
Passive interfaces: 1 Loopback interfaces: 0
No authentication available
SPF calculation has run 1 times
Last SPF ran for 0.000020s
Area ranges are
Number of LSAs: 0, checksum sum 0
switch#
Table 1 describes the significant fields shown in the display.
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display the Open Shortest Path First (OSPF) routing table entries to an Area Border Router (ABR) and Autonomous System Boundary Router (ASBR), use the show ip ospf border-routers command.
show ip ospf [instance-tag] border-routers [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf border-routers command to display information on ABRs. and ASBRs.
This command requires the LAN Base Services license.
This example shows how to display information about border routers:
switch# show ip ospf border-routers
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display the Open Shortest Path First (OSPF) database for a specific router, use the show ip ospf database command.
show ip ospf [instance-tag] database [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database asbr-summary [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database database-summary [vrf vrf-name]
show ip ospf [instance-tag] database external [ext_tag value] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database network [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database nssa-external [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database opaque-area [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database opaque-as [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database opaque-link [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database router [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
show ip ospf [instance-tag] database summary [area-id] [link-state-id] [adv-router ip-address | self-originated] [detail] [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the ip ospf database command to display information about different OSPF LSAs.
When the link state advertisement is describing a network, the link-state-id argument can take one of two forms:
•The network's IP address (such as Type 3 summary link advertisements and autonomous system external link advertisements).
•A derived address obtained from the link state ID. (Note that masking a network links advertisement's link state ID with the network's subnet mask yields the network's IP address.)
•When the link state advertisement is describing a router, the link state ID is always the described router's OSPF router ID.
•When an autonomous system external advertisement (LS Type = 5) is describing a default route, its link state ID is set to Default Destination (0.0.0.0).
This command requires the LAN Base Services license.
This example shows how to display the OSPF database:
switch# show ip ospf database
This example shows how to display a summary of autonomous system border routers:
switch# show ip ospf database asbr-summary
This example shows how to display information about external links:
switch# show ip ospf database external
This example shows how to display a summary of the OSPF database:
switch# show ip ospf database database-summary
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display Open Shortest Path First (OSPF)-related interface information, use the show ip ospf interface command.
show ip ospf interface [instance-tag] [{ethernet slot/port | loopback if_number | port-channel number}] [brief] [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf interface command to display the OSPF status for the interface.
This command requires the LAN Base Services license.
This example shows how to display OSPF information for Ethernet interface 1/5:
switch# show ip ospf interface ethernet 1/5
Ethernet1/5 is up, line protocol is down
IP address 192.0.2.1, Process ID 201 VRF RemoteOfficeVRF, area 0.0.0.10
Enabled by interface configuration
State DOWN, Network type BROADCAST, cost 4
Index 1, Transmit delay 1 sec, Router Priority 1
No designated router on this network
No backup designated router on this network
0 Neighbors, flooding to 0, adjacent with 0
Timer intervals: Hello 10, Dead 40, Wait 40, Retransmit 5
No authentication
Number of opaque link LSAs: 0, checksum sum 0
switch#
Table 2 describes the significant fields shown in the display.
This example shows how to display OSPF information for all VRFs:
switch# show ip ospf interface vrf all
VL1-0.0.0.10-10.1.2.3 is down, line protocol is down
IP address 0.0.0.0, Process ID 201 VRF default, area 0.0.0.0
State DOWN, Network type P2P, cost 65535
Index 2, Transmit delay 2 sec
0 Neighbors, flooding to 0, adjacent with 0
Timer intervals: Hello 25, Dead 50, Wait 50, Retransmit 50
Message-digest authentication, using key id 21
Number of opaque link LSAs: 0, checksum sum 0
switch#
This example shows how to display OSPF information in a brief format:
switch# show ip ospf interface brief
OSPF Process ID 201 VRF default
Total number of interface: 1
Interface ID Area Cost State Neighbors Status
VL1 2 0.0.0.0 65535 DOWN 0 down
switch#
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display a list of all link-state advertisements (LSAs) with changed content, use the show ip ospf lsa-content-changed-list command.
show ip ospf lsa-content-changed-list neighbor-id {ethernet slot/port | loopback if_number | port-channel number}
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This command requires the LAN Base Services license.
This example shows how to display a list of LSAs that changed for Ethernet 2/1:
switch# show ip ospf lsa-content-changed-list 192.0.2.2 ethernet 2/1
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display Open Shortest Path First (OSPF)-neighbor information on a per-interface basis, use the show ip ospf neighbors command.
show ip ospf [instance-tag] neighbors [{ethernet slot/port | loopback if_number | port-channel number}] [neighbor-id] [detail] [summary] [vrf {vrf-name | all | default | management}]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf neighbors command to display information about all or some of the neighbors for this OSPF instance.
This command requires the LAN Base Services license.
This example shows how to display the summary information about the neighbor that matches the neighbor ID:
switch# show ip ospf neighbors 10.199.199.137
This example shows how to display the neighbors that match the neighbor ID on an interface:
switch# show ip ospf neighbors ethernet 2/1 10.199.199.137
This example shows how to display detailed information about OSPF neighbors:
switch# show ip ospf neighbors detail
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display Open Shortest Path First (OSPF) policy statistics for an area, use the show ip ospf policy statistics area command.
show ip ospf [instance-tag] policy statistics area area-id filter-list {in | out} [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf policy statistics area command to display information about the filter lists applied to an area.
This command requires the LAN Base Services license.
This example shows how to display policy statistics for OSPF:
switch# show ip ospf policy statistics area 201 filter-list in
To display Open Shortest Path First (OSPF) policy statistics, use the show ip ospf policy statistics redistribute command.
show ip ospf [instance-tag] policy statistics redistribute {bgp id | direct | eigrp id | ospf id | rip id | static} [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf policy statistics redistribute command to display redistribution statistics.
This command requires the LAN Base Services license.
This example shows how to display policy statistics for redistributed routes:
switch# show ip ospf policy statistics redistribute
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display a list of all link-state advertisements (LSAs) requested by a router, use the show ip ospf request-list command.
show ip ospf request-list neighbor-id {ethernet slot/port | loopback if_number | port-channel number}
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf request-list command to troubleshoot Open Shortest Path First (OSPF) routing operations.
This command requires the LAN Base Services license.
This example shows how to display a list of all LSAs requested by a router:
switch# show ip ospf request-list 40.40.40 ethernet 2/1
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display a list of all link-state advertisements (LSAs) waiting to be resent to neighbors, use the show ip ospf retransmission-list command.
show ip ospf retransmission-list neighbor-id {ethernet slot/port | loopback if_number | port-channel number}
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf retransmission-list command to troubleshoot Open Shortest Path First (OSPF) routing operations.
This command requires the LAN Base Services license.
This example shows how to display all LSAs waiting to be resent to neighbors:
switch# show ip ospf retransmission-list 192.0.2.11 ethernet 2/1
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display the Open Shortest Path First (OSPF) topology table, use the show ip ospf routes command.
show ip ospf [instance-tag] routes [prefix/length | summary} [vrf vrf-name]
None
Any command mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ospf routes command to display the OSPF private routing table (which contains only routes that are calculated by OSPF). If something is wrong with a route in the routing information base (RIB), then you should check the OSPF copy of the route to determine if it matches the RIB contents. If it does not match, a synchronization problem exists between OSPF and the RIB.
This command requires the LAN Base Services license.
This example shows how to display OSPF routes:
switch# show ip ospf route
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display Open Shortest Path First (OSPF) shortest path first (SPF) calculation statistics, use the show ip ospf statistics command.
show ip ospf [instance-tag] statistics [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf statistics command to display information about link-state advertisements (LSAs). This information can be useful for both OSPF network maintenance and troubleshooting. For example, we recommend that you use the show ip ospf statistics command as the first troubleshooting step for LSA flapping.
This command requires the LAN Base Services license.
This example shows how to display information about the SPF calculations:
switch# show ip ospf statistics
OSPF Process ID 201 VRF default, Event statistics (cleared 00:10:45 ago)
Router ID changes: 1
DR elections: 0
Older LSAs received: 0
Neighbor state changes: 0
Neighbor dead postponed: 0
Neighbor dead interval expirations: 0
Neighbor bad lsreqs: 0
Neighbor sequence number mismatches: 0
SPF computations: 2 full, 0 summary, 0 external
LSA Type Generated Refreshed Flushed Aged out
Router 0 0 0 0
Network 0 0 0 0
Summary Net 0 0 0 0
Summary ASBR 0 0 0 0
AS External 0 0 0 0
Opaque Link 0 0 0 0
Opaque Area 0 0 0 0
Opaque AS 0 0 0 0
Following counters can not be reset:
LSA deletions: 0 pending, 0 hwm, 0 deleted, 0 revived, 0 runs
Hello queue: 0/200, hwm 0, drops 0
Flood queue: 0/350, hwm 0, drops 0
LSDB additions failed: 0
Buffers: in use hwm permanent alloc free
128 bytes 0 0 0 0 0
512 bytes 0 0 0 0 0
1520 bytes 0 0 0 0 0
4500 bytes 0 0 0 0 0
huge 0 0 0 0 0
switch#
Table 3 describes the significant fields shown in the display.
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display a list of all summary address redistribution information configured in an Open Shortest Path First (OSPF) instance, use the show ip ospf summary-address command.
show ip ospf [instance-tag] summary-address [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This command requires the LAN Base Services license.
This example shows how to display information about summary addresses:
switch# show ip ospf summary-address
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display Open Shortest Path First (OSPF) traffic statistics, use the show ip ospf traffic command.
show ip ospf [instance-tag] traffic [ethernet slot/port | loopback if_number | port-channel number] [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf traffic command to display traffic statistics for one or more OSPF instances.
This command requires the LAN Base Services license.
This example shows how to display OSPF traffic statistics for interface 1/5:
switch# show ip ospf traffic ethernet 1/5
OSPF Process ID 201 VRF RemoteOfficeVRF, Packet Counters (cleared 00:26:04 ago)
Interface Ethernet1/5, Area 0.0.0.0
Total: 0 in, 0 out
LSU transmissions: first 0, rxmit 0, for req 0, nbr xmit 0
Flooding packets output throttled (IP/tokens): 0 (0/0)
Ignored LSAs: 0, LSAs dropped during SPF: 0
LSAs dropped during graceful restart: 0
Errors: drops in 0, drops out 0, errors in 0,
errors out 0, hellos in 0, dbds in 0,
lsreq in 0, lsu in 0, lsacks in 0,
unknown in 0, unknown out 0, no ospf 0,
bad version 0, bad crc 0, dup rid 0,
dup src 0, invalid src 0, invalid dst 0,
no nbr 0, passive 0, wrong area 0,
pkt length 0, nbr changed rid/ip addr 0
bad auth 0
hellos dbds lsreqs lsus acks
In: 0 0 0 0 0
Out: 0 0 0 0 0
switch#
Table 4 describes the significant fields shown in the display.
|
|
---|---|
clear ip ospf traffic |
Clears OSPF traffic statistics. |
show running-config ospf |
Displays the OSPF running configuration information. |
To display parameters and the current state of Open Shortest Path First (OSPF) virtual links, use the show ip ospf virtual-links command.
show ip ospf [instance-tag] virtual-links [brief] [vrf vrf-name]
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the show ip ospf virtual-links command to display information about configured virtual links.
This command requires the LAN Base Services license.
This example shows how to display information about virtual links:
switch# show ip ospf virtual-links
Virtual link VL1 to router 10.1.2.3 is down
Transit area 0.0.0.10, via interface (null), remote addr 0.0.0.0
IP address 0.0.0.0, Process ID 201 VRF default, area 0.0.0.0
State DOWN, Network type P2P, cost 65535
Index 2, Transmit delay 2 sec
0 Neighbors, flooding to 0, adjacent with 0
Timer intervals: Hello 25, Dead 50, Wait 50, Retransmit 50
Message-digest authentication, using key id 21
Number of opaque link LSAs: 0, checksum sum 0
Adjacency Information
switch#
Table 5 describes the significant fields shown in the display.
This example shows how to display information about virtual links in brief format:
switch# show ip ospf virtual-links brief
OSPF Process ID 201 VRF default
Total number of vlinks: 1
Remote Router ID Transit Area Cost Status
10.1.2.3 1 0.0.0.10 65535 down
switch#
|
|
---|---|
show running-config ospf |
Displays the OSPF running configuration. |
To display IP traffic information, use the show ip traffic command.
show ip traffic
This command has no arguments or keywords.
None
|
|
5.0(3)N1(1) |
This command was introduced. |
This example shows how to display the IP traffic information:
switch(config)# show ip traffic
IP Software Processed Traffic Statistics
----------------------------------------
Transmission and reception:
Packets received: 103598, sent: 32093, consumed: 2,
Forwarded, unicast: 0, multicast: 0, Label: 0
Opts:
end: 0, nop: 0, basic security: 0, loose source route: 0
timestamp: 0, record route: 0
strict source route: 0, alert: 0,
other: 0
Errors:
Bad checksum: 0, packet too small: 0, bad version: 0,
Bad header length: 0, bad packet length: 0, bad destination: 0,
Bad ttl: 0, could not forward: 990, no buffer dropped: 0,
Bad encapsulation: 2, no route: 0, non-existent protocol: 0
Stateful Restart Recovery: 0
MBUF pull up fail: 0
Fragmentation/reassembly:
Fragments received: 0, fragments sent: 0, fragments created: 0,
Fragments dropped: 0, packets with DF: 0, packets reassembled: 0,
Fragments timed out: 0
ICMP Software Processed Traffic Statistics
------------------------------------------
Transmission:
Redirect: 2, unreachable: 0, echo request: 0, echo reply: 0,
Mask request: 0, mask reply: 0, info request: 0, info reply: 0,
Parameter problem: 0, source quench: 0, timestamp: 0,
Timestamp response: 0, time exceeded: 0,
Irdp solicitation: 0, irdp advertisement: 0
Reception:
Redirect: 2, unreachable: 22048, echo request: 0, echo reply: 0,
Mask request: 0, mask reply: 0, info request: 0, info reply: 0,
Parameter problem: 0, source quench: 0, timestamp: 0,
Timestamp response: 0, time exceeded: 0,
Irdp solicitation: 0, irdp advertisement: 0,
Format error: 0, checksum error: 0
Statistics last reset: never
switch(config)#
|
|
---|---|
show ip process |
Displays information about the IP process. |
To display the running configuration for Open Shortest Path First version 2 (OSPFv2) for IPv4 networks, use the show running-config ospf command.
show running-config ospf
This command has no arguments or keywords.
None
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display the running configuration for OSPF:
switch# show running-config ospf
!Command: show running-config ospf
!Time: Tue Apr 15 09:09:15 2008
version 5.0(3)N1(1)
feature ospf
router ospf 201
router-id 192.0.2.1
default-information originate route-map DefaultRouteFilter
area 0.0.0.10 virtual-link 192.0.2.3
authentication message-digest
authentication-key 3 15e76ee89406ccbf
message-digest-key 21 md5 3 15e76ee89406ccbf
dead-interval 50
hello-interval 25
retransmit-interval 50
transmit-delay 2
redistribute bgp 1 route-map FilterExtBGP
redistribute maximum-prefix 1000 75 warning-only
area 0.0.0.10 authentication
area 0.0.0.10 default-cost 25
area 0.0.0.10 filter-list route-map FilterLSAs in
log-adjacency-changes
maximum-paths 3
default-metric 25
interface Ethernet1/5
ip ospf authentication key-chain Test1
ip ospf authentication-key 3 15e76ee89406ccbf
ip ospf message-digest-key 21 md5 3 15e76ee89406ccbf
ip ospf cost 25
ip ospf dead-interval 50
ip ospf hello-interval 25
ip ospf passive-interface
ip ospf priority 25
ip ospf mtu-ignore
ip router ospf 201 area 0.0.0.15
switch#
|
|
---|---|
router ospf |
Creates an OSPF instance. |
To display the virtual routing and forwarding (VRF) instances, use the show vrf command.
show vrf
This command has no arguments or keywords.
None
EXEC mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display the VRF instances configured on the switch:
switch# show vrf
VRF-Name VRF-ID State Reason
default 1 Up --
management 2 Up --
switch#
|
|
---|---|
vrf |
Configures a VRF instance. |
vrf context |
Creates a VRF instance. |
vrf member |
Adds an interface to a VRF. |
To display the detailed information of virtual routing and forwarding (VRF) instances, use the show vrf detail command.
show vrf detail
This command has no arguments or keywords.
None
EXEC mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
By default, this command displays the detailed information of the default VRF and management VRF.
This command does not require a license.
This example shows how to display the detailed information of VRF instances configured on the switch:
switch# show vrf detail
VRF-Name: default, VRF-ID: 1, State: Up
Table-ID: 0x80000001, AF: IPv6, Fwd-ID: 0x80000001, State: Up
Table-ID: 0x00000001, AF: IPv4, Fwd-ID: 0x00000001, State: Up
VRF-Name: management, VRF-ID: 2, State: Up
Table-ID: 0x80000002, AF: IPv6, Fwd-ID: 0x80000002, State: Up
Table-ID: 0x00000002, AF: IPv4, Fwd-ID: 0x00000002, State: Up
switch#
|
|
---|---|
vrf |
Configures a VRF instance. |
vrf context |
Creates a VRF instance. |
vrf member |
Adds an interface to a VRF. |
To display the virtual routing and forwarding (VRF) information for interfaces, use the show vrf interface command.
show vrf interface [mgmt mgmt-number | vlan vlan-ID]
All interfaces
EXEC mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display the VRF information for all configured interfaces:
switch# show vrf interface
Interface VRF-Name VRF-ID
Vlan1 default 1
Vlan5 default 1
loopback1 default 1
mgmt0 management 2
switch#
This example shows how to display the VRF information for management interfaces:
switch# show vrf interface mgmt 0
Interface VRF-Name VRF-ID
mgmt0 management 2
switch#
This example shows how to display the VRF information for VLAN interfaces:
switch# show vrf interface vlan 1
Interface VRF-Name VRF-ID
Vlan1 default 1
switch#
|
|
---|---|
vrf member |
Adds an interface to a VRF. |