<Huawei>u t m (关闭提示)
Info: Current terminal monitor is off.
<Huawei>sys (进入系统视图)
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname sw3(更改名字为SW3)
[sw3]vlan batch 10 20(批量创建vlan10 20)
[sw3]int e0/0/1(j进入端口w0/0/1)
[sw3-Ethernet0/0/1]port link-type access (设置端口模式为accesss)
[sw3-Ethernet0/0/1]port default vlan 10(端口属于vlan10)
[sw3-Ethernet0/0/1]q(退出)
[sw3]interface Eth-Trunk 1(创建eth-trunk1)
[sw3-Eth-Trunk1]mode lacp-static (设置模式为lacp模式)
[sw3-Eth-Trunk1]trunkport e0/0/3(加入端口)
[sw3-Eth-Trunk1]trunkport e0/0/4
[sw3-Eth-Trunk1]port link-type trunk (设置端口模式为trunk)
[sw3-Eth-Trunk1]port trunk allow-pass vlan all (允许所有vlan通过)
[sw3-Eth-Trunk1]q
二层其他交换机对应此操作
三层交换机
[Huawei]vlan batch 10 20 (批量创建vlan)
[Huawei]interface Eth-Trunk1 (创建eth)
[Huawei-Eth-Trunk1]mode lacp-static
[Huawei-Eth-Trunk1]trunkport g0/0/3
[Huawei-Eth-Trunk1]trunkport g0/0/4
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
[Huawei-Eth-Trunk1]q
[Huawei]interface Eth-Trunk 2
[Huawei-Eth-Trunk2]mode lacp-static
[Huawei-Eth-Trunk2]trunkport g0/0/5
[Huawei-Eth-Trunk2]trunkport g0/0/6
[Huawei-Eth-Trunk2]port link-type trunk
[Huawei-Eth-Trunk2]port trunk allow-pass vlan all
[Huawei-Eth-Trunk2]q
[Huawei]interface Eth-Trunk 3
[Huawei-Eth-Trunk3]mode lacp-static
[Huawei-Eth-Trunk3]trunkport g0/0/7
[Huawei-Eth-Trunk3]trunkport g0/0/8
[Huawei-Eth-Trunk3]port link-type trunk
[Huawei-Eth-Trunk3]port trunk allow-pass vlan all
[Huawei-Eth-Trunk3]q
其他三层交换机参照此操作
最后dis eth-trunk 查看
Status 显示 Selected 即可
最后pc 1ping pc 3 pcping pc4 通即可
可以将在交换机间添加线路,来测试eth-trun的功能