Example
This example sets a password for the specified interfa ce.
Console(config)#interface vlan 1
Console(config-if)#ip ospf authentication-key badboy
Console(config-if)#
Related Commands
ip ospf authentication (42-32)
ip ospf message-digest-key
This command enables message-digest (MD5) authentication on the specified
interface and to assign a key-id and key to be used by ne ighbo ring rou ters . Use the
no
form to remove an existing key.
Syntax
ip ospf message-digest-k ey key-id md5 key
no ip ospf message-digest-key
key-id
key-id - Index number of an MD5 key. (Range : 1-25 5)
key - Alphanumeric password used to gen erate a 128 bit messa ge digest
or “fingerprint.” (Range: 1-16 characters)
Command Mode
Interface Configuration (VLAN)
Default Setting
MD5 authentication is disabled.
Command Usage
Before specifying MD5 authentication for an interfac e with the ip os pf
authentication
command, configure the message-digest key-id and key with
this command.
Normally, only one key is used per interface to genera te authent icatio n
information for outbound packets and to authenticate incoming packets.
Neighbor routers must use the same key identifier and key value.
When changing to a new key, the router will send multip le cop ies of all
protocol messages, one with the old key and another with the new key. Once
all the neighboring routers start sending protocol messages back to this router
with the new key, the router will stop using the old key. This rollover process
gives the network administrator time to update all the ro uters on the network
without affecting the network connectivity. Once all the network routers ha ve
been updated with the new key, the old ke y should be re moved for security
reasons.
42-34
IP Routing Commands
42