Chapter 3
Configuring OSPFv2
S e n d d o c u m e n t c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
Command
Step 8
vrf member vrf-name
Example:
switch(config-if)# vrf member
RemoteOfficeVRF
Step 9
ip address ip-prefix/length
Example:
switch(config-if)# ip address
192.0.2.1/16
Step 10
ip router ospf instance-tag area area-id
Example:
switch(config-if)# ip router ospf 201
area 0
Step 11
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
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:
Command
show ip ospf
show ip ospf border-routers [vrf
{vrf-name | all | default | management}]
show ip ospf database [vrf {vrf-name | all
| default | management}]
show ip ospf interface number [vrf
{vrf-name | all | default | management}]
show ip ospf lsa-content-changed-list
interface
type number
-
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Purpose
Adds this interface to a VRF.
Configures an IP address for this interface. You must
do this step after you assign this interface to a VRF.
Assigns this interface to the OSPFv2 instance and area
configured.
(Optional) Saves this configuration change.
Purpose
Displays the OSPFv2 configuration.
Displays the OSPFv2 border router configuration.
Displays the OSPFv2 link-state database summary.
Displays the OSPFv2 interface configuration.
Displays the OSPFv2 LSAs that have changed.
Verifying the OSPFv2 Configuration
3-41