Example for Configuring Active-Active VRRPv3 for IPv4
Networking Requirements
In figure 1, Switch connects to the internet through gateway switches Switch A and Switch B. To ensure nonstop service availability, a VRRP group in Active-Active mode needs to be configured on SwitchA and SwitchB.
- Configure the VRRP router ID as 1, Switch A is the master and Switch B is the backup switch of VRRP group.
- The virtual IP of VRRP virtual router is 192.168.1.5, virtual MAC on master switch is 00:00:5e:00:01:01 and 00:00:5e:00:02:01 on the backup switch.
- The gateway address of the downstream host PC1 and PC2 needs to be configured as the IP address of the VRRP virtual router device.
Figure 1. Networking of Active-Active VRRP
Procedure
Switch A
Step1 Configure VLAN.
admin@SwitchA# set vlans vlan-id 100
admin@SwitchA# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 100
admin@SwitchA# set l3-interface vlan-interface vlan100 address 192.168.1.1 prefix-length 24
admin@SwitchA# set vlans vlan-id 100 l3-interface vlan100
Step2 Create a VRRP group.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1
Step3 Configure the VRRP version number to v3.
admin@SwitchA#set protocols vrrp interface vlan100 vrid 1 version 3
By default, the system uses VRRPv2.
Step4 Enable the VRRP function.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 disable false
By default, the VRRP function is enabled.
Step5 Enable the Active-Active VRRP function.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 load-balance disable false
By default, the Active-Active VRRP function is enabled.
Step6 (Optional) Configure the interval for sending VRRP Advertisement packets.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 interval 1
By default, the value is one second.
Step7 Configure a virtual IP address for the VRRP group.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 ip 192.168.1.5
Step8 (Optional) Configure VRRP preemptive mode.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 preempt enable true
By default, the device uses the preemptive mode.
Step9 (Optional) Configure the interval of updating the virtual MAC.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 load-balance virtual-MAC time-interval 120
By default, the value is 120s.
Step10 (Optional) Configure the priority of the device in a VRRP group.
admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 priority 250
Step11 Commit the configuration.
admin@SwitchA# commit
Switch B
Step1 Configure VLAN.
admin@SwitchB# set vlans vlan-id 100
admin@SwitchB# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 100
admin@SwitchB# set l3-interface vlan-interface vlan100 address 192.168.1.2 prefix-length 24
admin@SwitchB# set vlans vlan-id 100 l3-interface vlan100
Step2 Create a VRRP group.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1
Step3 Configure the VRRP version number to v3.
admin@SwitchB#set protocols vrrp interface vlan100 vrid 1 version 3
By default, the system uses VRRPv2.
Step4 Enable the VRRP function.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 disable false
By default, the VRRP function is enabled.
Step5 Enable the Active-Active VRRP function.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 load-balance disable false
By default, the Active-Active VRRP function is enabled.
Step6 (Optional) Configure the interval of sending VRRP Advertisement packets.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 interval 1
By default, the value is one second.
Step7 Configure a virtual IP address for the VRRP group.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 ip 192.168.1.5
Step8 (Optional) Configure VRRP preemptive mode.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 preempt enable true
By default, the device uses the preemptive mode.
Step9 (Optional) Configure the interval of updating the virtual MAC.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 load-balance virtual-MAC time-interval 120
By default, the value is 120s.
Step10 (Optional) Configure the priority of the device in a VRRP group.
admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 priority 100
Step11 Commit the configuration.
admin@SwitchB# commit
Verify the Configuration
• After the configuration is complete, run run show vrrp command to view the configuration information of VRRP group. The result of show command on master is as follows.
admin@SwitchA# run show vrrp Interface: vlan100 VRID: 1 Version: 3 Load-balance: enable State: Master Master IP: 192.168.1.1 Virtual MAC: 00:00:5e:00:01:01 Preempt: enable Adver Interval: 4 Priority: 250 Virtual IP: 192.168.1.5 Auth-type: none Auth-key:
• When showing MAC address table on the downstream switch to check the MAC address of the device, you can see the virtual MAC entries corresponding to the virtual IP address of the VRRP group.
• On PC1 and PC2, ping the virtual IP address 192.168.1.5 to check the connectivity with the devices of VRRP group.
Copyright © 2024 Pica8 Inc. All Rights Reserved.