Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure IPv6-based VRRP Load Balance

Network Requirements

  • On Device1 and Device2, create IPv6 VRRP two backup groups; Device1 and Device2 belong to two VRRPv3 groups at the same time. Device1 is Master in group1 and Backup in group 2; Device2 is Backup in group1 and Master in group 2.
  • PC1 forwards data via Device1, and PC2 forwards data via Device2, realizing the load balance.

Network Topology

Networking of IPv6 VRRP load balance

Figure 6-5 Networking of IPv6 VRRP load balance

Configuration Steps

Step 1: Configure VLAN, and add the port to the corresponding VLAN (omitted).

Step 2: Configure the IPv6 address of the interface, and enable the switch of the RA response and RA periodical sending.

Device1#configure terminal
Device1(config-if-vlan2)#ipv6 address fe80::1 link-local
Device1(config-if-vlan2)#ipv6 address 2001:1::1/64
Device1(config-if-vlan2)#no ipv6 nd suppress-ra period
Device1(config-if-vlan2)#no ipv6 nd suppress-ra response
Device1(config-if-vlan2)#exit
Device2#configure terminal
Device2(config-if-vlan2)#ipv6 address fe80::2 link-local
Device2(config-if-vlan2)#ipv6 address 2001:1::2/64
Device2(config-if-vlan2)#no ipv6 nd suppress-ra period
Device2(config-if-vlan2)#no ipv6 nd suppress-ra respons
Device2(config-if-vlan2)#exit

Step 3: Create IPv6 VRRP group 1.

#On Device1, configure VRRPv3 group 1, the virtual IP address is 2001:1::3 and fe80::100, and configure the priority as 110.

Device1(config)#interface vlan2
Device1(config-if-vlan2)#ipv6 vrrp 1 ip fe80::100 link-local
Device1(config-if-vlan2)#ipv6 vrrp 1 ip 2001:1::3
Device1(config-if-vlan2)#ipv6 vrrp 1 priority 110
Device1(config-if-vlan2)#exit

#On Device1, configure VRRPv3 group 1, and the virtual IP address is 2001:1::3 and fe80::100.

Device2(config)#interface vlan2
Device2(config-if-vlan2)#ipv6 vrrp 1 ip fe80::100 link-local
Device2(config-if-vlan2)#ipv6 vrrp 1 ip 2001:1::3
Device2(config-if-vlan2)#exit

Step 4: Create IPv6 VRRP group 2.

#On Device1, configure VRRPv3 group2, and the virtual IP address is 2001:1::4 and fe80::200.

Device1(config)#interface vlan2
Device1(config-if-vlan2)#ipv6 vrrp 2 ip fe80::200 link-local
Device1(config-if-vlan2)#ipv6 vrrp 2 ip 2001:1::4
Device1(config-if-vlan2)#exit

#On Device2, configure VRRPv3 group2, the virtual IP address is 2001:1::4 and fe80::200, and configure the priority as 110.

Device2(config)#interface vlan2
Device2(config-if-vlan2)#ipv6 vrrp 2 ip fe80::200 link-local
Device2(config-if-vlan2)#ipv6 vrrp 2 ip 2001:1::4
Device2(config-if-vlan2)#ipv6 vrrp 2 priority 110
Device2(config-if-vlan2)#exit

Step 5: Check the result.

#On Device1, view the status of the IPv6 VRRP group 1 and group 2.

Device1#show ipv6 vrrp
Interface vlan2 (Flags 0x9) 
  Pri-addr : fe80::1 
  Vrf : 0 
  Pri-matchaddr : fe80::1 
  Virtual router : 1 
    Mac mode: real mac mode 
    Virtual IP address : fe80::100 
    Global address count:1 
        Global Match address : 2001:1::1 
            Global Virtual IP address : 2001:1::3 
    Virtual MAC address : 00-00-5e-00-02-01 
    State : Master 
    Normal priority : 110 
    Currnet priority : 110 
    Priority reduced : 0 
    Preempt-mode : YES 
    Advertise-interval : 100 
    Authentication Mode : None 
  Pri-matchaddr : fe80::1 
  Virtual router : 2 
    Mac mode: real mac mode 
    Virtual IP address : fe80::200 
    Global address count:1 
        Global Match address : 2001:1::1 
            Global Virtual IP address : 2001:1::4 
    Virtual MAC address : 00-00-5e-00-02-02 
    State : Backup 
    Master addr : fe80::2 
    Normal priority : 100 
    Currnet priority : 100 
    Priority reduced : 0 
    Preempt-mode : YES 
    Advertise-interval : 100 
    Authentication Mode : None 

#On Device2, view the status of the IPv6 VRRP group 1 and group 2.

Device2#show ipv6 vrrp
Interface vlan2 (Flags 0x9) 
  Pri-addr : fe80::2
  Vrf : 0 
  Pri-matchaddr : fe80::2
  Virtual router : 1 
    Mac mode: real mac mode 
    Virtual IP address : fe80::100 
    Global address count:1 
        Global Match address : 2001:1::2 
            Global Virtual IP address : 2001:1::3 
    Virtual MAC address : 00-00-5e-00-02-01 
    State : Backup 
    Master addr : fe80::1 
    Normal priority : 100 
    Currnet priority : 100 
    Priority reduced : 0 
    Preempt-mode : YES 
    Advertise-interval : 100 
    Authentication Mode : None 
  Pri-matchaddr : fe80::2 
  Virtual router : 2 
    Mac mode: real mac mode 
    Virtual IP address : fe80::200 
    Global address count:1 
        Global Match address : 2001:1::2 
            Global Virtual IP address : 2001:1::4 
    Virtual MAC address : 00-00-5e-00-02-02 
    State : Master 
    Normal priority : 110 
    Currnet priority : 110 
    Priority reduced : 0 
    Preempt-mode : YES 
    Advertise-interval : 100 
    Authentication Mode : None 

You can see that Device1 serves as Master of VRRPv3 group 1 and becomes Backup of VRRPv3 group 2, while Device2 serves as Master of VRRPv3 group2 and Backup of VRRPv3 group 1. When one device fails, two PCs forward data via the other device. This not only takes effect of load balance, but also realizes the mutual backup.