XpressLearn Home

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Configure DHCP snooping

iDHCP Snooping can be very useful when securing a network from unauthorized DHCP servers on a network. These unwanted servers can appear in many different ways:

In order to prevent IP address assignments from these potential sources, an option in each access switch can be configured to block all DHCP messages from ‘untrusted’ ports. The only trusted port(s) configured is the one connecting a valid/authorized DHCP server.

Configure DHCP snooping on all end-user access switch ports in vlan5:

ClientSwitch1(config)# ip dhcp snooping
ClientSwitch1(config)# ip dhcp snooping vlan 5
ClientSwitch1(config)# interface gigabitethernet0/1
ClientSwitch1(config-if)#no ip dhcp snooping trust

Note: Snooping only gets enabled for the vlans defined in the global configuration, regardless of the individual port setting. Make sure to define all the vlans contained on the switch in which protection is desired.

Configure the port a valid DHCP server is connected to:

ServerSwitch(config)# ip dhcp snooping
ServerSwitch(config)# ip dhcp snooping vlan 5
ServerSwitch(config)# interface gigabitethernet0/24
ServerSwitch(config-if)# ip dhcp snooping trust

By configuring an access port with the ip dhcp snooping trust statement, all DHCP traffic is allowed to pass through the port.

 

Author Info:

 
Scott is the Founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs Xpresslearn.
 

Scott has been working in the networking field for 13 years and has experience in all the areas: Lan, Wan, Security, Optimization, High Availability, Wireless, and others.

When he is not working on further development of Xpresslearn, Scott loves spending time with his family and has such hobbies as Camping, Fishing, Cars, and Woodworking.

Related Posts:


Leave a Reply