Commands For Vrrp

11.1 Commands for VRRP

Command: advertisement-interval <adver-interval>
no advertisement-interval
Function: Set the VRRP timer values. The no command restores to default.
Parameters:

  • <adver-interval>: interval for sending VRRP packets in seconds. The valid range is from 1 to 10.

Command mode: VRRP Protocol Configuration Mode
Default: 1 second.
Usage guide: The master in a VRRP standby cluster will send VRRP packets to member routers (or L3 Ethernet switches) at a specific interval to confirm it is functioning properly. This interval is referred to as the adver-interval. If a backup does not receive the VRRP packets sent by the master after a certain period (specified by master-down-interval), then it assumes the master is no longer operating properly and adopts master status.
This command can adjust the VRRP packet sending interval of the master. For members in the same standby cluster, this property should be set to the same value. For backup, the value of master-down-interval should be 3 times that of adver-interval. Extraordinarily large traffic or timer setting differences between routers (or L3 Ethernet switches) may cause the master-down-interval to be met and trigger instant status changes. Such situations can be avoided by extending adver-interval intervals and setting a longer preemptive delay time.
Example: Configure the VRRP Timer value to 3.

active500EM(config-router)#advertisement-interval 3

 

11.1.2 circuit-failover

Command: circuit-failover {<IFNAME> | vlan <vlan-id>} <value-reduced>
no circuit-failover
Function: Configure the VRRP monitor interface. The no command deletes the configuration.
Parameters:

  • <IFNAME>: name of the interface to be monitored.
  • <vlan-id>: VLAN ID, valid range is <1-4094>.
  • <value-reduced>: indicates the amount of the priority decrease. The valid range is 1 to 253.

Command mode: VRRP Protocol Configuration Mode
Default: None.
Usage guide: The interface monitor function is an extension of the backup function. It enables VRRP to provide failover functions upon router (or L3 Ethernet switch) failure and allows a user to decrease the priority of a router (or L3 Ethernet switch) to ensure smooth implementation of backup functions when the status of that network interface is down.
If the status of an interface monitored?changes from up to down, the priority of that router (or L3 Ethernet switch) in its standby cluster will decrease. The backup cannot change its status due to having a lower priority than the master when the master fails.
Example: Configure the?VRRP monitor interface to VLAN 2 and decrease the amount of priority to 10.

active500EM(config-router)#circuit-failover vlan 2 10

 

11.1.3 debug vrrp

Command: debug vrrp [ all | event | packet [recv | send]] no debug vrrp [ all | event | packet [recv | send]]
Function: Display information for the VRRP standby cluster status and packet transmission. The no command disables the debug information display.
Parameters: None.
Command mode: Admin Mode
Default: Disabled.
Usage guide:?Displays information for the VRRP standby cluster status and packet transmission.
Example: Display information for the VRRP standby cluster status and packet transmission.

active500EM#debug vrrp
2001/01/01 00:50:28 : IMI: VRRP SEND[Hello]: Advertisement sent for vrid=[1], virtual-ip=[10.1.1.1]
2001/01/01 00:50:30 : IMI: VRRP SEND[Hello]: Advertisement sent for vrid=[1], virtual-ip=[10.1.1.1]
2001/01/01 00:50:31 : IMI: VRRP SEND[Hello]: Advertisement sent for vrid=[1], virtual-ip=[10.1.1.1]
2001/01/01 00:50:32 : IMI: VRRP SEND[Hello]: Advertisement sent for vrid=[1], virtual-ip=[10.1.1.1]
2001/01/01 00:50:33 : IMI: VRRP SEND[Hello]: Advertisement sent for vrid=[1], virtual-ip=[10.1.1.1]

 

11.1.4 disable

Command: disable
Function: Deactivate VRRP.
Parameters: None.
Command mode: VRRP Protocol Configuration Mode
Default: None.
Usage guide: Deactivates a virtual router. The VRRP configuration can only be modified when VRRP is deactivated.
Example: Deactivate virtual router number 10.

active500EM(config)#router vrrp 10
active500EM(config-router)#disable

 

11.1.5 enable

Command: enable
Function: Activate VRRP.
Parameters: None.
Command mode: VRRP Protocol Configuration Mode
Default: None.
Usage guide: Activates the appropriate virtual router. Only a router (or L3 Ethernet switch) interface started by this enable command is part of a standby cluster. Both the VRRP virtual IP and the interface must be configured first before starting the virtual router.
Example: Activate the virtual router number 10.

