View
Parameter
Description
Example
vrrp method
Syntax
View
Interface view
virtual-router-id: VRRP standby group number, in the range 1 to 255.
simple: Plain text authentication mode.
md5: Authentication header (AH) authentication using the MD5 algorithm.
key: Authentication key, case sensitive.
When simple authentication applies, the authentication key is in plain text
■
with a length of 1 to 8 characters.
When md5 authentication applies, the authentication key is in MD5 ciphertext
■
or in plain text and the length of the key depends on its input format. If the key
is input in plain text, its length is 1 to 8 characters, such as 1234567; if the key
is input in ciphertext, its length must be 24 characters, such as
_(TT8F]Y5SQ=^Q'MAF4<1!!.
Use the
vrrp vrid authentication-mode
mode and authentication key for the VRRP standby groups to send and receive
VRRP packets.
Use the
undo vrrp vrid authentication-mode
default.
By default, authentication is disabled.
Note that:
Before executing the command, create a standby group on an interface and
■
configure the virtual IP address of the standby group.
You may configure different authentication types and authentication keys for
■
the standby groups on an interface. However, the members of the same
standby group must use the same authentication mode and authentication key.
# Set the authentication mode and authentication key for VRRP standby group 1
on interface Ethernet 1/0 to send and receive VRRP packets.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] vrrp vrid 1 virtual-ip 10.1.1.1
vrrp method { real-mac | virtual-mac }
undo vrrp method
System view
command to configure authentication
command to restore the
2229