步骤1 创建Eth-Trunk # 创建Eth-Trunk 1。 <Quidway> 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。

<Quidway> 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接口视图下

  1. 执行命令system-view,进入系统视图。
  2. 执行命令interface eth-trunk trunk-id,进入Eth-Trunk接口视图。
  3. 执行命令trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-8>,增加成员接口。