dcn ospf authentication-mode

Function

The dcn ospf authentication-mode command sets the authentication mode and key on a DCN interface of OSPF neighbors.

The dcn ospf authentication-mode null command sets the null authentication mode on a DCN interface.

The undo dcn ospf authentication-mode command deletes the authentication mode configured on a DCN interface.

By default, a DCN interface does not authenticate OSPF packets.

Format

dcn ospf authentication-mode simple [ plain plain-text | [ cipher ] cipher-text ]

dcn ospf authentication-mode { { md5 | hmac-md5 | hmac-sha256 } [ key-id { plain plain-text | [ cipher ] cipher-text } ] }

dcn ospf authentication-mode null

undo dcn ospf authentication-mode

Parameters

Parameter Description Value
plain plain-text

Sets the simple text password type. If this parameter is specified, the device allows you to set only a simple text password, and the password is displayed in simple text mode in the configuration file.

  • The new password is at least eight characters long and contains at least two of the following types: upper-case letters, lower-case letters, digits, and special characters.
  • For security purposes, you are advised to configure a password in ciphertext mode. To further improve device security, periodically change the password.

-

plain-text

Specifies a simple text password.

  • When simple is configured, plain-text is a string of 1 to 8 characters.
  • When md5, hmac-md5 or hmac-sha256 is configured, plain-text is a string of 1 to 255 characters.
cipher

Sets the ciphertext password type.

-

cipher-text

Specifies a ciphertext password.

  • For simple authentication, a simpletext is 1 to 8 characters, and a ciphertext password is 24 to 128 characters.
  • For MD5, HMAC-MD5, or HMAC-SHA256 authentication, a simpletext is 1 to 255 characters, and a ciphertext password is 20 to 432 characters.

Ciphertext passwords with various lengths configured in an earlier version are also supported in the existing version.

cipher-text

Specifies a ciphertext password.

-

md5

Sets the message digest algorithm 5 (MD5) authentication mode.

To ensure high security, do not use the MD5 authentication mode.

-

hmac-md5

Sets the Hashed message authentication code-MD5 (HMAC-MD5) authentication mode.

To ensure high security, do not use the HMAC-MD5 authentication mode.

-

hmac-sha256

Sets the HMAC-secure hash algorithm 256 (HMAC-SHA256) authentication mode.

HAMC-SHA256 authentication mode is better and more secure than other authentication modes. To ensure high security, HAMC-SHA256 authentication algorithm is recommended.

-

key-id

Specifies the key ID in MD5, HMAC-MD5, or HMAC-SHA256 authentication mode. The key ID must be the same as the key ID on the peer device.

The value is an integer ranging from 1 to 255.

null

Sets the null authentication mode.

-

simple

Enables the simple authentication mode.

-

Views

100GE interface view, 10G-FG, 10GE interface view, 40GE interface view, FlexE-100G interface view, FlexE-50G interface view, FlexE-50|100G interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dcn write

Usage Guidelines

Usage Scenario

On a network demanding higher security, run the dcn ospf authentication-mode command to configure OSPF authentication modes on a DCN Serial interface or sub-interfaces 4094 of OSPF neighbors .

Prerequisites

The DCN feature has been enabled using the dcn command on an interface, or DCN communication through sub-interfaces 4094 has been enabled using the dcn mode vlan command in the GE interface view.

Precautions

The Router interfaces on the same network segment must use the same authentication mode and key.

Interface-based authentication has a higher priority than area-based authentication.

OSPF does not support the configuration of a null interface.

By default, area-based authentication is not configured for OSPF. Configuring interface-based authentication is recommended to ensure system security.

In VS mode, this command is supported only by the admin VS.

Example

# Specify the hmac-256 authentication mode for the DCN serial interfaces of GE 0/1/0 on HUAWEI1 and GE 0/1/8 of HUAWEI2. Set the password to 321cba.
<HUAWEI> system-view
[~HUAWEI] sysname HUAWEI1
[*HUAWEI] commit
[~HUAWEI] dcn
Warning: This operation will enable DCN function. Continue? [Y/N]:y
[*HUAWEI-dcn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] dcn
[*HUAWEI-GigabitEthernet0/1/0] dcn ospf authentication-mode hmac-sha256 1 cipher 321cba

<HUAWEI> system-view
[~HUAWEI] sysname HUAWEI2
[*HUAWEI] commit
[~HUAWEI] dcn
Warning: This operation will enable DCN function. Continue? [Y/N]:y
[*HUAWEI-dcn] quit
[*HUAWEI] interface GigabitEthernet 0/1/8
[*HUAWEI-GigabitEthernet0/1/8] dcn
[*HUAWEI-GigabitEthernet0/1/8] dcn ospf authentication-mode hmac-sha256 1 cipher 321cba
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >