千家信息网

Vlan与Trunk配置

发表于:2024-09-21 作者:千家信息网编辑
千家信息网最后更新 2024年09月21日,1.实现拓扑图:2.配置第一台交换机[Huawei]sysname sw1[sw1]vlan batch 5 10[sw1-Ethernet0/0/1]int e0/0/1[sw1-Ethernet0
千家信息网最后更新 2024年09月21日Vlan与Trunk配置

1.实现拓扑图:

2.配置第一台交换机
[Huawei]sysname sw1
[sw1]vlan batch 5 10
[sw1-Ethernet0/0/1]int e0/0/1
[sw1-Ethernet0/0/1]port link-type access
[sw1-Ethernet0/0/1]port default vlan 5
[sw1-Ethernet0/0/1]int e0/0/2
[sw1-Ethernet0/0/2]port link-type access
[sw1-Ethernet0/0/2]port default vlan 10
[sw1-Ethernet0/0/3]port link-type hybrid
[sw1-Ethernet0/0/3]port hybrid tagged vlan 5 10
3.配置第二台交换机
[Huawei]sysname sw1
[sw2]vlan batch 5 10
[sw2]int e0/0/1
[sw2-Ethernet0/0/1]port link-type access
[sw2-Ethernet0/0/1]port default vlan 5
[sw2-Ethernet0/0/1]int e0/0/2
[sw2-Ethernet0/0/2]port link-type access
[sw2-Ethernet0/0/2]port default vlan 10
[sw2-Ethernet0/0/2]int e0/0/3
[sw2-Ethernet0/0/3]port link-type hybrid
[sw2-Ethernet0/0/3]port hybrid tagged vlan 5 10

0