<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IPCPU——网络之路 &#187; 端口隔离</title>
	<atom:link href="http://www.ipcpu.com/tag/%e7%ab%af%e5%8f%a3%e9%9a%94%e7%a6%bb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ipcpu.com</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 15:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Cisco PVLAN的配置</title>
		<link>http://www.ipcpu.com/2010/05/cisco-pvlan/</link>
		<comments>http://www.ipcpu.com/2010/05/cisco-pvlan/#comments</comments>
		<pubDate>Sun, 09 May 2010 10:05:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[pVLAN]]></category>
		<category><![CDATA[端口隔离]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.ipcpu.com/?p=532</guid>
		<description><![CDATA[PVLAN即私有VLAN（Private VLAN），PVLAN采用两层VLAN隔离技术，只有上层VLAN全局可见，下层VLAN相互隔离。 每个pVLAN 包含2种VLAN ：主VLAN（primary VLAN）和辅助VLAN（Secondary VLAN）。辅助VLAN（Secondary VLAN）包含两种类型：隔离VLAN（isolated VLAN）和团体VLAN（community VLAN）。 pVLAN中的两种接口类型：处在pVLAN中的交换机物理端口，有两种接口类型。 ①混杂端口（Promiscuous Port） ②主机端口（Host Port） Catalyst3560， 45，    65系列支持  配置pVLAN的实例：       SwitchA(config)#vlan 100       SwitchA(config-vlan)#private-vlan primary                                  !设置主VLAN 100                      SwitchA(config)#vlan 200       SwitchA(config-vlan)#private-vlan community       !设置团体VLAN 200                                           SwitchA(config)#vlan 300       SwitchA(config-vlan)#private-vlan isolated       !设置隔离VLAN 300                                                SwitchA(config)#vlan 100       SwitchA(config-vlan)#private-vlan association 200,300        [...]]]></description>
			<content:encoded><![CDATA[<p>PVLAN即私有VLAN（Private VLAN），PVLAN采用两层VLAN隔离技术，只有上层VLAN全局可见，下层VLAN相互隔离。</p>
<p>每个pVLAN 包含2种VLAN ：主VLAN（primary VLAN）和辅助VLAN（Secondary VLAN）。辅助VLAN（Secondary VLAN）包含两种类型：隔离VLAN（isolated VLAN）和团体VLAN（community VLAN）。<br />
pVLAN中的两种接口类型：处在pVLAN中的交换机物理端口，有两种接口类型。<br />
①混杂端口（Promiscuous Port）<br />
②主机端口（Host Port）<br />
<strong><br />
Catalyst3560， 45，    65系列支持</strong></p>
<p><strong> 配置pVLAN的实例：</strong><br />
     <span style="color: #008000;"> SwitchA(config)#vlan 100<br />
      SwitchA(config-vlan)#private-vlan primary                           <br />
      !设置主VLAN 100<br />
              <br />
      SwitchA(config)#vlan 200<br />
      SwitchA(config-vlan)#private-vlan community <br />
     !设置团体VLAN 200                                    </span></p>
<p>      SwitchA(config)#vlan 300<br />
      SwitchA(config-vlan)#private-vlan isolated <br />
     !设置隔离VLAN 300                                         </p>
<p>      SwitchA(config)#vlan 100<br />
      SwitchA(config-vlan)#private-vlan association 200,300  <br />
      !将辅助VLAN关联到主VLAN                       </p>
<p><span style="color: #008000;">     <span id="more-532"></span><br />
      SwitchA(config)#interface vlan 100<br />
      SwitchA(config-if)#private-vlan mapping add 200,300                 <br />
      !将辅助VLAN映射到主VLAN接口，允许pVLAN入口流量的三层交换     <br />
     <br />
      SwitchA(config)# interface fastethernet 0/2<br />
      SwitchA(config-if)#switchport mode private-vlan host<br />
      SwitchA(config-if)#switchport private-vlan host-association 100 200<br />
      !2号口划入团体VLAN 200</span></p>
<p>      SwitchA(config)# interface fastethernet 0/3<br />
      SwitchA(config-if)#switchport mode private-vlan host<br />
      SwitchA(config-if)#switchport private-vlan host-association 100 300<br />
      !3号口划入隔离VLAN 300</p>
<p>      SwitchA(config)# interface fastethernet 0/1<br />
      SwitchA(config-if)#switchport mode private-vlan promiscuous<br />
      SwitchA(config-if)#switchport private-vlan mapping 100 add 200-300<br />
      !1号口杂合模式</p>
<p><strong>CatOS的配置</strong><br />
  <span style="color: #008000;">    set vlan 100 pvlan-type primary<br />
      set vlan 200 pvlan-type community     <br />
      set vlan 300 pvlan-type isolated     <br />
      set pvlan 100 200 5/1<br />
      set pvlan 100 300 5/2<br />
      set pvlan mapping 100,200 15/1<br />
      set pvlan mapping 100,300 15/1    //指定混杂模式的接口</span></p>
<p><strong>参考资料：<br />
</strong><a href="http://hi.baidu.com/n6630/blog/item/c6e6974cb3d362fdd62afc64.html">http://hi.baidu.com/n6630/blog/item/c6e6974cb3d362fdd62afc64.html</a><br />
<a href="http://yixuelian.blog.51cto.com/133058/56824">http://yixuelian.blog.51cto.com/133058/56824</a><br />
<a href="http://hi.baidu.com/coghost/blog/item/4f4dfb22e3bdd5a24723e83e.html">http://hi.baidu.com/coghost/blog/item/4f4dfb22e3bdd5a24723e83e.html</a><br />
<a href="http://baike.baidu.com/view/1065646.htm">http://baike.baidu.com/view/1065646.htm</a><br />
<strong>关于端口隔离</strong></p>
<p><span style="color: #008000;">Switch(config)# interface gigabitethernet1/0/2<br />
Switch(config-if)# switchport protected</span></p>
<p>Catalyst 29 35系列支持<br />
网关 及共享口 不敲protected 即可通信</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ipcpu.com/2010/05/cisco-pvlan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

