Got it

Example for Configuring VRRP6 in Load Balancing Mode

Latest reply: Jul 6, 2021 10:57:26 435 8 4 0 0

Networking Requirements

  • Switch A is the master device in VRRP group 1 and the backup device in VRRP group 2.

  • Switch B is the master device in VRRP group 2 and the backup device in VRRP group 1.

  • Host A on the LAN uses the virtual IPv6 address of VRRP group 1 as the gateway address, and Host B uses the virtual IPv6 address of VRRP group 2 as the gateway address. The two VRRP groups load balance traffic and back up each other.


imgDownload?uuid=e464b0d0fc7c4a3daa4810565b1e1d78


DeviceInterfaceVLANIF interfaceIP address
Switch A
GE1/0/0VLANIF1002000::1/64

GE2/0/0VLANIF2002002::1/64
Switch BGE1/0/0VLANIF1002000::2/64

GE2/0/0VLANIF4002001::1/64
Switch CGE1/0/1VLANIF2002002::2/64

GE1/0/2VLANIF4002001::2/64

GE2/0/0VLANIF3002003::2/64

Configuration Roadmap

The configuration roadmap is as follows:

  1. Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch A. Ensure that Switch A is the master device in VRRP group 1 and the backup device in VRRP group 2.

  2. Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch B. Ensure that Switch B is the backup device in VRRP group 1 and the master device in VRRP group 1.

Data Preparation

To complete the configuration, you need the following data:

  • IPv6 addresses of the interfaces

  • IDs and virtual IPv6 addresses of the VRRP groups

  • Priorities of the switches in each VRRP group

Procedure

  1. Configure IP addresses for the interfaces. The configuration procedure is not mentioned here.

  2. Configure OSPFv3 on Switch A, Switch B, and Switch C so that they can communicate with each other. The configuration procedure is not mentioned here.

  3. Configure the hosts.

    Set the default gateway address of Host A to 2000::10, which is the virtual IPv6 address of VRRP group 1. Set the default gateway address of Host B to 2000::60, which is the virtual IPv6 address of VRRP group 2. Set the default gateway address of Host C to 2003::2.

  4. Configure VRRP6 groups.

    # Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch A. Set the priority of Switch A in VRRP group 1 to 120 so that Switch A becomes the master device in VRRP group 1. Use the default priority of Switch A in VRRP group 2 so that Switch A becomes the backup device in VRRP group 2.


<Quidway> system-view
[SwitchA] interface vlanif100
[SwitchA-Vlanif100] vrrp6 vrid 1 virtual-ip FE80::1 link-local
[SwitchA-Vlanif100] vrrp6 vrid 1 virtual-ip 2000::100
[SwitchA-Vlanif100] vrrp6 vrid 1 priority 120
[SwitchA-Vlanif100] vrrp6 vrid 2 virtual-ip FE80::2 link-local
[SwitchA-Vlanif100] vrrp6 vrid 2 virtual-ip 2000::60
[SwitchA-Vlanif100] quit

# Create VRRP group 1 and VRRP group 2 on VLANIF 100 of Switch B. Use the priority of Switch B in VRRP group 1 to 120 so that Switch B becomes the backup device in VRRP group 1. Set the priority of Switch B in VRRP group 2 to 120 so that Switch B becomes the master device in VRRP group 2.

<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] interface vlanif 100
[SwitchB-Vlanif100] vrrp6 vrid 1 virtual-ip FE80::1 link-local
[SwitchB-Vlanif100] vrrp6 vrid 1 virtual-ip 2000::100
[SwitchB-Vlanif100] vrrp6 vrid 2 virtual-ip FE80::2 link-local
[SwitchB-Vlanif100] vrrp6 vrid 2 virtual-ip 2000::60
[SwitchB-Vlanif100] vrrp6 vrid 2 priority 120
[SwitchB-Vlanif100] quit

5. Verify the configuration.

After the preceding configuration is complete, Host A and Host C can ping Host B successfully. Run the display vrrp6 command on Switch A, and you can find that VRRP group 1 and VRRP group 2 are created on Switch A. Switch A is the master device in VRRP group 1 and the backup device in VRRP group 2.

[SwitchA] display vrrp6

     Vlanif100 | Virtual Router 1     State              : Master

     Virtual IP         : FE80::1
                        2000::100
    Master IP : 2000::1    
    PriorityRun       : 120
    PriorityConfig    : 120
    MasterPriority    : 120
    Preempt           : YES      Delay Time : 0
    TimerRun          : 100
    TimerConfig       : 100
    Virtual Mac       : 0000-5e00-0201
    Uncheck hop limit : NO
    Accept Mode       : ON
    Config type       : normal-vrrp
   Config track link-bfd down-number : 0
  Vlanif100 | Virtual Router 2     State             : Backup
    Virtual IP        : FE80::2
                        2000::60
    Master IP : 2000::2    
    PriorityRun       : 100
    PriorityConfig    : 100
    MasterPriority    : 120
    Preempt           : YES      Delay Time : 0
    TimerRun          : 100
    TimerConfig       : 100
    Virtual Mac       : 0000-5e00-0102
    Uncheck hop limit : NO
    Accept Mode       : ON
    Config type       : normal-vrrp
    Config track link-bfd down-number : 0

