R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference
111
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 security purposes, 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
[Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[Sysname-ospf-100-area-0.0.0.1] authentication-mode md5
[Sysname-ospf-100-area-0.0.0.1] quit
[Sysname-ospf-100] quit
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf authentication-mode md5 15 plain 123456










