467
Example:
Switch#config terminal
Switch(config)#router ospf 100
Switch(config-router)#host 172.16.10.100 area 1
Switch(config-router)#host 172.16.10.101 area 2 cost 10
14.6.3.16 ip ospf authentication
Command: ip ospf [<ip-address>] authentication
[message-digest|null]
no ip ospf [<ip-address>] authentication
Function:
Specify the authentication mode required in sending and receiving OSPF
packets on the interfaces; the “
no ip ospf [<ip-address>] authentication
” command
cancels the authentication
Parameter: <ip-address> is the interface IP address, shown in dotted decimal
notation.
message-digest: Use MD5 authentication
null:
no authentication applied, which resets the password or MD5 authentication applied
on the interface.
Default:
Authentication not required in receiving OSPF packets on the interface
Command Mode:
Interface Mode
Example:
Switch#config terminal
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip ospf authentication message-digest
14.6.3.17 ip ospf authentication-key
Command: ip ospf [<ip-address>] authentication-key <LINE>
no ip ospf [<ip-address>] authentication
Function:
Specify the authentication key required in sending and receiving OSPF packet
on the interface; the “
no ip ospf [<ip-address>] authentication
” cancels the
authentication key.
Parameter: <ip-address> is the interface IP address shown in dotted decimal
notation; <LINE>
specifies the key required in the plaintext authentication.
Default:
Authentication not required in receiving OSPF packets on the interface
Command Mode:
Interface Mode
Example:
Switch#config terminal
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip ospf authentication-key password