08-11-2010 07:15 AM - edited 03-06-2019 12:25 PM
Hi,
1) I would like to know if a DHCP server configured on a ME-3750 switch can offer the IP address assign to a VLAN interface if this IP address is not part of an IP DHCP excluded address statement. Similarily, does a router configure as a DHCP server can offer an IP address assigned to it`s interface without the utilization of the DHCP excluded address statement. I would like to know if in a normal DHCP configuration we only have to excluded the manually IP assigned address or we also have to excluded IP address assignted to any routers part of the network.
2) Is there any way to prevent the broadcasting of a DHCP packet to other ports that belongs to the same VLAN if the ME-3750 is configured as a switch in case there could be other DHCP server in the network that could reply to these DHCP request.
Thanks for your help
Stephane
Solved! Go to Solution.
08-17-2010 12:40 PM
Hi Stephane, I hope this helps:
Q:I would like to know if a DHCP server configured on a ME-3750 switch can offer the IP address assign to a VLAN interface if this IP address is not part of an IP DHCP excluded address statement. Similarily, does a router configure as a DHCP server can offer an IP address assigned to it`s interface without the utilization of the DHCP excluded address statement
A: We will never send out an offer for an IP address that is in use. Let me expand on this. The DHCP server (in this case your ME-3570) will try to ping this address it is going to attempt to offer. If it recieves a reply, it won't use it. Now in your example...will we ping our own address to see if something uses it...or will be just bypass this as we know we already have it in use...I'm not sure, but end result, IP won't be assigned.
Normally you want to exclued static IP addresses you have assigned to any devices that are in your DHCP server scope. While it helps speed up assigning addresses (as you won't be pinging things that you KNOW exist), it will also prevent issues that could come up if the staticly assigned device is shutdown and we are trying to assign out that address.
Q) Is there any way to prevent the broadcasting of a DHCP packet to other ports that belongs to the same VLAN if the ME-3750 is configured as a switch in case there could be other DHCP server in the network that could reply to these DHCP request.
A) Not entirly. DHCP discover and request will almost always be broadcast (except for situations with renewing addresses etc.). If you wanted, you could use DHCP snooping which will only send the server's response to the port where the device that's the packet is meant for...kind of an added "bonus" of DHCP snooping. Typically by design DHCP transactions should be handled as broadcasts.
08-17-2010 12:40 PM
Hi Stephane, I hope this helps:
Q:I would like to know if a DHCP server configured on a ME-3750 switch can offer the IP address assign to a VLAN interface if this IP address is not part of an IP DHCP excluded address statement. Similarily, does a router configure as a DHCP server can offer an IP address assigned to it`s interface without the utilization of the DHCP excluded address statement
A: We will never send out an offer for an IP address that is in use. Let me expand on this. The DHCP server (in this case your ME-3570) will try to ping this address it is going to attempt to offer. If it recieves a reply, it won't use it. Now in your example...will we ping our own address to see if something uses it...or will be just bypass this as we know we already have it in use...I'm not sure, but end result, IP won't be assigned.
Normally you want to exclued static IP addresses you have assigned to any devices that are in your DHCP server scope. While it helps speed up assigning addresses (as you won't be pinging things that you KNOW exist), it will also prevent issues that could come up if the staticly assigned device is shutdown and we are trying to assign out that address.
Q) Is there any way to prevent the broadcasting of a DHCP packet to other ports that belongs to the same VLAN if the ME-3750 is configured as a switch in case there could be other DHCP server in the network that could reply to these DHCP request.
A) Not entirly. DHCP discover and request will almost always be broadcast (except for situations with renewing addresses etc.). If you wanted, you could use DHCP snooping which will only send the server's response to the port where the device that's the packet is meant for...kind of an added "bonus" of DHCP snooping. Typically by design DHCP transactions should be handled as broadcasts.
08-18-2010 08:45 PM
Hi Chad,
This really helps, understand now that the DHCP server will never offer an IP addresses that is already assigned in the network even if this address is part of the scope.
Did not know about DHCP snooping, could I block DHCP offering from on specific port by configuring this port as untrusted?
Thanks again for your help
Stephane
08-19-2010 10:48 AM
So for DHCP snooping configuring a port as untrusted will only prevent 'server side' DHCP messages that come into that port from being forwarded. So we wouldn't allow an Offer or ACK that is received on an untrusted port to be passed through the switch. It won't prevent your switch from assigning out an address to devices off that port.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide