Eth-Trunk作为一种捆绑技术,可以把多个独立的物理接口绑定在一起,作为一个大宽带的逻辑接口使用。
优势:1,增加设备之间的互联宽带;
2,提高设备之间的可靠性;
3,对流量负载均衡,提高链路利用率
创建拓补图,对四台PC端进行IP地址配置和VLAN划分。
分别对两台交换机配置接口类型,操作一样,如下以LSW4为例(注意端口ID)
<Huawei>u t m //取消系统提示
Info: Current terminal monitor is off.
<Huawei>sys //进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]u in e //消息中心禁用
Info: Information center is disabled
[Huawei]vlan batch 10 20 //创建VLAN10和20
[Huawei]interface g0/0/1 //进入0/0/1接口
[Huawei-GigabitEthernet0/0/1]port link-type access //设置接口类型为Access
[Huawei-GigabitEthernet0/0/1]port default vlan 10 //默认VLAN10 通过
[Huawei-GigabitEthernet0/0/1]quit //返回
[Huawei]interface g0/0/2 //进入0/0/2接口
[Huawei-GigabitEthernet0/0/2]port link-type access //设置接口类型为Access
[Huawei-GigabitEthernet0/0/2]port default vlan 20 //默认VLAN20 通过
[Huawei-GigabitEthernet0/0/2]quit //返回
[Huawei]interface Eth-Trunk 1 //创建并进入eth-trunk 1
[Huawei-Eth-Trunk1]mode manual load-balance //配置手工模式
[Huawei-Eth-Trunk1]trunkport g0/0/3 //g0/0/3加入成员端口
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk1]trunkport g0/0/4 //g0/0/4加入成员端口
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk1]port link-type trunk //配置eth-trunk类型为trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all //允许所有VLAN通过
然后为LSW5配置,完成以后测试相同VLAN之间的PC通信即可。