实现:
VLA10 vlan20 vlan30都可以访问vlan100
vlan10--vlan20 ok
vlan20--vlan30 ok
vlan10-vlan30 no不能访问
所有端口的hybrd属性配置
【一】接口没有untagged里面没有自己的vlan
g0/0/1口配置:
g0/0/2口配置:
3/4/10口都是这么配置的
pc1 ping pc2 :
全网都ping不通
【二】将自己的vlan加入untagged中
vlan batch 10 20 30 100
#
cluster enable
interface GigabitEthernet0/0/1
port hybrid pvid vlan 10
port hybrid untagged vlan 10 20 100
#
interface GigabitEthernet0/0/2
port hybrid pvid vlan 20
port hybrid untagged vlan 10 20 30 100
#
interface GigabitEthernet0/0/3
port hybrid pvid vlan 30
port hybrid untagged vlan 20 30 100
#
interface GigabitEthernet0/0/4
port hybrid pvid vlan 10
port hybrid untagged vlan 10 20 100
#
interface GigabitEthernet0/0/10
port hybrid pvid vlan 100
port hybrid untagged vlan 10 20 30 100
#
实现目标