手工链路聚合与静态LACP聚合的配置命令(华为)
步骤1 创建Eth-Trunk #创建Eth-Trunk 1。
<Quidway> system-view
sysname Switch
interface eth-trunk 1
quit
步骤2 向Eth-Trunk中加入成员接口
将Eth0/0/3加入Eth-Trunk 1。
interface ethernet 0/0/3
eth-trunk 1
quit
默认情况下不允许任何VLAN通过,所以必须配置允许的VLAN,不仅仅是聚合端口,
Trunk端口也要做该配置
步骤3 配置Eth-Trunk 1
配置Eth-Trunk 1允许VLAN100-200的报文通过。
interface eth-trunk 1
port link-type trunk
port trunk allow-pass vlan 100 to 200
quit
在任意视图下执行
display
trunkmembership
命令,检查
Eth-Trunk 1是否创建成功,及成员接口是否正确加入。
静态LACP聚合:
步骤1 创建编号为1的Eth-Trunk,配置它的工作模式为静态LACP模式
配置SwitchA。
<Quidway> system-view
sysname SwitchA
interface eth-trunk 1
bpdu enable
mode lacp-static
quit
步骤2 将成员接口加入Eth-Trunk
配置SwitchA。
interface ethernet 0/0/1
eth-trunk 1
quit
步骤3 在SwitchA上配置系统优先级为100,使其成为LACP主动端
lacp priority 100
步骤4 在SwitchA上配置活动接口上限阈值为2
interface eth-trunk 1
max active-linknumber 2
quit
步骤5 在SwitchA上配置接口优先级确定活动链路
interface ethernet 0/0/1
lacp priority 100
quit
增加接口成员在Eth-Trunk接口视图下
[*]执行命令system-view,进入系统视图。
[*]执行命令interface eth-trunk trunk-id,进入Eth-Trunk接口视图。
[*]执行命令trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-8>,增加成员接口。
页:
[1]