set protocols vrrp interface vrid authentication type

set protocols vrrp interface vrid authentication type


The set protocols vrrp interface vrid authentication type command configures an authentication mode for a VRRP group.

NOTE:

VRRP authentication is only supported by VRRPv2, which is not supported by VRRPv3.



Command Syntax

set protocols vrrp interface <interface-namevrid <virtual-router-id> authentication type <none | md5 | simple>



Parameter

Parameter

Description

interface <interface-name>

Specifies the Layer 3 interface name of VRRP device. The value could be the VLAN interface name, the routed interface or the sub-interface name. The value is a string.

vrid <virtual-router-id>

Specifies the VRID of a VRRP group. The value is an integer that ranges from 1 to 254.

authentication type <none | md5 | simple>

Specifies the authentication mode. The value could be none, md5 or simple.

  •   none: Indicates no authentication.

  •   md5: Indicates MD5 authentication.

  •   simple: Indicates simple authentication.

By default, there’s no authentication.



Usage Guidelines

NOTE:

  • Devices in a VRRP group must be configured with the same authentication mode and authentication key; otherwise, the VRRP group cannot negotiate the Master and Backup states.

  • If the VRRP authentication fails, the system prints the warning level log.



Example

  • Enable MD5 authentication mode for a VRRP group.

admin@Xorplus# set protocols vrrp interface vlan100 vrid 2 authentication type md5 admin@Xorplus# set protocols vrrp interface vlan100 vrid 2 md5-key picos123 admin@Xorplus# commit

Copyright © 2025 Pica8 Inc. All Rights Reserved.