Specifications

Send document comments to nexus3k-docfeedback@cisco.com.
3-41
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 3 Configuring OSPFv2
Verifying the OSPFv2 Configuration
This example shows how to create a VRF and add an interface to the VRF:
switch# configure terminal
switch(config)# vrf context NewVRF
switch(config)# router ospf 201
switch(config)# interface ethernet 1/2
switch(config-if)# no switchport
switch(config-if)# vrf member NewVRF
switch(config-if)# ip address 192.0.2.1/16
switch(config-if)# ip router ospf 201 area 0
switch(config)# copy running-config startup-config
Verifying the OSPFv2 Configuration
To display the OSPFv2 configuration information, perform one of the following tasks:
Step 8
vrf member vrf-name
Example:
switch(config-if)# vrf member
RemoteOfficeVRF
Adds this interface to a VRF.
Step 9
ip address ip-prefix/length
Example:
switch(config-if)# ip address
192.0.2.1/16
Configures an IP address for this interface. You must
do this step after you assign this interface to a VRF.
Step 10
ip router ospf instance-tag area area-id
Example:
switch(config-if)# ip router ospf 201
area 0
Assigns this interface to the OSPFv2 instance and area
configured.
Step 11
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose
Command Purpose
show ip ospf Displays the OSPFv2 configuration.
show ip ospf border-routers
[vrf
{vrf-name | all | default | management}]
Displays the OSPFv2 border router configuration.
show ip ospf database
[vrf {vrf-name | all
| default | management}]
Displays the OSPFv2 link-state database summary.
show ip ospf interface number
[vrf
{vrf-name | all | default | management}]
Displays the OSPFv2 interface configuration.
show ip ospf lsa-content-changed-list
interface-type number
Displays the OSPFv2 LSAs that have changed.