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

简介:
使用的方法是采用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.

















本文转自loveme2351CTO博客,原文链接:http://blog.51cto.com/loveme23/8021 ,如需转载请自行联系原作者



相关文章
|
7月前
|
网络协议 网络虚拟化
网络协议与攻击模拟-14-DHCP协议-DHCP snooping
网络协议与攻击模拟-14-DHCP协议-DHCP snooping
36 1
|
9天前
|
域名解析 网络协议 Linux
TCP/IP协议及配置、IP地址、子网掩码、网关地址、DNS与DHCP介绍
TCP/IP协议及配置、IP地址、子网掩码、网关地址、DNS与DHCP介绍
|
1月前
|
负载均衡 监控 网络虚拟化
华为配置DHCP Snooping防止DHCP Server仿冒者攻击示例
企业有三台FTP服务器Server1、Server2和Server3,且这三台服务器的硬件性能顺次降低,Server1性能是Server2的两倍、Server2性能是Server3的两倍。通过配置负载均衡,让这三台服务器联合对外提供FTP服务,且三台服务器承载业务的多少与服务器硬件性能的高低匹配。通过配置健康检测实时监控这三台服务器是否可达。
|
6月前
|
网络协议 网络架构
什么是 Wi-Fi IP Assignment 的 Automatic(DHCP) 方式
什么是 Wi-Fi IP Assignment 的 Automatic(DHCP) 方式
46 0
|
6月前
|
安全
DHCP Snooping
DHCP Snooping 是思科交换机上的一种安全特性,用于防止 DHCP 欺骗攻击。DHCP 欺骗攻击是一种网络攻击手段,攻击者通过伪造 DHCP 服务器响应,向客户端分配虚假的 IP 地址、
84 3
|
11月前
|
Linux
DHCP服务的安装以及配置,使主机IP地址自动获取
DHCP服务的安装以及配置,使主机IP地址自动获取
168 0
|
数据建模 开发工具 网络虚拟化
|
网络协议 安全 Linux
|
域名解析 网络协议 测试技术
CCNA-思科网络基础(IP地址 MAC地址 DNS DHCP PING )
CCNA-思科网络基础(IP地址 MAC地址 DNS DHCP PING )
240 0
CCNA-思科网络基础(IP地址 MAC地址 DNS DHCP PING )
|
网络协议 网络安全
RH358管理DHCP和IP地址分配--自动化DHCP配置
RH358管理DHCP和IP地址分配--自动化DHCP配置
209 0
RH358管理DHCP和IP地址分配--自动化DHCP配置