cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2322
Views
0
Helpful
0
Replies

Combining Dynamic & Static DHCP

oren.hecht
Level 1
Level 1

Hi guys,

I have a DHCP setup on my Cisco 877W that acts as a DHCP server.

I would like to add an option to statically assign IP addresses for a chosen number of hosts.

My current DHCP configuration is:

ip dhcp excluded-address 192.168.1.1 192.168.1.20
!
ip dhcp pool DHCP_POOL
   network 192.168.1.0 255.255.255.0
   default-router 192.168.1.1
   dns-server 192.168.1.1

The router's interface that is connected to the LAN is BVI1 with IP address of: 192.168.1.1/24.

I tried creating a second pool for static DHCP:

ip dhcp pool DHCP_STATIC

  host 192.168.1.2 255.255.255.0

  hardware-address ###MY MAC###

The MAC address was taken from the show arp table.

But could not get the static lease to be assinged to my computer (I did see it under show ip dhcp bindings).

I also tried using the client-identifier option (And took the client-id from the binding table) but once I renew the lease on my computer the client-identifier is deleted from the running-config.

I also tried removing the excluded list but it didn't help. Also I used clear ip dhcp binidngs * after every change I did but my computer kept getting the same 192.168.1.23 IP.

Basically what I want is the DHCP to assign address between 192.168.1.20-192.168.1.254 leaving the first 19 addresses for me to issue static DHCP leases.

I do not want to assign static IP addresses on each computer but have it managed from the router itself.

Thank you very much for the help!

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card