/
Example for Configuring MLAG with Active-Active-VRRP

Example for Configuring MLAG with Active-Active-VRRP


Networking Requirements

Figure 1. User Configuration Topology of MLAG with VRRP


When an MLAG is configured to provide L3 routing functions to downstream clients, the MLAG peers should provide the same gateway address to the downstream clients. VRRP groups combine the MLAG peer devices into a virtual router and use the IP address of the VRRP virtual router to communicate with the access devices as the default gateway address. When one device in the VRRP group fails, VRRP mechanism can elect a new gateway to transmit service traffic thus ensuring the reliable operation of the layer-3 network.

Basic Deployment

  • In Figure 1, a two-layer MLAG is deployed in the topology, where Switch1 and Switch2 form an MLAG peer at aggregation layer, Switch3 and Switch4 form an MLAG peer at access layer. Switch1and Switch2 are in MLAG domain 1; Switch3 and Switch4 are in MLAG domain 2. It is mandatory that different pairs of MLAG peer devices should use different domain IDs.
  • In the two-layer MLAG topology, MLAG member ports on the MLAG peer in the same domain MUST belong to the same MLAG, that is, the member ports should be configured with the same link ID. Use link ID 1 on Switch1 and Switch2 to bind all the MLAG member ports, link ID 2 is used on Switch3 and Switch4.
  • Active-Active VRRP is deployed on Switch1 and Switch2 as Gateway for Host devices of VLAN 20.
  • Access Switch5 dual-accesses to the network through Switch3 and Switch4 by LAG interface.

Networking Address Planning

The networking IP address planning is shown in the following table.

Switch

Physical Interface

Aggregate Interface

VLAN Interface and IP Address

Switch1

Te-1/1/2

ae3

VLAN interface 4092: 192.168.45.2

Te-1/1/3

Te-1/1/4

ae1

VLAN interface 20: 11.251.201.1

VRRP virtual IP: 11.251.201.3

Te-1/1/6

Switch2

Te-1/1/2

ae3


VLAN interface 4092: 192.168.45.1

Te-1/1/3

Te-1/1/4

ae1


VLAN interface 20: 11.251.201.2

VRRP virtual IP: 11.251.201.3

Te-1/1/6

Switch3

Te-1/1/2

ae4

VLAN interface 4093: 192.168.46.2

Te-1/1/6

Te-1/1/1

ae1

-

Te-1/1/3

Te-1/1/5

ae6

-

Switch4

Te-1/1/2

ae4

VLAN interface 4093: 192.168.46.1

Te-1/1/6

Te-1/1/4

ae1

-

Te-1/1/7

Te-1/1/5

ae6

-

Switch5

Ge-1/1/1

ae6

-

Ge-1/1/2

Procedure

Switch1

Step1         Configure the aggregation interface with LACP mode.

admin@Switch1# set interface aggregate-ethernet ae1 aggregated-ether-options lacp enable true

Step2         Configure the VLANs.

admin@Switch1# set vlans vlan-id 10-19
admin@Switch1# set vlans vlan-id 20 l3-interface 20
admin@Switch1# set vlans vlan-id 4088 l3-interface 4088
admin@Switch1# set interface aggregate-ethernet ae1 family ethernet-switching native-vlan-id 10
admin@Switch1# set interface aggregate-ethernet ae1 family ethernet-switching port-mode trunk
admin@Switch1# set interface aggregate-ethernet ae1 family ethernet-switching vlan members 10-19
admin@Switch1# set interface aggregate-ethernet ae1 family ethernet-switching vlan members 20
admin@Switch1# set interface aggregate-ethernet ae3 family ethernet-switching native-vlan-id 4088
admin@Switch1# set interface aggregate-ethernet ae3 family ethernet-switching port-mode trunk
admin@Switch1# set interface aggregate-ethernet ae3 family ethernet-switching vlan members 10-19
admin@Switch1# set interface aggregate-ethernet ae3 family ethernet-switching vlan members 20

Step3         Configure the L3 interface IP address.

admin@Switch1# set l3-interface vlan-interface 4088 address 192.168.45.2 prefix-length 24
admin@Switch1# set l3-interface vlan-interface 20 address 11.251.201.1 prefix-length 24

Step4         Add interfaces to the LAG port.

admin@Switch1# set interface gigabit-ethernet te-1/1/2 ether-options 802.3ad ae3
admin@Switch1# set interface gigabit-ethernet te-1/1/3 ether-options 802.3ad ae3
admin@Switch1# set interface gigabit-ethernet te-1/1/4 ether-options 802.3ad ae1
admin@Switch1# set interface gigabit-ethernet te-1/1/6 ether-options 802.3ad ae1

Step5        Configure MLAG domain ID.

admin@Switch1# set protocols mlag domain 1

Step6         Specify Switch1 as Node 0 of MLAG domain 1.

admin@Switch1# set protocols mlag domain 1 node 0

Step7         Configure link ID on the MLAG member port.

admin@Switch1# set protocols mlag domain 1 interface ae1 link 1

NOTE: The paired MLAG member ports must be bound to the same MLAG link ID.

Step8         Configure the peer IP address and the peer-link for the MLAG peer.

admin@Switch1# set protocols mlag domain 1 peer-ip 192.168.45.1 peer-link ae3

