免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
思科private vlan 配置private VLAN 里有3种port isolated,community ,promiscuous。private VLAN 有3种 :primary VLAN , isolated VLAN , community VLAN。配置命令分别是:vlan 901private-vlan isolatedvlan 902private-vlan communityvlan 900private-vlan primaryprimary VLAN和他所关联的isolated VLAN community VLAN都可以通信.isolated VLAN 和community VLAN都属于secondary VLAN,他们之间的区别是:同属于一个isolated VLAN的主机不可以互相通信,同属于一个community VLAN的主机可以互相通信。但他们都可以和和所关联的primary VLAN通信.配置primary VLAN和secondary VLAN关联的命令是:vlan 900private-vlan primaryprivate-vlan association 901,902注意一个primary VLAN只可以关联一个isolated VLAN + 多个community VLAN把端口放进isolated VLAN 或者community VLAN的命令是interface GigabitEthernet4/11switchportswitchport private-vlan host-association 900 901switchport mode private-vlan host/因为901是isolated VLAN,g4/11现在是一个isolated portinterface GigabitEthernet4/12switchportswitchport private-vlan host-association 900 902switchport mode private-vlan host/因为902是community VLAN,g4/12现在是一个community port注意在private vlan里 switchport access vlan xxx 这一句已经不起作用了。起作用的是 switchport private-vlan host-association 900 902这一句,这一句把端口放入primary vlan 900和secondary vlan 902。把端口放进primary VLAN 的命令是:interface GigabitEthernet4/14switchportswitchport private-vlan mapping 900 901,902switchport mode private-vlan promiscuous/g4/14现在是一个promiscuous port同样,switchport access vlan xxx 已经不起作用了,起作用的是 switchport private-vlan mapping 900 901,902,这一句把端口放入primary vlan 900和secondary vlan 901,902。注意这里promiscuous port可以属于多个secondary VLAN,但只可以属于一个primary VLAN,就好像普通的access port只能属于一个vlan是一样的。在配置vlan的3层地址的时候,只可以配置在primary VLAN上,从这里也可以看出,primary VLAN在某些地方是和普通vlan一样工作的,secondary VLAN则更特殊一些。下面看两种方法来实现让4/11和4/12可以和4/14通信,但4/11和4/12互相不可以通信方法一,用isolated VLAN:vlan 901private-vlan isolatedvlan 900private-vlan primaryprivate-vlan association 901interface GigabitEthernet4/11switchportswitchport private-vlan host-association 900 901switchport mode private-vlan hostinterface GigabitEthernet4/12switchportswitchport private-vlan host-association 900 901switchport mode private-vlan hostinterface GigabitEthernet4/14switchportswitchport private-vlan mapping 900 901switchport mode private-vlan promiscuous方法二,用community VLANvlan 901private-vlan communityvlan 902private-vlan communityvlan 900private-vlan primaryprivate-vlan association 901,902interface GigabitEthernet4/11switchportswitchport private-vlan host-association 900 901switchport mode private-vlan hostinterface GigabitEthernet4/12switchportswitchport private-vlan host-association 900 902switchport mode private-vlan hostinterface GigabitEthernet4/14switchportswitchport private-vlan mapping 900 901,902switchport mode private-vlan promiscuous现在实现了4/11和4/12的隔离,和4/11、4/12都能和4/13通信,我们可以1.把需要2层隔离的主机放到同一个isolated VLAN,或者不同的community VLAN。2.把需要2层通信的主机放到同一个community VLAN。3.公共的服务器或者上联端口放到primary VLAN,和本primaryVLAN和所有secondaryVLAN里的主机是2层连通的。4.在primary VLAN上来看,所有的主机在同一个primary VLAN里,在secondary VLAN里的主机互相访问的时候,才和private VLAN的配置有关。5.网关可以是primary VLAN上配一个3层地址或者在primary VLAN上连一个路由器。所有主机在3层都是在primary VLAN的这个网段里,所以
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 租房合同中水电押金(3篇)
- 2025年建筑工程外墙保温材料采购与销售合同大全
- 2025美容院转让合同
- 2025网络设备采购合同书
- 2025标准存量住宅买卖中介服务合同
- 2025汽车租赁(出租)合同
- 艺术家工作室与住宅设计
- 水厂员工个人工作总结(3篇)
- 中国铁塔2025秋季校园招聘笔试历年参考题库附带答案详解
- 如何讲好人物介绍
- 养老院福利院消防安全培训课件
- 第十八届“振兴杯”(学生组)机床装调维修工赛项考试题库汇总(附答案)
- 花生脱壳机结构设计
- 部编版九年级历史下册第10课-《凡尔赛条约》和《九国公约》优质课件
- 供应商申请表
- GB/T 13530-2023乙氧基化烷基硫酸钠试验方法
- 建筑节能分部工程质量验收记录
- GA/T 2008-2022法庭科学枪支检验技术规范
- 幼儿园幼小衔接拼音全教案
- FZ/T 13012-2014普梳涤与棉混纺本色布
- 500kV变电站事故油池施工方案
评论
0/150
提交评论