Jump to content

Excluding adresses from DHCP pool, why?

spree

Hello!

 

I am setting up a topology which looks like this: 

image.png.87c083fcac6be00083ec5a57cb4a08a9.png

 

 

R1 default gateway is 192.168.10.1. 255.255.255.0

From my understanding I need to exclude the following adresses from the pool of DHCP:

192.168.10.1 (the default gateway)

And the first adress, 192.168.10.0 

And the last, 192.168.10.255

 

Why is it important to exclude these adresses? If the client (PC1) were to be assigned 192.168.10.0 (network-ID) what would happen?

Or the 192.168.10.255 broadcast?

 

Thanks!

Link to comment
Share on other sites

Link to post
Share on other sites

Yes you got to exclude the gateway address from dhcp pool.

Since the gateway doesn't use dhcp for it's ip, you should start from .2 and so on.

Ryzen 5700g @ 4.4ghz all cores | Asrock B550M Steel Legend | 3060 | 2x 16gb Micron E 2666 @ 4200mhz cl16 | 500gb WD SN750 | 12 TB HDD | Deepcool Gammax 400 w/ 2 delta 4000rpm push pull | Antec Neo Eco Zen 500w

Link to comment
Share on other sites

Link to post
Share on other sites

The DHCP server in Cisco Routers doesn’t do any checks for whether an IP is in use, it only uses its own leases list. It doesn’t even check if the router’s IP is in the range.

 

Many alternative DHCP servers do an ARP and/or Ping check on IPs before it offers one. And many DHCP clients (including all iOS devices) will do the same before accepting an IP offer. But you shouldn’t rely on this, and in Cisco Routers you should always put in an exclude for any static IPs in use, including the router itself.

 

I don’t believe you need to put in an exclude for the network and broadcast IPs, I’ve never seen it in production.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
Share on other sites

Link to post
Share on other sites

255 is broadcast address. https://en.wikipedia.org/wiki/Broadcast_address

0 is network identifier.  If you assign to a client the client OS local network stack will not know what subnet it is on and will not know how to forward, L2 (ARP -> Ehternet) or L3 (Forward to gateway for Forwarding).  

.1 in your case, in use by gateway.  Client receiving this address would bork all L3 flows in teh L2 segment as you would have an IP conflict with gateway.

 

To use a .0 you could rock 192.168.10.0/23 which gives you a useable range, 192.168.10.1-192.168.11.254.  192.168.10.0 is right in teh middle and is acceptable.

 

Hope that helps.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×