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