The bfd authentication-mode command enables the negotiation authentication function for the BFD session with a specified peer IP address and configure authentication information.
The undo bfd authentication-mode command disables the negotiation authentication function for the BFD session with a specified peer IP address.
By default, negotiation authentication is disabled for a BFD session. You are advised to configure BFD negotiation authentication to reduce security risks.
bfd single-hop peer-ip ip-address [ vpn-instance vpn-name ] authentication-mode met-sha1 key-id key-id-value cipher cipher-text nego-packet
bfd single-hop peer-ipv6 ipv6-address [ vpn-instance vpn-name ] authentication-mode met-sha1 key-id key-id-value cipher cipher-text nego-packet
bfd multi-hop peer-ip ip-address [ vpn-instance vpn-name ] authentication-mode met-sha1 key-id key-id-value cipher cipher-text nego-packet
bfd multi-hop peer-ipv6 ipv6-address [ vpn-instance vpn-name ] authentication-mode met-sha1 key-id key-id-value cipher cipher-text nego-packet
bfd mpls-passive peer-ip ip-address authentication-mode met-sha1 key-id key-id-value cipher cipher-text nego-packet
bfd lsp-tunnel peer-ip ip-address authentication-mode met-sha1 key-id key-id-value cipher cipher-text nego-packet
undo bfd single-hop peer-ip ip-address [ vpn-instance vpn-name ]
undo bfd single-hop peer-ipv6 ipv6-address [ vpn-instance vpn-name ]
undo bfd multi-hop peer-ip ip-address [ vpn-instance vpn-name ]
undo bfd multi-hop peer-ipv6 ipv6-address [ vpn-instance vpn-name ]
undo bfd mpls-passive peer-ip ip-address
undo bfd lsp-tunnel peer-ip ip-address
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-name |
Specifies the name of a VPN instance for the BFD sessions with negotiation authentication. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
met-sha1 |
Specifies the M-SHA1 algorithm. |
- |
key-id key-id-value |
Specifies the key ID. |
The value is an integer ranging from 1 to 255. |
cipher cipher-text |
Specifies the encryption password. |
The value is a string case-sensitive characters, spaces not supported.
|
nego-packet |
Specifies authentication for BFD session negotiation packets. |
- |
single-hop |
Specifies the BFD for IP single-hop session type. |
- |
peer-ipv6 ipv6-address |
Specifies the peer IPv6 address of the BFD sessions with negotiation authentication. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
multi-hop |
Specifies the BFD for IP multi-hop session type. |
- |
peer-ip ip-address |
Specifies the peer IPv4 address of the BFD sessions with negotiation authentication. |
The value is in dotted decimal notation. |
mpls-passive |
Specifies the BFD for LSP passive session type. |
- |
lsp-tunnel |
Specifies the BFD for LSP proactive session type. |
- |
Usage Scenario
When configuring negotiation authentication for BFD sessions, you need to select different commands according to the type of the target BFD sessions.
Prerequisites
BFD has been enabled globally using the bfd command.
Precautions
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] bfd single-hop peer-ip 10.1.1.1 authentication-mode met-sha1 key-id 1 cipher HUAWEI_123456 nego-packet