OcNOS-RON : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands : ip ospf authentication-key
ip ospf authentication-key
Use this command to specify an OSPF authentication password for neighboring routers.
This command creates a password (key) that is inserted into the OSPF header when OcNOS originates packets. Assign a separate password to each network for different interfaces. All neighboring routers on the same network with the same password exchange OSPF routing data.
The key can be used only when authentication is enabled for an area with the area authentication command.
Simple password authentication allows a password to be configured for each area. Configure the routers in the same routing domain with the same password.
Use the no parameter with this command to remove an OSPF authentication password.
Command Syntax
ip ospf (A.B.C.D|) authentication-key WORD
no ip ospf (A.B.C.D|) authentication-key
Parameters
A.B.C.D
The IP address of the interface.
authentication-key
Specify the authentication password.
WORD
Specify the OSPF Encrypted password (key) of 8 bytes.
Default
By default, no password used when exchanging OSPF routing data
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
In the following example, an authentication key test is created on interface eth0 in area 0. Note that first authentication is enabled for area 0.
#configure terminal
(config)#router ospf 100
(config-router)#network 10.10.10.0/24 area 0
(config-router)#area 0 authentication
(config-router)#exit
(config)#interface eth0
(config-if)#ip ospf 3.3.3.3 authentication-key test
 
OcNOS#sh run int xe1
!
interface xe1
ip ospf authentication
ip ospf authentication-key 0x94eebee8c349a4b0
!
(config)#int xe1
(config-if)#ip ospf authentication-key 0x94eebee8c349a4b0 - encrypted password of 16 characters which can be obtained from sh run <int>
 
Last modified date: 08/28/2023