cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9585
Views
2
Helpful
16
Replies

How to assign multiple static IP addresses for one DHCP pool?

atut
Level 1
Level 1

I want to assign many static IP addresses to many clients that connect through Access Points.

For testing:

1) I add this command to configuration: address 10.10.24.58 hardware-address f027.6579.9819

2) The client's phone still leasing 10.10.24.75 (random IP from DHCP)

3) I forget the wifi connection from client's phone

4) I run command clear ip dhcp binding 10.10.24.75

5) I reconnect client's phone to wifi, but the phone cannot get the assigned IP 10.10.24.58, it still gets random IP from DHCP (other than 10.10.24.75)

 

What is wrong and how to resolve this?

 

16 Replies 16

Hi Andrew,

 

Thanks for your support...

 

But I already told you that Sub DHCP is working for me. I have configured the same.

 

ip dhcp pool Wireless
network 192.168.34.0 255.255.254.0
default-router 192.168.34.1
dns-server 8.8.8.8 4.2.2.2
lease 0 5
!
ip dhcp pool Wireless_HHD01
host 192.168.35.241 255.255.254.0
hardware-address 7845.d4d3.xxxx
client-name HHD01

 

Note: Client-Identification not show in #Sh Run

 

My Question was if we have 10 device to configure a static MAC binding, for the same we need to configure 10 Sub DHCP pool. this is too much configuration and commands to bind the 10 device or more than 10 device.

 

I want to less configuration and commands to accomplish this task.

 

Thanks & Regards

Rajinder

Dear Rajindelhi

 

Actually, there is another option what will save some of your time which is creating an additional pool with the dynamic scope completely excluded can save some repeating lines (the common options) in the host pools:

 

For example: 

This for excluding the IPs that you would like to assign for hosts:

ip dhcp excluded-address 192.168.35.241 192.168.35.254

!

ip dhcp pool Wireless
network 192.168.34.0 255.255.254.0
default-router 192.168.34.1
dns-server 8.8.8.8 4.2.2.2
lease 0 5
!
ip dhcp pool Wireless_HHD01
host 192.168.35.241 255.255.254.0
cleint-identification 0178.45d4.d3xx.xx

!

ip dhcp pool Wireless_HHD02

     (....)

!

ip dhcp pool EXCLUDED

      network 192.168.34.0 255.255.254.0

      default-router 192.168.34.1

      dns-server 192.168.0.2 192.168.0.3

      domain-name MYDOMAIN

!

 

This only will save you type the common lines between all the sub dhcp pools like the dns, default router, etc.

 

I hope it will help you!

Please don't forget to rate helpful replies, and mark solutions!

it will be so nice from you!

Thanks in advance,

Bst Rgds,

Andrew Khalil