[Contents] [Prev] [Next] [Index] [Report an Error]


Configuring Authentication

The system supports the following authentication capabilities:

The MD5 algorithm takes as input a message of arbitrary length and produces a 128-bit fingerprint or message digest of the input. MD5 is used to create digital signatures. It is a one-way hash function, meaning that it takes a message and converts it into a fixed string of digits, called a message digest.

When using a one-way hash function, you can compare a calculated message digest with the message digest that is decrypted using a public key (password). The key verifies that the message has not been tampered with. This comparison process is called a hashcheck.



Note: You must first issue the address area command before issuing any other address command.

Authentication Requirements

If you configure either simple password or MD5 authentication, the password or authentication key must be the same on both sides of an adjacency. When you change the password or key on one side of an established adjacency, you must also change it on the other side within the dead interval. This enables a hello packet that has the latest authentication information to be sent before the dead interval expires. If the packet is not sent with the dead interval, the adjacency breaks down and is not reestablished until both sides of the adjacency have the same password or key.

    address authentication-key

host1(config-router)#address 10.12.10.2 authentication-key 
9rdf7

    address authentication message-digest

host1(config-router)#address 10.12.10.2 authentication 
message-digest

    address authentication-none

host1(config-router)#address 192.168.10.32 
authentication-none 

    address message-digest-key md5

host1(config-router)#address 10.1.1.1 message-digest-key 1 
md5 0 9mwk6gdr76

    area virtual-link authentication-key

host1(config-router)#area 27.0.0.0 virtual-link 27.3.4.5 
authentication-key sadsa29c

    area virtual-link authentication message-digest

host1(config-router)#area 27.0.0.0 virtual-link 27.2.3.4 
authentication message-digest

    area virtual-link authentication-none

host1(config-router)#area 27.0.0.0 virtual-link 27.2.3.4 
authentication-none

    area virtual-link message-digest-key md5

host1(config-router)#area 27.0.0.0 virtual-link 327.3.4.5 
message-digest-key 2 md5 rc45lsm2c

    ip ospf authentication-key

host1(config-if)#ip ospf authentication-key yourpwd

    ip ospf authentication message-digest

host1(config-if)#ip ospf authentication message-digest

    ip ospf authentication-none

host1(config-if)#ip ospf authentication-none

    ip ospf message-digest-key md5

host1(config-if)#ip ospf message-digest-key 3 md5 0 tre987is


Note: If all the MD5 keys have been deleted, the authentication type is still MD5, but you need to configure MD5 keys.



Note: To disable MD5 authentication for the interface, use the ip ospf authentication-none command.



Note: To display the password only in encrypted text, use the service password-encryption command.


[Contents] [Prev] [Next] [Index] [Report an Error]