实验拓扑:
实验要求:
接口全部使用hybrid
pc1和pc2可以与pc3通信但pc1和pc2之间不能通信
实验步骤:
[SW1]
vlan batch 10 20 30
interface Ethernet0/0/1
port hybrid pvid vlan 10
port hybrid untagged vlan 10 30
interface Ethernet0/0/2
port hybrid pvid vlan 20
port hybrid untagged vlan 20 30
interface GigabitEthernet0/0/1
port hybrid untagged vlan 10 20 30
[SW2]
vlan batch 10 20 30
interface Ethernet0/0/1
port hybrid pvid vlan 30
port hybrid untagged vlan 10 20 30
interface GigabitEthernet0/0/1
port hybrid untagged vlan 10 20 30
测试: