链路聚合配置

华三基本配置(按照步骤来)


[H3C]interface Bridge-Aggregation 1  //创建聚合组1
[H3C-Bridge-Aggregation1]link-aggregation mode dynamic //配置该接口为动态聚合模式
[H3C-Bridge-Aggregation1]quit
[H3C]interface g1/0/1
[H3C-GigabitEthernet1/0/1]port link-aggregation group 1 //将端口加入聚合组1
[H3C-GigabitEthernet1/0/1]quit
[H3C]interface g1/0/2
[H3C-GigabitEthernet1/0/2]port link-aggregation group 1 //将端口加入聚合组1
[H3C-GigabitEthernet1/0/2]quit
[H3C]interface Bridge-Aggregation 1 //再次进入聚合组1
[H3C-Bridge-Aggregation1]port link-type trunk //将聚合组1起为trunk模式 (g1/0/1 g1/0/2会同步配置)
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[H3C-Bridge-Aggregation1]port trunk permit vlan all //允许所有vlan通过
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[H3C-Bridge-Aggregation1]quit

删除聚合组
[H3C]undo interface Bridge-Aggregation1
验证配置:
display link-aggregation verbose

 

H3C三层链路聚合命令

interface Route-Aggregation1
interface GigabitEthernet1/0/1
port link-mode route      ---开启三层模式
port link-aggregation group 1
interface GigabitEthernet1/0/2
port link-mode route
port link-aggregation group 1
interface Route-Aggregation1
ip address x.x.x.x 24
quit
 


华为基本配置(配置eth-trunk 物理端口下的配置要清空)

[SW-HUAWEI]interface Eth-Trunk 1 //创建编号为1的Eth-Trunk
[SW-HUAWEI-Eth-Trunk1]port link-type trunk
[SW-HUAWEI-Eth-Trunk1]mode lacp-static    //配置它的工作模式为LACP模式
[SW-HUAWEI-Eth-Trunk1]max active-linknumber 2 //配置活动接口上限阈值为2
[SW-HUAWEI-Eth-Trunk1]quit
[SW-HUAWEI]int g0/0/1
[SW-HUAWEI-GigabitEthernet0/0/1]eth-trunk 1 //加入聚合组1
[SW-HUAWEI-GigabitEthernet0/0/1]int g0/0/2
[SW-HUAWEI-GigabitEthernet0/0/2]eth-trunk 1 //(在配置端口前,一定要将端口原有配置清空,全部undo掉,否则无法应用eth-trunk命令。如果之前端口配置过trunk口,可以使用undo port link-type清除trunk状态)
[SW-HUAWEI]lacp priority 100 //配置系统优先级为100,使其成为LACP主动端

验证配置:
display eth-trunk 1

cisco基本配置(创建port channel配置 端口下的配置即可)

 interface port-channel1
  switchport trunk encapsulation dot1q
  switchport mode trunk
 
interface g0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode active
 
interface g0/2
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode active

解析:
active   Enable LACP unconditionally                                       #主动发送LACP报文

auto    Enable PAgP only if a PAgP device is detected               #被动发送PAgP报文

desirable  Enable PAgP unconditionally                                   #主动发送PAgP报文

on       Enable Etherchannel only                                           #手动设置,需要两边都设置成on

passive  Enable LACP only if a LACP device is detected             #被动接收LACP报文


#查看端口聚合信息,正常情况Port-channel显示是SU,如果显示SD就不正常

Switch#show etherchannel summary

#查看虚拟通道包含的接口

Switch#show etherchannel port-channel

#查看通道接口状况

Switch#show etherchannel load-balance

你可能感兴趣的:(R&S配置文档)