通过命令实现:
vlan 10主机与vlan 30主机互通
vlan 20主机与vlan 30 主机互通
vlan 10主机与vlan 20 主机不通
配置命令
SW1:
system-view
vlan batch 10 20 30
interface Ethernet0/0/1
port link-type hybrid
port hybrid untagged vlan 10 30
port hybrid pvid vlan 10
quit
interface Ethernet0/0/2
port link-type hybrid
port hybrid untagged vlan 20 30
port hybrid pvid vlan 20
quit
interface GigabitEthernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 20 30
quit
SW2:
system-view
vlan batch 10 20 30
interface Ethernet0/0/1
port link-type hybrid
port hybrid untagged vlan 10 20 30
port hybrid pvid vlan 30
quit
interface GigabitEthernet0/0/1
port link-type hybrid
port hybrid tagged vlan 10 20 30
quit