Command Reference OSPFv2 Commands
2.23 ip ospf authentication
Use this command to configure the authentication type. Use the no form of this command to restore
the default setting.
ip ospf authentication [ message-digest | null ]
no ip ospf authentication
Enables MD5 authentication on the interface.
Enables no authentication.
No authentication mode is configured and that of the local area is used on the interface by default.
Interface configuration mode
Plaintext authentication is applicable when no option is used with the command. Note that the no
form of this command restores the default value. Whether authentication is used actually depends on
authentication mode configured for the local area of the interface. If authentication mode is configured
as null, no authentication is enabled. When both the interface and its area are configured with
authentication, the one for the interface takes precedence.
The following example configures MD5 authentication for OSPF on fastEthernet 0/1.
Ruijie (config)#interface fastEthernet0/1
Ruijie(config-if-FastEthernet 0/1)# ipaddress172.16.1.1
255.255.255.0
Ruijie(config-if-FastEthernet 0/1)# ip ospf authentication
message-digest
Enables authentication and defines
authentication mode in the OSPF area.
ip ospf authentication-key
Configures the plain text authentication key.
ip ospf message-digest-key
Configures the MD5 authentication key.
2.24 ip ospf authentication-key
Use this command to configure the OSPF plain text authentication key in interface configuration