一、规划IP地址
Vlan2:192.168.1.0/24
Vlan3、4、5:192.168.2.0/24
二、创建vlan
SW1:
[SW1]vlan batch 2 to 5
SW2:
[SW2]vlan batch 2 to 5
SW3:
[SW3]vlan batch 2 to 5
三、trunk干道
SW1:
[SW1-GigabitEthernet0/0/1]int g0/0/4
[SW1-GigabitEthernet0/0/4]port link-type trunk
[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 to 5
通过使用混杂模式来区分vlan2 和其它vlan的标签在到路由器时的撕与不撕
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type hybrid
[SW1-GigabitEthernet0/0/1]port hybrid untagged vlan 3 to 5
[SW1-GigabitEthernet0/0/1]port hybrid tagged vlan 2
SW2:
[SW2]int g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 2 to 5
[SW2-GigabitEthernet0/0/1]int g0/0/2
[SW2-GigabitEthernet0/0/2]port
vlan--access-trunk-hybrid实验
最新推荐文章于 2022-12-05 10:15:59 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)