I have come across an issue and I’m not sure on how to resolve. I’m trying to get the router to assign the PC’s within my network IP addresses. I have excluded the ones which i wish to not be used however it seems to allocate the wrong addresses.

For example, the network address is, the router is and I wish to exclude addresses to So the first PC will be however it provides the first PC with an IP address I have included the coding as an image, please could someone advise?😩

Many thanks!

ip dhcp excluded-address 
ip dhcp pool MyCompany 
  • Please edit your question to include the router configuration. Paste the text configuration into the question using the Preformatted-text feature ({}).
    – Ron Maupin
    Apr 23, 2019 at 14:56
  • ip dhcp excluded-address ip dhcp pool MyCompany network default-router
    – Cisly
    Apr 23, 2019 at 15:00
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide and accept your own answer.
    – Ron Maupin
    Dec 15, 2019 at 2:19

2 Answers 2


Welcome to Network Engineering! The subnet mask in your network statement is incorrect.

It should be

  • Thank you! Sorry I am new to this. However now it begins the IP’s from instead of Is there any indication why this is?
    – Cisly
    Apr 23, 2019 at 15:48

Use "show ip dhcp binding" to see if the IP is still bound to a PC. I think its default to 24 hours. You might need to clear the binding to use the

  • Thank you for your help! It’s successfully working now.
    – Cisly
    Apr 23, 2019 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.