1、需求
1)交换网络中存在2个 VLAN – 10 和 20
2)每个VLAN的IP地址为:192.168.xx.0/24(xx为 vlan 号)
3)对交换机之间的链路进行链路捆绑,增加互联带宽
4)确保同 VLAN的 PC 之间互通
2、方案
使用eNSP搭建实验环境,如图所示。
3、配置步骤
3.1如图配置每台PC的IP地址
3.2在SW1/SW2配置基本信息
3.2.1创建 vlan 10 和 20(SW1/SW2)
[sw1]vlan batch 10 20
[sw2]vlan batch 10 20
3.2.2配置交换机与PC之间的链路为 Access,并加入到正确的 VLAN(SW1/SW2)
[sw1]in g0/0/3
[sw1-GigabitEthernet0/0/3]port link-type access
[sw1-GigabitEthernet0/0/3]port default vlan 10
[sw1]in g0/0/4
[sw1-GigabitEthernet0/0/4]port link-type access
[sw1-GigabitEthernet0/0/4]port default vlan 20
[sw2]in g0/0/3
[sw2-GigabitEthernet0/0/3]port link-type access
[sw2-GigabitEthernet0/0/3]port default vlan 10
[sw2]in g0/0/4
[sw2-GigabitEthernet0/0/4]port link-type access
[sw2-GigabitEthernet0/0/4]port default vlan 20
3.3对SW1/2之间的链路进行链路捆绑
[SW1]interface eth-trunk 1
[SW1-Eth-Trunk1]mode manual load-balance
[SW1-Eth-Trunk1]trunkport g0/0/1
[SW1-Eth-Trunk1]trunkport g0/0/2
[SW1-Eth-Trunk1]quit
[SW2]interface eth-trunk 1
[SW2-Eth-Trunk1]mode manual load-balance
[SW2-Eth-Trunk1]trunkport g0/0/1
[SW2-Eth-Trunk1]trunkport g0/0/2
[SW2-Eth-Trunk1]quit
3.4显示Eth-Trunk信息
[sw1]display eth-trunk
[sw2]display eth-trunk
3.5把 Eth-trunk 配置为 Trunk
[SW1]interface eth-trunk 1
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan all
[SW1-Eth-Trunk1]quit
[SW1]interface eth-trunk 1
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan all
[SW1-Eth-Trunk1]quit