vlan之间Hybrid端口配置-LMLPHP

要求:1.PC1和PC2不能互相访问,但是都能访问PC3

SW1配置:vlan batch 10 20 100

interface Ethernet0/0/1                       
 port hybrid pvid vlan 10
 port hybrid untagged vlan 10 100
#
interface Ethernet0/0/2
 port hybrid pvid vlan 20
 port hybrid untagged vlan 20 100
#
interface Ethernet0/0/3
 port hybrid tagged vlan 10 20 100

SW2配置:vlan batch 10 20 100

interface Ethernet0/0/1
 port hybrid pvid vlan 100
 port hybrid untagged vlan 10 20 100
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
 port hybrid tagged vlan 10 20 100

注:PC1地址:192.168.1.1/24  ;PC2192.168.1.2/24; PC3192.168.1.3/24

05-26 13:20