使用的方法是采用DHCP方式为用户分配IP,然后限定这些用户只能使用动态IP的方式,如果改成静态IP的方式则不能连接上网络;也就是使用了DHCP SNOOPING功能。
例子:
version 12.1
no service pad

service timestamps debug uptime
service timestamps log uptime
no service p assword-encryption
service compress-config
!
hostname C4-2_4506
!
enable password xxxxxxx!
clock timezone GMT 8
ip subnet-zero

no ip domain-lookup
!
ip dhcp snooping vlan 180-181 // 对哪些VLAN 进行限制
ip dhcp snooping
ip arp inspection vlan 180-181
ip arp inspection validate src-mac dst-mac ip

errdisable recovery cause udld
errdisable recovery cause bpduguard
errdisable recovery cause security-violation
errdisable recovery cause channel-misconfig
errdisable recovery cause pagp-flap
errdisable recovery cause dtp-flap
errdisable recovery cause link-flap
errdisable recovery cause l2ptguard
errdisable recovery cause psecure-violation
errdisable recovery cause gbic-invalid
errdisable recovery cause dhcp-rate-limit
errdisable recovery cause unicast-flood
errdisable recovery cause vmps
errdisable recovery cause arp-inspection
errdisable recovery interval 30
spanning-tree extend system-id
!
!

interface GigabitEthernet2/1 // 对该端口接入的用户进行限制,可以下联交换机
ip arp inspection limit rate 100
arp timeout 2
ip dhcp snooping limit rate 100
!

interface GigabitEthernet2/2
ip arp inspection limit rate 100
arp timeout 2
ip dhcp snooping limit rate 100
!
interface GigabitEthernet2/3
ip arp inspection limit rate 100
arp timeout 2
ip dhcp snooping limit rate 100
!
interface GigabitEthernet2/4
ip arp inspection limit rate 100
arp timeout 2
ip dhcp snooping limit rate 100
--More--

编者注:对不需要明确地址的所有人的时候是一个很好的解决办法。另外,可以查看[url]www.cisco.com[/url]的

IP Source Guard
Similar to DHCP snooping, this feature is enabled on a DHCP snooping untrusted Layer 2 port. Initially, all IP traffic on the port is blocked except for DHCP packets that are captured by the DHCP snooping process. When a client receives a valid IP address from the DHCP server, or when a static IP source binding is configured by the user, a per-port and VLAN Access Control List (PACL) is installed on the port. This process restricts the client IP traffic to those source IP addresses configured in the binding; any IP traffic with a source IP address other than that in the IP source binding will be filtered out. This filtering limits a host's ability to attack the network by claiming neighbor host's IP address.

转载于:https://blog.51cto.com/loveme23/8021

