 |
|
 |
| 您现在的位置: 先创网 >> 操作系统 >> 系统技巧 >> 文章正文 |
|
|
| 妙解Windows专业版引起的IP冲突 |
| 来自论坛 |
| 2006-11-9 10:59:29文/佚名 |
|
|
|
|
|
使用PVLAN技术来解决
有很多二层的技术可以防止DHCP-server冲突的,PVLAN就是其中一个运用比较广的技术。
PVLAN私有局域网(private vlan),在PVLAN的概念里,端口有3种类型:Isolated port,Community port, Promiscuous port;它们分别对应不同的vlan类型:Isolated port属于Isolated PVLAN,Community port属于Community PVLAN,而代表一个Private vlan整体的是Primary vlan,前面两类vlan需要和它绑定在一起,同时它还包括Promiscuous port。在Isolated PVLAN中,Isolated port只能和Promiscuous port,彼此之间不能访问;在Community PVLAN中,vlan与vlan之间都不能访问,同一Community vlan的接口可以互相访问,并且所有Community vlan的接口都可以与Promiscuous port进行通信。利用这项技术,我们可以把上连或连接DHCP服务器的接口定义为Promiscuous port,其他接口分配到Isolated vlan里,这样所有接口都只能与上连或DHCP服务器进行通信,即使有一台机器设为DHCP服务器,其他机器也不会与它产生流量,把它做为服务器。
利用这个技术解决DHCP-server冲突的方法有很多,也很灵活,下面介绍一种比较简单的方法,也是用的比较多的:
首先把交换机配置成transparents模式:
switch(config)#vtp mode transparent
顺便可以打开端口的保护功能,它的意思是打开端口保护的端口之间不能访问,但打开保护的端口可以与没有开启此项功能的端口通信,可以根据自己的需求来打开保护功能:
switch(config)#int range f0/124
switch(config-if-range)#switchitchport protected
建立isolated vlan和primary vlan,把isolated vlan定义为primary lan的附属vlan,因为要与primary互相访问:
switch(config)#vlan 14
switch(config-vlan)private-vlan isolated
switch(config)#vlan 44
switch(config-vlan)#private-vlan primary
switch(config-vlan)#private-vlan association 14 上一页 [1] [2] [3] |
|
|
|
|
|
|
 |
|
 |
|
|
|