标签:mic mamicode run 配置 lan 接口 style net 数通
1. 网络拓扑
2. SW1配置
[SW1]vlan batch 10 20
[SW1]interface GigabitEthernet 0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
[SW1]interface GigabitEthernet 0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 20
创建一个聚合链路接口:
[SW1]interface Eth-Trunk 1
[SW1-Eth-Trunk1]mode manual load-balance
[SW1-Eth-Trunk1]port link-type trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20
将端口加入聚合:
[SW1]interface GigabitEthernet 0/0/23
[SW1-GigabitEthernet0/0/23]eth-trunk 1
[SW1]interface GigabitEthernet 0/0/24
[SW1-GigabitEthernet0/0/24]eth-trunk 1
3. SW3配置
与SW2相同配置
4. 查看配置
SW1:
SW2:
标签:mic mamicode run 配置 lan 接口 style net 数通
原文地址:https://www.cnblogs.com/luwei0915/p/12076327.html