解决IP地址冲突的方法--DHCP SNOOPING相关推荐

  1. 如何修复和解决 IP 地址冲突

    您的网络是否面临 IP 分配错误,或者网络中的某些用户抱怨网络连接丢失?好消息是您的主机或服务器没有运行病毒;相反,它遇到了导致网络连接问题的IP 地址冲突,您可以在几分钟内修复它. Windows ...

  2. 什么是IP地址冲突?如何解决IP地址冲突?

    什么是IP地址冲突: 当俩个通信终端被分配俩个相同的IP地址时,就会发生IP地址冲突.终端可以是个人电脑,移动设备以及任何的单独网络适配器(网卡).IP地址冲突发生在俩个终端之间,会致使其中一个终端或 ...

  3. IP地址冲突?如何解决IP地址冲突?

    你有没有遇到过这种情况:你的设备显示与IP地址冲突有关的错误信息?要是真出现这种情况,你可能发觉连接不上互联网,或者是由于根本无法访问互联网,或者是连接因故无法使用. AD: 你有没有遇到过这种情况: ...

  4. 快速解决IP地址冲突问题的方法

    在Linux服务器管理中,我们经常会遇到IP地址冲突的问题.这种情况下,服务器无法正常工作,给我们带来了极大的困扰.通常情况下,手动排查网络中的每一个设备并逐一检查其IP地址被占用的情况是非常繁琐的. ...

  5. 如何拼通网络ip地址_如何解决IP地址冲突

    很多朋友提到,如何防止IP地址冲突故障?这个在实际项目中经常会遇到,网络用户如果没有按照规定设置IP地址的话,IP地址冲突现象就不可避免,一旦这种现象频繁发生,不但会影响上网效率,而且也不利于局域网网 ...

  6. 在Linux中发现IP地址冲突的方法

    Linux下出现IP冲突,是不会像Windows那样,在右下角弹出冲突提示的.博主就出过一次糗,记得当时是在VM虚拟机里面安装了4个redhat,测试LVS集群.结果发现其中一台RealServer老 ...

  7. 51cto 检测ip地址冲突_在Linux中发现IP地址冲突的方法

    IP冲突,是不会像Windows那样,在右下角弹出冲突提示的.博主就出过一次糗,记得当时是在VM虚拟机里面安装了4个 4个Redhat都是VM克隆出来的.完全一致的 原来,是那台频繁掉线的虚拟系统和其 ...

  8. 解决IP地址冲突的问题

    当计算机使用过程中出现"计算机探测到IP地址与您的网卡物理地址发生冲突"的错误时,您就无法使用网络.此时,您可以做如下操作解决问题: 1 如果您使用的计算机的操作系统是:windo ...

  9. 如何有效地解决校园网络IP地址冲突问题

    随着高校数字化校园网络的广泛应用,校内机器增多,无线网络的覆盖,相应的IP地址分配也在不断增多,IP地址冲突现象与日俱增,在一定程度上影响了网络的正常运行. <计算机科学与应用>期刊上有篇 ...

最新文章

  1. 2021腾讯数字生态大会:腾讯安全聚焦安全共建,护航数字经济发展
  2. 博客园写代码发家的大牛
  3. VLAN系列二: 实现VLAN的机制
  4. oracle查询ora03114,求教:ora-03114错误从哪里排查?
  5. 从链接上获取参数值, location.href上获取参数
  6. Python 分析 10 万条弹幕告诉你:《古董局中局2》到底好不好看?
  7. Mongo 与 SQL 操作对应介绍
  8. 如何用PS软件取得色块的颜色值?
  9. android手机抓包工具需root,android7及以上版本手机抓包
  10. 正确区分CRM、OA、协同办公平台
  11. sigar 监控服务器硬件信息
  12. 赛微微电子通过注册:拟募资8亿 年营收3.4亿
  13. ajax 读服务器文件,使用AJAX读取本地文件
  14. Java语言基础03-标识符、关键字、字面值、变量、数据类型
  15. ffmpeg php 抠像_FFMPEG批量绿幕抠像BAT脚本实现
  16. 百词斩个人中心功能测试
  17. 给父母的礼物!一键让Android变身老人机
  18. Ac4GlcNAz,98924-81-3,N-乙酰葡糖胺叠氮基,可以进行糖化学修饰
  19. vue系列教程之微商城项目|项目创建
  20. 初值对牛顿迭代法的影响

热门文章

  1. win11未建立以太网怎么办 windows11未建立以太网的解决方法
  2. win11怎么退回win7 Windows11退回win7的步骤方法
  3. dwa轨迹规划,局部路径规划
  4. Spring容器中 singleton 单例、 prototype多例
  5. python切片迭代_Python高级特性 切片 迭代解析
  6. 搜集访问网页历史记录软件_微软宣布OneDrive版本历史记录功能抵达Win10和macOS客户端版...
  7. 2089. 找出数组排序后的目标下标
  8. 用户输入年份,输出当前年份2月份的天数
  9. IDEA Unmapped Spring configuration files found.
  10. Exchange Server 2007邮箱服务器失败规划和恢复