Move host from one range to another one

Ivan V. Borodin vanchik at yandex.ru
Fri Aug 4 13:39:34 UTC 2006


В пт, 04/08/2006 в 13:56 +0100, Simon Hobson пишет:
> Ivan V. Borodin wrote:
> 
> >The main idea of this config is to provide a fixed IP-address (one or
> >more - due to customer wish) to the hosts in DOCSIS network regardless
> >to the PC's HW-address, based only on Cable Modem's MAC-address. The
> >pool with 'range 10.9.127.1 10.9.127.254;' configured is intended for
> >some customers who bought just one IP-address but connected two or more
> >PCs, or for temporarily blocked customers. Presumably, all HTTP requests
> >(for example) coming from 10.9.127.0/24 are forwarded to "Registration"
> >server.
> >
> >Let's examine such situation: some customer's PC got IP from this pool,
> >then site admin added second 'range' statement into customer's pool.
> >How can I make dhcpd to provide new IP (from newly configured range) for
> >this PC? I found the only way is to manually delete 10.9.127.xxx lease
> >from dhcpd.leases file and restart dhcpd (regardless to DHCPDRELEASE
> >made by this PC).
> >
> >Is there more convenient way to do that?
> 
> OK, I think what you are asking is :
> 
> If you have :
> 
>          pool {allow members of "host0001"; range 10.9.96.2;}
> 
> then change it to :
> 
>          pool {allow members of "host0001"; range 10.9.96.2; range 10.9.96.19;}
> 
> can you make a device which already has 10.9.96.2 change to 10.9.96.19 ?
> 
> 
> If that is what you want, then you would need to deny the client from 
> using 10.9.96.2 so that it will be offered a different address - 
> otherwise it will continue to be offered 10.9.96.2.
> 
> You could do this by :
> 
>          pool {deny booting; range 10.9.96.2;}
>          pool {allow members of "host0001"; range 10.9.96.19;}
> 
> Next time the client tries to renew it's lease on 10.9.96.2, the 
> server will respond with DHCPNAK. This will cause the client to stop 
> using the lease and request a new one, at which point the server can 
> offer it 10.9.96.19.
> 
> Simon
> 




Please, let me explain step-by-step:

1. there is:

pool {allow members of "host0001"; range 10.9.96.2;}
pool { <temporary pool> }

one customer has two PCs - first PC has IP 10.9.96.2, second - some IP
from temp pool.

2. Admin do this:

pool {allow members of "host0001"; range 10.9.96.2; range 10.9.96.100;}
pool { <temporary pool> }

Customer still have two PCs. I want to move second customer's PC from
<temporary pool>-address to 10.9.96.100 automatically.



More information about the dhcp-users mailing list