Run the display vrrp6 command on Switch B, and you can find that VRRP group 1 and VRRP group 2 are created on SwitchB. Switch B is the backup device in VRRP group 1 and the master device in VRRP group 2.

[SwitchB] display vrrp6
 Vlanif100 | Virtual Router 1    State             : Backup
   Virtual IP        : FE80::1
                       2000::100
   Master IP : 2000::1    
   PriorityRun       : 100
   PriorityConfig    : 100
   MasterPriority    : 120
   Preempt           : YES      Delay Time : 0
   TimerRun          : 100
   TimerConfig       : 100
   Virtual Mac       : 0000-5e00-0201
   Uncheck hop limit : NO
   Accept Mode       : ON
   Config type       : normal-vrrp
   Config track link-bfd down-number : 0
 Vlanif100 | Virtual Router 2    State             : Master
   Virtual IP        : FE80::2
                       2000::60
   Master IP : 2000::2    
   PriorityRun       : 120
   PriorityConfig    : 120
   MasterPriority    : 120
   Preempt           : YES      Delay Time : 0
   TimerRun          : 100
   TimerConfig       : 100
   Virtual Mac       : 0000-5e00-0102
   Uncheck hop limit : NO
   Accept Mode       : ON
   Config type       : normal-vrrp
   Config track link-bfd down-number : 0


Configuration Files

  • Configuration file of Switch A

    #
    sysname SwitchA
    #
    vlan batch 100 200
    #
    ipv6
    #
    ospfv3 1
    router-id 1.1.1.1
    #
    interface Vlanif100
    ipv6 enable
    ipv6 address 2000::1/64
    vrrp6 vrid 1 virtual-ip FE80::1 link-local
    vrrp6 vrid 1 virtual-ip 2000::100
    vrrp6 vrid 1 priority 120
    vrrp6 vrid 2 virtual-ip FE80::2 link-local
    vrrp6 vrid 2 virtual-ip 2000::60
    ospfv3 1 area 0.0.0.0
    #
    interface Vlanif200
    ipv6 enable
    ipv6 address 2002::1/64
    ospfv3 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/0
    port hybrid pvid vlan 100
    port hybrid pvid untagged 100
    #
    interface GigabitEthernet2/0/0
    port hybrid pvid vlan 200
    port hybrid pvid untagged 200
    #
    return

  • Configuration file of Switch B

    #
    sysname SwitchB
    #
    vlan batch 100 400
    #
    ipv6
    #
    ospfv3 1
    router-id 2.2.2.2
    #
    interface Vlanif100
    ipv6 enable
    ipv6 address 2000::2/64
    vrrp6 vrid 1 virtual-ip FE80::1 link-local
    vrrp6 vrid 1 virtual-ip 2000::100
    vrrp6 vrid 2 virtual-ip FE80::2 link-local
    vrrp6 vrid 2 virtual-ip 2000::60
    vrrp6 vrid 2 priority 120
    ospfv3 1 area 0.0.0.0
    #
    interface Vlanif200
    ipv6 enable
    ipv6 address 2001::1/64
    ospfv3 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/0
    port hybrid pvid vlan 100
    port hybrid pvid untagged 100
    #
    interface GigabitEthernet2/0/0
    port hybrid pvid vlan 400
    port hybrid pvid untagged 400
    #
    return

  • Configuration file of Switch C

    #
    sysname SwitchC
    #
    vlan batch 200 300 400
    #
    ipv6
    #
    ospfv3 1
    router-id 3.3.3.3
    #
    interface Vlanif200
    ipv6 enable
    ipv6 address 2002::2
    ospfv3 1 area 0.0.0.0
    #
    interface Vlanif300
    ipv6 enable
    ipv6 address 2003::2/64
    ospfv3 1 area 0.0.0.0
    #
    interface Vlanif400
    ipv6 enable
    ipv6 address 2001::2/64
    ospfv3 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/1
    port hybrid pvid vlan 200
    port hybrid pvid untagged 200
    #
    interface GigabitEthernet1/0/2
    port hybrid pvid vlan 300
    port hybrid pvid untagged 300
    #
    interface GigabitEthernet2/0/0
    port hybrid pvid vlan 300
    port hybrid pvid untagged 300
    #
    return



Great sharing
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Great
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Nice
View more
  • x
  • convention:

Informative. Keep up the good work.
View more
  • x
  • convention:

Thanks for sharing knowledge with us.
View more
  • x
  • convention:

Very useful
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.