[Cisco] DHCP snooping Test

Source: Internet
Author: User


test Environment: a dhcp Server that has DHCP configured  , one Cisco switch (iOS version: 12.4), two PCs.

topology Diagram for illustration:1-1.

Test Purpose:Cisco switches turn on DHCP  snooping function, all default ports are required for DHCP Server and PC corresponding port setting DHCP  snooing Trust.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/91/0A/wKioL1j0Ex3RDobaAABPFxoY4A4449.jpg-wh_500x0-wm_ 3-wmp_4-s_3429285176.jpg "title=" figure: 1-1 "alt=" Wkiol1j0ex3rdobaaabpfxoy4a4449.jpg-wh_50 "/>

Fig.:1-1

Test steps:

1. enable D on SwitchHCPsnooping  , the VLAN1 join to snooping, other interfaces G0/1,f0/1,f0/2 do not do IP  DHCP snooping Trust configuration, view two PCs can getto the correctof theIPaddress.

S witch:

Switch #config T

switch (config) # IP DHCP snooping // turn on DHCP snooping

switch (config) #ip DHCP snooping VLAN 1 // the VLAN 1 join to DHCP snooping

Both PCs cannot obtain an IP address.

2. enable D on SwitchHCPsnooping  , the VLAN1 join to snooping, other interface G0/1 do IP  DHCP snooping Trust configuration, view Two unitsPCcan I get the the right IPaddress.

S witch:

Switch #config T

switch (config) # IP DHCP snooping // turn on DHCP snooping

switch (config) #ip DHCP snooping VLAN 1 // the VLAN 1 join to DHCP snooping

switch (config) # int Range G0/1

Switch (config) #ip DHCP snooping Trust

Both PCs cannot obtain an IP address.

3. enable D on SwitchHCPsnooping  , the VLAN1 added to snooping, other interfaces G0/1,f0/1 ,F0/2 on do IP  DHCP snooping Trust configuration, view Two unitsPCcan I get the the right IPaddress.

S witch:

Switch #config T

switch (config) # IP DHCP snooping // turn on DHCP snooping

switch (config) #ip DHCP snooping VLAN 1 // the VLAN 1 join to DHCP snooping

switch (config) # int range G0/1, F0/1–2

Switch (config) #ip DHCP snooping Trust

Both PCs can obtain the IP address.

Summary: need to be in the DHCP Server the switch port corresponding to the PC is set to DHCP snooping Trustso that the PC Get the right IP address.


This article is from the "tommyking" blog, make sure to keep this source http://tommyking.blog.51cto.com/10481841/1916537

[Cisco] DHCP snooping test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.