实验目的:
让vlan5与vlan50互通 让vlan10与vlan50互通
vlan5与vlan10不能互通
实验拓扑:
实验步骤:
[sw1]vlan batch 5 10 50
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]port hybrid pvid vlan 5
[sw1-GigabitEthernet0/0/1]port hybrid untagged vlan 5 50
[sw1]interface GigabitEthernet 0/0/2
[sw1-GigabitEthernet0/0/2]port hybrid pvid vlan 10
[sw1-GigabitEthernet0/0/2]port hybrid untagged vlan 10 50
[sw1]interface GigabitEthernet 0/0/9
[sw1-GigabitEthernet0/0/9]port hybrid tagged vlan all
------------------------------------------------------------
[sw2]vlan batch 5 10 50
[sw2]interface GigabitEthernet 0/0/9
[sw2-GigabitEthernet0/0/9]port hybrid tagged vlan all
[sw2]interface GigabitEthernet 0/0/3
[sw2-GigabitEthernet0/0/3]port hybrid pvid vlan 50
[sw2-GigabitEthernet0/0/3]port hybrid untagged vlan all