公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(50元/站),

点击这里在线咨询客服
新站提交
  • 网站:51998
  • 待审:31
  • 小程序:12
  • 文章:1030137
  • 会员:747

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

  例子:

  version 12.1

  no service pad

  service timestamps debug uptime

  service timestamps log uptime

  no service password-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--

 

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

  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.

分享到:
标签:冲突 地址 IP
用户无头像

网友整理

注册时间:

网站:5 个   小程序:0 个  文章:12 篇

  • 51998

    网站

  • 12

    小程序

  • 1030137

    文章

  • 747

    会员

赶快注册账号,推广您的网站吧!
最新入驻小程序

数独大挑战2018-06-03

数独一种数学游戏,玩家需要根据9

答题星2018-06-03

您可以通过答题星轻松地创建试卷

全阶人生考试2018-06-03

各种考试题,题库,初中,高中,大学四六

运动步数有氧达人2018-06-03

记录运动步数,积累氧气值。还可偷

每日养生app2018-06-03

每日养生,天天健康

体育训练成绩评定2018-06-03

通用课目体育训练成绩评定