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
Command
Step 5
no switchport
Example:
switch(config-if)# no switchport
Step 6
ip ospf authentication-key [0 | 3] key
Example:
switch(config-if)# ip ospf
authentication-key 0 mypass
ip ospf message-digest-key key-id md5 [0
| 3] key
Example:
switch(config-if)# ip ospf
message-digest-key 21 md5 0 mypass
Step 7
show ip ospf instance-tag interface
interface-type slot/port
Example:
switch(config-if)# show ip ospf 201
interface ethernet 1/2
Step 8
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Configuring Authentication for an Interface
You can configure authentication 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
page
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 Nexus 3000 Series NX-OS
Security Configuration Guide.
SUMMARY STEPS
1.
2.
3.
4.
5.
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
3-20
3-13).
configure terminal
interface interface-type slot/port
no switchport
ip ospf authentication [message-digest]
(Optional) ip ospf authentication key-chain key-id
Purpose
Configures the interface as a Layer 3 routed interface.
(Optional) Configures simple password authentication
for this interface. Use this command if the
authentication is not set to key-chain or
message-digest. 0 configures the password in clear
text. 3 configures the password as 3DES encrypted.
(Optional) Configures message digest authentication
for this interface. Use this command if the
authentication is set to message-digest. The key-id
range is from 1 to 255. The MD5 option 0 configures
the password in clear text and 3 configures the pass key
as 3DES encrypted.
(Optional) Displays OSPF information.
(Optional) Saves this configuration change.
"Enabling the OSPFv2 Feature" section on
Chapter 3
Configuring OSPFv2