The vrrp vrid authentication-mode command configures an authentication mode and key for a VRRP group.
The undo vrrp vrid authentication-mode command cancels authentication for a VRRP group.
By default, a VRRP group does not authenticate packets.
Parameter | Description | Value |
---|---|---|
virtual-router-id |
Specifies the ID of a VRRP group. |
The value is an integer ranging from 1 to 255. |
simple key |
Specifies an authentication key for plaintext authentication.
|
The value is a string of 1 to 8 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
md5 md5-key |
Specifies an MD5 authentication key. |
The value is a string of 1 to 8 case-sensitive characters. The string can contain spaces if it is enclosed in double quotation marks ("). |
plain key |
Indicates plaintext authentication. When configuring an authentication password, select the ciphertext mode. If you select the simple text mode, the password is saved as a simple text in the configuration file, which has a high risk. To ensure device security, change the password periodically. |
The value is a string of 1 to 8 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
cipher cipher-key |
Specifies an authentication key for ciphertext authentication. |
The value is a string of 1 to 8 case-sensitive characters. The string can contain spaces if it is enclosed in double quotation marks ("). |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
To help improve security of protocol packets, run the vrrp vrid authentication-mode command to configure an authentication mode and key for a specified VRRP group.
Prerequisites
A VRRP group has been configured using the vrrp vrid command.
Configuration Impact
Index Influence(In English) Product Products
0 If the authentication mode and key have been configured for a VRRP group, a backup device compares the authentication mode and key carried in a received VRRP Advertisement packet with the local configurations. The backup device performs different operations based on the comparison results.Precautions
Index Attention(In English) Product Products
0 - If all virtual IP addresses assigned to a VRRP group are deleted, the system automatically deletes the VRRP group.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.10.10.10 [*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 authentication-mode md5 HW-123