职业IT人-IT人生活圈

 找回密码
 成为会员
搜索
查看: 1599|回复: 0

解决IP地址冲突的方法--DHCP SNOOPING

[复制链接]
zlyuanna 发表于 2006-9-30 17:47 | 显示全部楼层 |阅读模式
<span class=\"tpc_content\"><font size=\"2\">使用的方法是采用DHCP方式为用户分配IP,然后限定这些用户只能使用动态IP的方式,如果改成静态IP的方式则不能连接上网络;也就是使用了DHCP SNOOPING功能。<br/>例子:<br/>version 12.1<br/>no service pad<br/>service timestamps debug uptime<br/>service timestamps log uptime<br/>no service password-encryption<br/>service compress-config<br/>!<br/>hostname C4-2_4506<br/>!<br/>enable password xxxxxxx!<br/>clock timezone GMT 8<br/>ip subnet-zero<br/><br/><br/>no ip domain-lookup<br/>!<br/>ip dhcp snooping vlan 180-181 // 对哪些VLAN 进行限制<br/>ip dhcp snooping<br/>ip arp inspection vlan 180-181<br/>ip arp inspection validate src-mac dst-mac ip<br/><br/><br/><br/><br/>errdisable recovery cause udld<br/>errdisable recovery cause bpduguard<br/>errdisable recovery cause security-violation<br/>errdisable recovery cause channel-misconfig<br/>errdisable recovery cause pagp-flap<br/>errdisable recovery cause dtp-flap<br/>errdisable recovery cause link-flap<br/>errdisable recovery cause l2ptguard<br/>errdisable recovery cause psecure-violation<br/>errdisable recovery cause gbic-invalid<br/>errdisable recovery cause dhcp-rate-limit<br/>errdisable recovery cause unicast-flood<br/>errdisable recovery cause vmps<br/>errdisable recovery cause arp-inspection<br/>errdisable recovery interval 30<br/>spanning-tree extend system-id<br/>!<br/>!<br/><br/>interface GigabitEthernet2/1 // 对该端口接入的用户进行限制,可以下联交换机<br/>ip arp inspection limit rate 100<br/>arp timeout 2<br/>ip dhcp snooping limit rate 100<br/>!<br/><br/><br/><br/>interface GigabitEthernet2/2<br/>ip arp inspection limit rate 100<br/>arp timeout 2<br/>ip dhcp snooping limit rate 100<br/>!<br/>interface GigabitEthernet2/3<br/>ip arp inspection limit rate 100<br/>arp timeout 2<br/>ip dhcp snooping limit rate 100<br/>!<br/>interface GigabitEthernet2/4<br/>ip arp inspection limit rate 100<br/>arp timeout 2<br/>ip dhcp snooping limit rate 100</font><br/></span>
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

QQ|手机版|小黑屋|网站帮助|职业IT人-IT人生活圈 ( 粤ICP备12053935号-1 )|网站地图
本站文章版权归原发布者及原出处所有。内容为作者个人观点,并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是信息平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽造成漏登,请及时联系我们,我们将根据著作权人的要求立即更正或者删除有关内容。

GMT+8, 2024-5-7 11:29 , Processed in 0.123513 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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