111
ospf authentication-mode
Use
ospf authentication-mode
to set the authentication mode and key ID on an interface.
Use
undo ospf authentication-mode
to remove specified configuration.
Syntax
For MD5/HMAC-MD5 authentication:
ospf authentication-mode
{
hmac-md5
|
md5
}
key-id
{
cipher
cipher-string
|
plain
plain-string
}
undo ospf authentication-mode
{
hmac-md5
|
md5
}
key-id
For simple authentication:
ospf authentication-mode simple
{
cipher
cipher-string
|
plain
plain-string
}
undo ospf authentication-mode simple
Default
No authentication is configured.
Views
Interface view
Predefined user roles
network-admin
Parameters
hmac-md5
: Enables HMAC-MD5 authentication.
md5
: Enables MD5 authentication.
simple
: Enables simple authentication.
key-id
: Specifies a key by its ID in the range of 1 to 255.
cipher
: Sets a ciphertext key.
cipher-string
: Specifies a ciphertext key. For simple authentication, specify a case-sensitive key of 33 to
41 characters. For MD5/HMAC-MD5 authentication, specify a key of 33 to 53 characters.
plain
: Sets a plaintext key.
plain-string
: Specifies a plaintext key. For simple authentication, specify a case-sensitive key of 1 to 8
characters. For MD5/HMAC-MD5 authentication, specify a key of 1 to 16 characters.
Usage guidelines
Interfaces attached to the same network segment must have the same authentication password key and
authentication mode.
For secrecy, all keys, including keys configured in plain text, are saved in cipher text.
Examples
# Enable MD5 authentication for the network 131.119.0.0/16 in Area 1. Set the interface key ID to 15,
and plaintext key to
123456
.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1