authentication-mode (BFD session view)

Function

The authentication-mode command configures an authentication mode and key for a BFD session.

The undo authentication-mode command deletes the authentication mode and key configured for a BFD session.

By default, no authentication mode and key are configured for a BFD session.

Format

authentication-mode met-sha1 key-id key-id cipher cipher-text nego-packet [ timeout-interval interval-value ]

undo authentication-mode

Parameters

Parameter Description Value
key-id key-id

Specifies an authentication key ID.

The value is an integer ranging from 1 to 255.

cipher cipher-text

Specifies a ciphertext key type.

The value is a string of characters.

  • The value is a string of 1 to 20 characters for simpletext authentication keys.
  • The value is a string of 20 to 148 characters for ciphertext authentication keys.

The characters exclude question marks (?) and spaces. However, if a password string is between a pair of quotation marks, the string can contain spaces.

nego-packet

Authenticates BFD negotiation packets.

-

timeout-interval interval-value

Specifies a negotiation timeout period.

The value is an integer. The value is a string of 1 to 10000 characters, in seconds.

met-sha1

Specifies the SHA1 algorithm.

-

Views

BFD session view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bfd write

Usage Guidelines

Usage Scenario

On a network demanding higher security, run the authentication-mode command to configure BFD session authentication information. In a specific access scenario, for example, when a multicast BFD session is associated with the protocol status of an interface, you need to configure authentication information for the BFD session on the interface. BFD negotiation can succeed, the BFD-associated protocol status of the interface can be activated, and users can access the device through this interface only when the BFD session authentication information on both ends is consistent.

Prerequisites

  • BFD is globally enabled by running the bfd command.
  • Establishing a BFD session.

Precautions

If you run the authentication-mode command to configure BFD session authentication information, BFD renegotiation will be performed. BFD renegotiation can succeed only when the BFD session authentication information on both ends is consistent.

Example

# Configure BFD session authentication information.
<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd test bind peer-ip default-ip interface GigabitEthernet0/1/0
[*HUAWEI-bfd-session-test] authentication-mode met-sha1 key-id 5 cipher aaa nego-packet timeout-interval 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >