
25-81
Switch#config terminal
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip ospf authentication message-digest
25.27 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 int
erface; 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 Configuration Mode.
Example:
Switch#config terminal
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip ospf authentication-key password
25.28 ip ospf cost
Command:
ip ospf [<
ip-address
>] cost
<cost>
no ip ospf [<
ip-address
>] cost