active500EM(config)#router vrrp 10
active500EM(config-router)#enable

 

11.1.6 Interface

Command: interface {<IFNAME> | vlan <vlan-id>}
no interface
Function: Configure the VRRP interface. The no command removes the L3 interface from the specified standby cluster.
Parameters:

  • <IFNAME>: identifies the interface name.
  • <vlan-id>: VLAN ID, valid range <1-4094>.

Command mode: VRRP Protocol Configuration Mode
Default: None.
Usage guide: This command adds a layer 3 interface to an existing standby cluster.
Example: Configure the interface as interface vlan 1.

active500EM(config)#router vrrp 10
active500EM(config-router)#interface vlan 1

 

11.1.7 preempt-mode

Command: preempt-mode {true | false}
Function: Configure the preemptive mode for VRRP.
Parameters: None.
Command mode: VRRP Protocol Configuration Mode
Default: Preemptive mode is set.
Usage guide: If a router (or L3 Ethernet switch) requiring high priority needs to preemptively become the active router (or L3 Ethernet switch), the preemptive mode should be enabled.
Example: Set non-preemptive VRRP mode.

active500EM(config-router)#preempt-mode false

 

11.1.8 priority

Command: priority <value>
Function: Configure VRRP priority.
Parameters:

  • <value>: priority value. The valid range is from 1 to 254.

Command mode: VRRP Protocol Configuration Mode
Default: 100
Usage guide: Priority determines the ranking of a router (or L3 Ethernet switch) in a standby cluster. The higher the priority of a router, the more likely it will become the master. When a router (or L3 Ethernet switch) is configured as a master dummy IP address, its priority is always 254 and does not allow modification. When 2 or more routers (or L3 Ethernet switches) with the same priority value are present in a standby cluster, the router (or L3 Ethernet switch) with the greatest VLAN interface IP address becomes the master.
Example: Set VRRP priority to 150.

active500EM(config-router)# priority 150

 

11.1.9 router vrrp

Command: router vrrp <vrid>
no router vrrp <vrid>
Function: Create or removes the Virtual Router.
Parameters:

  • <vrid>: virtual Router number. The valid range is from 1 to 255.

Command mode: Global Mode
Default: None.
Usage guide: This command is used to create or remove a virtual router which is identified by a unique virtual router number. Virtual router configurations are only available when a virtual router is created; no more than 192 virtual routers can be configured.
Example: Configure a virtual router with number 10.

active500EM(config)#router vrrp 10

 

11.1.10 show vrrp

Command: show vrrp [<vrid>] Function: Display status and configuration information for the VRRP standby cluster.
Parameters:

  • <vrid>: Virtual router number. The valid range is from 1 to 255.

Command mode: Admin Mode and Configuration Mode
Default: None.
Usage guide: This command is used to display the virtual router configuration and its current state. If the virtual router number is not specified, then the command will display information for all virtual routers.
Example: Display status and configuration information for the VRRP standby cluster.

active500EM#show vrrp
VrId <1>
 State is Initialize
 Virtual IP is 10.1.20.10 (Not IP owner)
 Interface is Vlan1
 Priority not configured, Current priority is 254
 Advertisement interval is 1 sec
 Preempt mode is TRUE
 Circuit failover interface Vlan1, Priority Delta 1, Status UP
VrId <10>
 State is Initialize
 Virtual IP is 1.1.1.1 (Not IP owner)
 Interface is unset
 Priority is unset
 Advertisement interval is unset
 Preempt mode is TRUE
Displayed Information Explanation
State Status
Virtual IP Dummy IP address
Interface Interface name
Priority Priority
Advertisement interval Timer interval
Preempt Preemptive mode
Circuit failover interface Interface monitor information

 

11.1.11 virtual-ip

Command: virtual-ip <A.B.C.D>
no virtual-ip
Function: Configure the VRRP dummy IP address. The no command removes the dummy IP address.
Parameters:

  • <A.B.C.D>: IP address in decimal format.

Command mode: VRRP Protocol Configuration Mode
Default: None.
Usage guide: This command adds or removes a dummy IP address to an existing standby cluster. Each standby cluster can have only one dummy IP. VRRP priority is 255 (not configurable). The virtual-ip and interface IP should be in the same segment.
Example: Set the backup dummy IP address to 10.1.1.1.

active500EM(config-router)#virtual-ip 10.1.1.1

 


Return to Controller Wired CLI Table of Contents