Send document comments to nexus7k-docfeedback@cisco.com.
6-18
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 6 Configuring OSPFv2
Configuring Basic OSPFv2
5. show ip ospf instance-tag interface interface-type slot/port
6. copy running-config startup-config
DETAILED STEPS
You can configure the following optional parameters for OSPFv2 in interface configuration mode:
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
interface
interface-type
slot/port
Example:
switch(config)# interface ethernet 1/2
switch(config-if)#
Enters interface configuration mode.
Step 3
ip address
ip-prefix/length
Example:
switch(config-if)# ip address
192.0.2.1/16
Assigns an IP address and subnet mask to this
interface.
Step 4
ip router ospf
instance-tag
area
area-id
[secondaries none]
Example:
switch(config-if)# ip router ospf 201
area 0.0.0.15
Adds the interface to the OSPFv2 instance and area.
Step 5
show ip ospf
instance-tag
interface
interface-type
slot/port
Example:
switch(config-if)# show ip ospf 201
interface ethernet 1/2
(Optional) Displays OSPF information.
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose
ip ospf cost
number
Example:
switch(config-if)# ip ospf cost 25
Configures the OSPFv2 cost metric for this
interface. The default is to calculate cost metric,
based on reference bandwidth and interface
bandwidth. The range is from 1 to 65535.
ip ospf dead-interval
seconds
Example:
switch(config-if)# ip ospf dead-interval
50
Configures the OSPFv2 dead interval, in seconds.
The range is from 1 to 65535. The default is four
times the hello interval, in seconds.