R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

114
Syntax
For MD5/HMAC-MD5 authentication:
ospf authentication-mode { hmac-md5 | md5 } key-id [ cipher | plain ] password
undo ospf authentication-mode { hmac-md5 | md5 } key-id
For simple authentication:
ospf authentication-mode simple [ cipher | plain ] password
undo ospf authentication-mode simple
Default
No authentication is performed on an interface.
Views
Interface view
Default command level
2: System level
Parameters
hmac-md5: Specifies HMAC-MD5 authentication.
md5: Specifies MD5 authentication.
simple: Specifies simple authentication.
key-id: Specifies a key by its ID in the range of 1 to 255.
cipher | plain: Specifies a ciphertext or plaintext password. If plain is specified, you can only enter a
plaintext password, and the password is saved in cipher text to the configuration file. If cipher is specified,
you can enter a plaintext or ciphertext password, and the password is saved in cipher text to the
configuration file. For both simple authentication and MD5/HMAC-MD5 authentication, the default
password type is cipher.
password: Specifies a password. In simple authentication mode, a plaintext password is a case-sensitive
string of 1 to 8 characters, and a ciphertext password is a case-sensitive string of 1 to 41 characters. In
MD5/HMAC-MD5 authentication mode, a plaintext password is a case-sensitive string of 1 to 16
characters, and a ciphertext password is a case-sensitive string of 1 to 53 characters.
Usage guidelines
Interfaces attached to the same network segment must have the same authentication password and
mode.
You can specify either MD5/HMAC-MD5 authentication or simple authentication for an OSPF interface.
For MD5/HMAC-MD5 authentication, you can configure multiple keys by executing this command
multiple times, and each command must have a unique key ID and key string.
For security purposes, all passwords, including passwords configured in plain text, are saved in cipher
text to the configuration file.
If you configure OSPF authentication for both an area and an interface in that area, the interface uses the
OSPF authentication configured on it.
Examples
# Configure the network 131.119.0.0/16 in Area 1 to use MD5 authentication, and set the interface key
ID to 15 and plaintext authentication password to abc.