如图:
要求PC1和PC2通信隔离;
PC3能和PC2,PC3通信
交换机LSW1配置
vlan batch 10 20 30
interface ethernet0/0/2
port hybrid pvid vlan 10
port hybrid untagged vlan 10 30
interface ethernet 0/0/1
port hybrid tagged vlan 10 30
交换机LSW2配置
vlan 10 20 30
interface Ethernet0/0/2
port hybrid pvid vlan 20
port hybrid untagged vlan 20 30
interface Ethernet0/0/3
port hybrid pvid vlan 30
port hybrid untagged vlan 10 20 30
interface ethernet0/0/1
port hybrid tagged vlan 10 30