R3303-HP HSR6800 Routers High Availability Command Reference
157
vrrp vrid source-interface
Use vrrp vrid source-interface to specify the source interface for an IPv4 VRRP group. This interface,
instead of the interface where the VRRP group resides, sends and receives VRRP packets.
Use undo vrrp vrid source-interface to cancel the specified source interface.
Syntax
vrrp vrid virtual-router-id source-interface interface-type interface-number
undo vrrp vrid virtual-router-id source-interface
Default
No source interface is specified for a VRRP group. The interface where the VRRP group resides sends and
receives VRRP packets.
Views
Interface view
Default command level
2: System level
Parameters
virtual-router-id: IPv4 VRRP group number in the range of 1 to 255.
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
When VRRP group members cannot exchange VRRP packets through the interfaces where the VRRP
group resides, you can use this command to enable VRRP packet exchange among VRRP group members
through the specified source interfaces.
Before you execute the command, create a VRRP group and configure a virtual IP address for it.
If you specify the current interface as the source interface, the configuration does not take effect.
Examples
# Specify GigabitEthernet 3/0/2 as the source interface for VRRP packet exchange in IPv4 VRRP group
1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-GigabitEthernet3/0/1] vrrp vrid 1 source-interface gigabitethernet 3/0/2
vrrp vrid timer advertise
Use vrrp vrid timer advertise to configure the Adver_Timer of the specified VRRP group.
Use undo vrrp vrid timer advertise to restore the default.
Syntax
vrrp vrid virtual-router-id timer advertise adver-interval
undo vrrp vrid virtual-router-id timer advertise