PVLAN(私有vlan)+路由实验
做本实验的原因是因为我自己对私有vlan的上联到本地网络外的配置不是很清楚,以往能在二层将私有vlan配置正确使所有的辅助vlan都能访问到网关,但是不知道能否通过网关访问本地网络外,特做此实验。
拓扑图:
SW1:
vlan 10
private-vlan primary
private-vlan association 20,30
!
vlan 20
private-vlan community
!
vlan 30
private-vlan isolated
!
interface Ethernet0/0
switchport private-vlan host-association 10 20
switchport mode private-vlan host
!
interface Ethernet0/1
switchport private-vlan host-association 10 20
switchport mode private-vlan host
!
interface Ethernet0/2
switchport private-vlan host-association 10 30
swi