设为首页收藏本站language 语言切换
查看: 2141|回复: 3
收起左侧

[已解决] PVLAN实验做不了

[复制链接]
发表于 2012-12-20 16:34:10 | 显示全部楼层 |阅读模式
未命名.bmp 做一个PVLAN实验,总是显示:
show int f0/18 switchport
Name: Fa0/18Switchport: Enabled
Administrative Mode: private-vlan promiscuous
Operational Mode: down
这是为什么?恳请解答。以下是我的配置

实验要求:
主Vlan为Vlan1,子网:10.10.10.0/24
主机A、B、C为一组,要能够互相通信,并且可以和网关、计费服务器Z进行通信,但不能与主Vlan1里的其余主机通信;
主机D、E为一组,他们之间不能互相通信,但是可以和网关、计费服务器Z进行通信,同样也不能与主Vlan1里其余主机通信;

配置:

创建主 Vlan1
AlanSwitch(config)# vlan 1
AlanSwitch(config-vlan)# private-vlan  primary
创建团体辅Vlan200:
AlanSwitch(config)# vlan 200
AlanSwitch(config-vlan)#private-vlan   community
创建隔离辅Vlan300:
AlanSwitch(config)#vlan 300
AlanSwitch(config-vlan)# private-vlan  isolated
将主Vlan与两个辅Vlan进行关联:
AlanSwitch(config)#  vlan 1
AlanSwitch(config-vlan)# private-vlan  association  200,300

对于团体Vlan200的各接口们(主机A/B/C):
AlanSwitch(config)#int range f0 /1 - 3
AlanSwitch(config-if)#switchport mode private-vlan host
AlanSwitch(config-if) #switchport  private-vlan host-association 1 200
AlanSwitch(config-if)#no shut
对于隔离Vlan300的各接口们(主机D/E):
AlanSwitch(config)#int range f0 /4 - 5
AlanSwitch(config-if)#switchport mode private-vlan host
AlanSwitch(config-if)# switchport  private-vlan host-association 1 300
AlanSwitch(config-if)#no shut

对于Vlan接口SVI:
AlanSwitch(config)#int vlan 1
AlanSwitch(config-vlan)#ip add 192.168.17.254 255.255.255.0
AlanSwitch(config-vlan)# private-vlan mapping 200,300
AlanSwitch(config-vlan)#no  shut
对于混杂主机接口(如图示的计费服务器Z):
AlanSwitch(config)#int f0/17
AlanSwitch(config-if)#switchport mode private-vlan promiscuous
AlanSwitch(config-if)# switchport private-vlan mapping 1 200,300
AlanSwitch(config-if)#no shut

 楼主| 发表于 2012-12-20 16:36:00 | 显示全部楼层
而且各端口都显示逻辑关闭,这是为什么
沙发 2012-12-20 16:36:00 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-20 16:55:51 | 显示全部楼层
看帖看完了至少要顶一下,还可以加入到淘帖哦!
板凳 2012-12-20 16:55:51 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-12-21 11:49:19 | 显示全部楼层
知道了,不用默认的组1即可了。
地板 2012-12-21 11:49:19 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-26 00:31 , Processed in 0.934424 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表