Command Reference OSPFv2 Commands
2.2 area authentication
Use this command to enable OSPF area authentication. Use the no form of this command to restore
the default setting.
area area-id authentication [ message-digest ]
no area area-id authentication
Specifies ID of the area enabled with OSPF. The value can be a
decimal integer or an IP address.
(Optional) Enables MD5 (message digest 5) authentication mode.
No authentication is enabled by default.
Routing process configuration mode
The RGOS software supports three authentication types:
1) 0, no authentication. The authentication type in the OSPF packet is 0when this command is not
executed to enable OSPF authentication. 2) 1, plain text authentication mode. When this command is
configured, the message-digest option is not used.3) 2, MD5 authentication mode. When this
command is configured, the message-digest option is used.
All devices in the same OSPF area must use the same authentication type. If authentication is
enabled, the authentication password must be configured on an interface connecting neighbors. You
can use the ip ospf authentication-key command to configure the plain text authentication
password, and the ip ospf message-digest-key command to configure the MD5 authentication
password in interface configuration mode.
The following example uses MD5 authentication and the authentication password backbone in area 0
(backbone area) of the OSPF routing process.
Ruijie(config)# interface fastEthernet 0/1
Ruijie(config-if-FastEthernet 0/1)# ip address 192.168.12.1 255.255.255.0
Ruijie(config-if-FastEthernet 0/1)# ip ospf message-digest-key 1 md5 backbone
Ruijie(config)# router ospf 1
Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0
Ruijie(config-router)# area 0 authentication message-digest
ip ospf authentication-key
Defines the OSPF plain text authentication
password.
ip ospf message-digest-key
Defines the OSPF MD5 authentication
password.