R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
67
Views
OSPF area 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 0 to 255.
cipher: Sets a ciphertext key.
plain: Sets a plaintext key.
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 33 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 33 to 53 characters.
Usage guidelines
You can specify either MD5/HMAC-MD5 authentication or simple authentication for an OSPF area. 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.
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 OSPF Area 0 to use the MD5 authentication mode, and set the key ID to 15 and plaintext
authentication password to abc.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] authentication-mode md5
# Configure OSPF Area 0 to use the simple authentication mode, and set the plaintext authentication
password to abc.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] authentication-mode simple plain abc
Related commands
ospf authentication-mode
bandwidth-reference (OSPF view)
Use bandwidth-reference to specify a reference bandwidth value for link cost calculation.
Use undo bandwidth-reference to restore the default value.