Step9         Configure MLAG peer VLAN.

admin@Switch1# set protocols mlag domain 1 peer-ip 192.168.45.1 peer-vlan 4088

Step10      Enable Active-Active-VRRP function.

 admin@Switch1# set protocols vrrp interface 20 vrid 20 ip 11.251.201.3
 admin@Switch1# set protocols vrrp interface 20 vrid 20 load-balance disable false

Step11      Commit the configuration.

 admin@Switch1# commit

Switch2

Step1         Configure the aggregation interface with LACP mode.

admin@Switch2# set interface aggregate-ethernet ae1 aggregated-ether-options lacp enable true

Step2         Configure the VLANs.

admin@Switch2# set vlans vlan-id 10-19
admin@Switch2# set vlans vlan-id 20 l3-interface 20
admin@Switch2# set vlans vlan-id 4088 l3-interface 4088
admin@Switch2# set interface aggregate-ethernet ae1 family ethernet-switching native-vlan-id 10
admin@Switch2# set interface aggregate-ethernet ae1 family ethernet-switching port-mode trunk
admin@Switch2# set interface aggregate-ethernet ae1 family ethernet-switching vlan members 10-19
admin@Switch2# set interface aggregate-ethernet ae1 family ethernet-switching vlan members 20
admin@Switch2# set interface aggregate-ethernet ae3 family ethernet-switching native-vlan-id 4088
admin@Switch2# set interface aggregate-ethernet ae3 family ethernet-switching port-mode trunk
admin@Switch2# set interface aggregate-ethernet ae3 family ethernet-switching vlan members 10-19
admin@Switch2# set interface aggregate-ethernet ae3 family ethernet-switching vlan members 20

Step3         Configure the L3 interface IP address.

admin@Switch2# set l3-interface vlan-interface 4088 address 192.168.45.2 prefix-length 24
admin@Switch2# set l3-interface vlan-interface 20 address 11.251.201.1 prefix-length 24

Step4         Add interfaces to the LAG port.

admin@Switch2# set interface gigabit-ethernet te-1/1/2 ether-options 802.3ad ae3
admin@Switch2# set interface gigabit-ethernet te-1/1/3 ether-options 802.3ad ae3
admin@Switch2# set interface gigabit-ethernet te-1/1/4 ether-options 802.3ad ae1
admin@Switch2# set interface gigabit-ethernet te-1/1/6 ether-options 802.3ad ae1

Step5        Configure MLAG domain ID.

admin@Switch2# set protocols mlag domain 1

Step6         Specify Switch2 as Node 1 of MLAG domain 1.

admin@Switch2# set protocols mlag domain 1 node 1

Step7         Configure link ID on the MLAG member port.

admin@Switch2# set protocols mlag domain 1 interface ae1 link 1

NOTE: The paired MLAG member ports must be bound to the same MLAG link ID.

Step8         Configure the peer IP address and the peer-link for the MLAG peer.

admin@Switch2# set protocols mlag domain 1 peer-ip 192.168.45.2 peer-link ae3

Step9         Configure MLAG peer VLAN.

admin@Switch2# set protocols mlag domain 1 peer-ip 192.168.45.2 peer-vlan 4088

Step10      Enable Active-Active-VRRP function.

 admin@Switch2# set protocols vrrp interface 20 vrid 20 ip 11.251.201.3
 admin@Switch2# set protocols vrrp interface 20 vrid 20 load-balance disable false

Step11      Commit the configuration.

 admin@Switch2# commit

Switch3

Step1         Configure the aggregation interfaces with LACP mode.

admin@Switch3# set interface aggregate-ethernet ae1 aggregated-ether-options lacp enable true
admin@Switch3# set interface aggregate-ethernet ae6 aggregated-ether-options lacp enable true

Step2         Configure the VLANs.

admin@Switch3# set vlans vlan-id 10-20
admin@Switch3# set vlans vlan-id 4088 l3-interface 4088
admin@Switch3# set interface aggregate-ethernet ae1 family ethernet-switching native-vlan-id 10
admin@Switch3# set interface aggregate-ethernet ae1 family ethernet-switching port-mode trunk
admin@Switch3# set interface aggregate-ethernet ae1 family ethernet-switching vlan members 10-20
admin@Switch3# set interface aggregate-ethernet ae4 family ethernet-switching native-vlan-id 4088
admin@Switch3# set interface aggregate-ethernet ae4 family ethernet-switching port-mode trunk
admin@Switch3# set interface aggregate-ethernet ae4 family ethernet-switching vlan members 10-20
admin@Switch3# set interface aggregate-ethernet ae6 family ethernet-switching native-vlan-id 10
admin@Switch3# set interface aggregate-ethernet ae6 family ethernet-switching port-mode trunk
admin@Switch3# set interface aggregate-ethernet ae6 family ethernet-switching vlan members 10-20

Step3         Configure the L3 interface IP address.

admin@Switch3# set l3-interface vlan-interface 4088 address 192.168.46.2 prefix-length 24

Step4         Configure MLAG domain ID.

admin@Switch3# set protocols mlag domain 2

Step5         Specify Switch3 as Node 0 of MLAG domain 2.

admin@Switch3# set protocols mlag domain 2 node 0

Step6         Configure link ID on the MLAG member port.

admin@Switch3# set protocols mlag domain 2