开放原子开发者工作坊 Private VLAN simulation

Private VLAN simulation

Isolated: Communicates with only promiscuous ports.Community: Communicateswith the other members of the same community VLAN and all promiscuous ports.Promiscuous: Communicates with all oth...

Isolated: Communicates with only promiscuous ports.

Community: Communicates with the other members of the same community VLAN and all promiscuous ports.

Promiscuous: Communicates with all other ports in the same primary VLAN.

wKiom1TKYFii-s-GAAEftL2vnLw429.jpg

Description:

R5:  Gateway  10.0.0.1

 

R1:  simulate Switch1.  

ConfigureFa0/9 as Promiscuous Port

                  Fa0/1-2 as Community Port

                  Fa0/3 as Isolated Port

 

R2,R3,R4 simulate Switch2, Switch3, Switch4

 

Purpose:

xpwin7-1属于相同团体vlan,可相互通信。

win7-2属于隔离vlan,只能和混杂端口Fa0/9通信。

所有主机可以和网关(R5 Fa0/0)通信。


vlanVlan 100 团体vlanvlan 170     隔离vlanvlan 200 

Switch1(config)# vtp mode transparent

 

Switch1(config)# vlan 170

Switch1(config-vlan)# private-vlan community

 

Switch1(config)# vlan 200

Switch1(config-vlan)# private-vlan isolated

 

Switch1(config)# vlan 100

Switch1(config-vlan)# private-vlan primary

Switch1(config-vlan)# private-vlan association 170 200  定义vlan 170 200vlan 100的辅助vlan

 

Switch1(config)# interface Fa0/9

Switch1(config-if)# switchport mode private-vlan promiscuous

Switch1(config-if)# switchport private-vlan mapping 100 170 200 接收100 170 200的流量

 

Switch1(config)# interface range Fa0/1 - 2

Switch1(config-if)# switchport mode private-vlan host

Switch1(config-if)# switchport private-vlan host-association 100 170

 

Switch1(config)# interface Fa0/3

Switch1(config-if)# switchport mode private-vlan host

Switch1(config-if)# switchport private-vlan host-association 100 200


转载于:https://blog.51cto.com/babylater/1609823

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐

  • 浏览量 73
  • 收藏 0
  • 0

所有评论(0)

查看更多评论 
已为社区贡献10条内容