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 MLAG Basic Functions

Network Requirements

  • All devices are in one L2 network.

Network Topology

Configure MLAG basic functions

Figure 13-1 Configure MLAG basic functions

Configuration Steps

Step1: Add the interface to the aggregation group and add to vlan. (omitted)

Step2: Configure the MLAG domain.

#Configure Device1, and configure the MLAG domain instance.

Device1#configure terminal
Device1(config)#mlag domain 1
Device1(config-mlag-domain)#node id 1
Device1(config-mlag-domain)#local-interface vlan 100
Device1(config-mlag-domain)#peer-address 20.0.0.10
Device1(config-mlag-domain)#keepalive ip destination 30.0.0.10 source 30.0.0.20
Device1(config-mlag-domain)#exit

##Configure Device2, and configure the MLAG domain instance.

Device2#configure terminal
Device2(config)#mlag domain 1
Device2(config-mlag-domain)#node id 2
Device2(config-mlag-domain)#local-interface vlan 100
Device2(config-mlag-domain)#peer-address 20.0.0.20
Device2(config-mlag-domain)#keepalive ip destination 30.0.0.20 source 30.0.0.10
Device2(config-mlag-domain)#exit

Description:

The domain IDs of two MLAG nodes should be the same.

The node IDs of two MLAG nodes cannot be the same.

Step3: Configure local-interface vlan and keepalive ip interface.

#Configure Device1, and configure local-interface vlan and keepalive ip interface.

Device1(config)#interface vlan 100  
Device1(config-if-vlan100)#ip address 20.0.0.10 24
Device1(config-if-vlan100)#exit
Device1(config)#interface vlan 4094
Device1(config-if-vlan4094)#ip address 30.0.0.10 24
Device1(config-if-vlan4094)#exit
Device1(config)#

#Configure Device2, and configure local-interface vlan and keepalive ip interface.

Device2(config)#interface vlan 100  
Device2(config-if-vlan100)#ip address 20.0.0.20 24
Device2(config-if-vlan100)#exit
Device2(config)#interface vlan 4094
Device2(config-if-vlan4094)#ip address 30.0.0.20 24
Device2(config-if-vlan4094)#exit
Device2(config)#

Step4: Configure mlag group and peer-link group.

#Configure Device1, and configure mlag group and peer-link group.

Device1(config)#interface link-aggregation 1
Device1(config-link-aggregation1)#mlag group 1
Device1(config-link-aggregation1)#exit
Device1(config)#   
Device1(config)# interface link-aggregation 10
Device1(config-link-aggregation10)#mlag peer-link
Device1(config-link-aggregation1)#exit
Device1(config)#
Device1(config)# interface link-aggregation 20
Device1(config-link-aggregation20)#mlag group 20
Device1(config-link-aggregation20)#exit
Device1(config)#

#Configure Device2, and configure mlag group and peer-link group.

Device2(config)# interface link-aggregation 1
Device2(config-link-aggregation1)#mlag group 1
Device2(config-link-aggregation1)#exit
Device2(config)#   
Device2(config)# interface link-aggregation 10
Device2(config-link-aggregation10)#mlag peer-link
Device2(config-link-aggregation1)#exit
Device2(config)#
Device2(config)# interface link-aggregation 20
Device2(config-link-aggregation20)#mlag group 20
Device2(config-link-aggregation20)#exit
Device2(config)#

#Query the MLAG information on Device1.

Device1#sho mlag brief
MLAG domain id             : 1 
Role FSM status            : SLAVE
Peering FSM status         : ESTABLISHED
Keepalive FSM statu s      : ALIVE 
PTS Service                : ON
Up-delay                   : 90 sec
Local-interface vlan       : 100 
Graceful-restart           : Disabled
Number of mlags configured : 2 
----------------------------------------------------------------
Peer-Link             Link-status Data-status Active-vlans 
-------------------   ----------  ----------  -----------
link-aggregation 10   LINKUP      UP          2-4093 
----------------------------------------------------------------
Node    ID   Role    System-MAC      System-Priority
-----   ---- ----    ------------    ------------------ 
Self    1    SLAVE   0001.7a95.000b  32768
Remote  2    MASTER  0001.7a95.000b  32768
Device1# 
Device1#show mlag group
Number of mlags configured : 2 
mlag-id: 1 (link-aggregation1) 
--Link status: LINKUP 
--Data status: UP 
--Active mlag vlans: 2-4093 
--Redirect FSM state: INVALID 
--Isolate FSM state: ISOLATE 
--Block FSM state: UNBLOCK 
--Remote interface: link-aggregation 1 
--Remote link status: LINKUP 
--Remote data status: UP 
 
mlag-id: 20 (link-aggregation 20) 
--Link status: LINKUP 
--Data status: UP 
--Active mlag vlans: 2-4093 
--Redirect FSM state: INVALID 
--Isolate FSM state: ISOLATE 
--Block FSM state: UNBLOCK 
--Remote interface: link-aggregation 20 
--Remote link status: LINKUP 
--Remote data status: UP 
Device1#