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 MAD LACP Function Example

Network Requirements

  • Device0 and Device1 form the stacking system with Device0 as the control device. PC1 accesses IP Network via the stacking system.
  • Configure the MAD LACP function so that PC1 can access IP Network normally after Device1 is split from the stacking system because of the VSL channel failure and the services do not become abnormal because of the network configuration conflict.

Network Topology

Networking of configuring the MAD LACP function

Figure 2-1 Networking of configuring the MAD LACP function

Configuration Steps

Step 1: Make Device0 and Device1 form the stacking system with Device0 as the control device.

Omitted

Step 2: Configure the MAD LACP function on Device0.

#Create VLAN2 on Device0, create dynamic aggregation group 1, configure the link type of the aggregation group 1 as Trunk, and permit the services of VLAN2 to pass.

Device0#configure terminal
Device0(config)#vlan 2
Device0(config-vlan2)#exit
Device0(config)#link-aggregation 1 mode lacp
Device0(config)#link-aggregation 1
Device0(config-link-aggregation1)#switchport mode trunk
Device0(config-link-aggregation1)#switchport trunk allowed vlan add 2
Device0(config-link-aggregation1)#exit

#On Device0, add port tengigabitethernet0/0/1,tengigabitethernet1/0/1 to aggregation group 1.

Device0(config)#interface tengigabitethernet 0/0/1,1/0/1
Device0(config-if-range)#link-aggregation 1 active
Device0(config-if-range)#exit

#Enable the MAD LACP function on aggregation group 1 of Device0.

Device0(config)#link-aggregation 1
Device0(config-link-aggregation1)#mad enable
Device0(config-link-aggregation1)#exit

Step 3: Configure Device2.

#On Device2, create VLAN2 and configure the link type of port tengigabitethernet0/1, tengigabitethernet0/2, permitting the services of VLAN2 to pass.

Device2#configure terminal
Device2(config)#vlan 2
Device2(config-vlan2)#exit
Device2(config)#interface tengigabitethernet 0/1,0/2
Device2(config-if-range)#switchport mode trunk
Device2(config-if-range)#switchport trunk allowed vlan add 2
Device2(config-if-range)#exit

#On Device2, disable the spanning tree function of port tengigabitethernet0/1,tengigabitethernet0/2.

Device2(config)#interface tengigabitethernet 0/1,0/2
Device2(config-if-range)#no spanning-tree enable
Device2(config-if-range)#exit

Step 4: Check the result.

#View the MAD LACP information on Device0.

Device0#show mad lacp  
--------MAD-LACP INFORMATION--------- 	 
   Link-aggregation    Mad state           
 -------------------  --------------  	         	 
         1                enable                     

#After Device1 is split from the stacking system because of the VSL channel failure, the MAD status of the stacking system with Device0 as the control device is Active, and the MAD status of the stacking system with Device1 as the control device is Recovery.

Device0#show mad status  
 MAD status: active 
 
Device1#show mad status  
 MAD status: recovery 

#PC1 can access IP Network.