Send document comments to nexus7k-docfeedback@cisco.com.
6-19
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 6 Configuring OSPFv2
Configuring Basic OSPFv2
The following example shows how to add a network area 0.0.0.10 in OSPFv2 instance 201:
switch# config t
switch(config)# interface ethernet 1/2
switch(config-if)# ip address 192.0.2.1/16
switch(config-if)# ip router ospf 201 area 0.0.0.10
switch(config-if)# copy running-config startup-config
Use the show ip ospf interface command to verify the interface configuration. Use the show ip ospf
neighbor command to see the neighbors for this interface.
Configuring Authentication for an Area
You can configure authentication for all networks in an area or for individual interfaces in the area.
Interface authentication configuration overrides area authentication.
BEFORE YOU BEGIN
Ensure that you have enabled the OSPF feature (see the “Enabling the OSPFv2 Feature” section on
page 6-14).
Ensure that all neighbors on an interface share the same authentication configuration, including the
shared authentication key.
Create the key-chain for this authentication configuration. See the Cisco NX-OS Security Configuration
Guide.
Note For OSPFv2, the key identifier in the key key-id command supports values from 0 to 255 only.
ip ospf hello-interval seconds
Example:
switch(config-if)# ip ospf hello-interval
25
Configures the OSPFv2 hello interval, in seconds.
The range is from 1 to 65535. The default is 10
seconds.
ip ospf mtu-ignore
Example:
switch(config-if)# ip ospf mtu-ignore
Configures OSPFv2 to ignore any IP MTU
mismatch with a neighbor. The default is to not
establish adjacency if the neighbor MTU does not
match the local interface MTU.
ip ospf passive-interface
Example:
switch(config-if)# ip ospf
passive-interface
Suppresses routing updates on the interface.
ip ospf priority number
Example:
switch(config-if)# ip ospf priority 25
Configures the OSPFv2 priority, used to determine
the DR for an area. The range is from 0 to 255. The
default is 1. See the “Designated Routers” section
on page 6-3.
ip ospf shutdown
Example:
switch(config-if)# ip ospf shutdown
Shuts down the OSPFv2 instance on this interface.
Command Purpose