Configuring Basic 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
OSPFv2 must be able to obtain a router identifier (for example, a configured loopback address) or you
must configure the router ID option.
DETAILED STEPS
You can configure the following optional parameters for OSPFv2 in router configuration mode:
Command
distance number
Example:
switch(config-router)# distance 25
log-adjacency-changes [detail]
Example:
switch(config-router)#
log-adjacency-changes
maximum-paths path-number
Example:
switch(config-router)# maximum-paths 4
This example shows how to create an OSPFv2 instance:
switch# configure terminal
switch(config)# router ospf 201
switch(config-router)# copy running-config startup-config
Configuring Networks in OSPFv2
You can configure a network to OSPFv2 by associating it through the interface that the router uses to
connect to that network (see the
default backbone area (Area 0), or you can create new areas using any decimal number or an IP address.
All areas must connect to the backbone area either directly or through a virtual link.
Note
OSPF is not enabled on an interface until you configure a valid IP address for that interface.
Note
BEFORE YOU BEGIN
Ensure that you have enabled the OSPF feature (see the
page
SUMMARY STEPS
1.
2.
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
3-16
3-13).
configure terminal
interface interface-type slot/port
Purpose
Configures the administrative distance for this
OSPFv2 instance. The range is from 1 to 255. The
default is 110.
Generates a system message whenever a neighbor
changes state.
Configures the maximum number of equal OSPFv2
paths to a destination in the route table. This
command is used for load balancing. The range is
from 1 to 16. The default is 8.
"Neighbors" section on page
"Enabling the OSPFv2 Feature" section on
Chapter 3
Configuring OSPFv2
3-2). You can add all networks to the