Networking Forums

Networking Forums > Computer Networking > Linux Networking > dhcpctl and pools

Reply
Thread Tools Display Modes

dhcpctl and pools

 
 
matteo
Guest
Posts: n/a

 
      01-12-2005, 09:46 AM
hi
i need to assign dinamically a known host to a specific pool.
i need to add and remove quite often many hosts, with known ethernet
address but dynamic ip, so i used dhcptcl apis, but i can't find a way
to put a client in a ip range or in another.
i tried with the option group, but doesn't work
it seems that the only way to choose between pools is to create a class
and add statements searching for parameters clients send, but i don't
like this very much

any ideas?

bye
matteo

 
Reply With Quote
 
 
 
 
prg
Guest
Posts: n/a

 
      01-12-2005, 12:52 PM

matteo wrote:
> hi
> i need to assign dinamically a known host to a specific pool.
> i need to add and remove quite often many hosts, with known ethernet
> address but dynamic ip, so i used dhcptcl apis, but i can't find a

way
> to put a client in a ip range or in another.
> i tried with the option group, but doesn't work
> it seems that the only way to choose between pools is to create a

class
> and add statements searching for parameters clients send, but i don't
> like this very much
>
> any ideas?


Curious, why are you using dhcpctl rather than dhcpd.conf?

Can you set up what you need with dhcpd.conf? If you can, I would
think that it would provide you guidance and if not, that it may not be
possible.

A quick glance at the man page makes me realize I'm not quite sure what
you need to set up. Clarification or example?
regards,
prg
email above disabled

 
Reply With Quote
 
matteo
Guest
Posts: n/a

 
      01-12-2005, 01:24 PM
prg wrote:

> Curious, why are you using dhcpctl rather than dhcpd.conf?


i'm using dhcpd.conf for an initial setup, in which i specify global
options and ip ranges and to deny unknown clients. then i add known
hosts via an application that calls the dhcpctl program.

> Can you set up what you need with dhcpd.conf? If you can, I would
> think that it would provide you guidance and if not, that it may not

be
> possible.


i could put everything in dhcpd.conf, and it would work, but the list
of known clients is dynamic, and i can't put it in dhcpd.conf, still i
need to put those clients in 2 different pools, and to choose the pool
for that client

if i could use dhcpd.conf i could create two groups and put hosts
declarations in those group
indeed there's an option "group" which i can use with dhcpctl, but it
seemed to be ignored, all the clients got the ip address in the first
group found in dhcpd.conf

does this sound clear? i hope

tnks
matteo

 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      01-12-2005, 01:36 PM

matteo wrote:
> prg wrote:
>
> > Curious, why are you using dhcpctl rather than dhcpd.conf?

>
> i'm using dhcpd.conf for an initial setup, in which i specify global
> options and ip ranges and to deny unknown clients. then i add known
> hosts via an application that calls the dhcpctl program.
>
> > Can you set up what you need with dhcpd.conf? If you can, I would
> > think that it would provide you guidance and if not, that it may

not
> be
> > possible.

>
> i could put everything in dhcpd.conf, and it would work, but the list
> of known clients is dynamic, and i can't put it in dhcpd.conf, still

i
> need to put those clients in 2 different pools, and to choose the

pool
> for that client


"the list of known clients is dynamic" -- wasn't sure if this played a
role in your dilemma, but it makes sense.

> if i could use dhcpd.conf i could create two groups and put hosts
> declarations in those group
> indeed there's an option "group" which i can use with dhcpctl, but it
> seemed to be ignored, all the clients got the ip address in the first
> group found in dhcpd.conf


option group ignored -- group was what _I_ was looking at.

> does this sound clear? i hope


Sounds clear but now I'm scratching my head, hmmm......

I'll have to wait and see if any "sudden insight" shines into the dark
recesses of my dormant brain cells -- ie., I'll have to ponder this.

Be warned, I haven't (successfully) played with this need, but is
similar to some exploratory stuff I worked on last year. Maybe I can
find something that sparks an idea?

regards,
prg
email above disabled

 
Reply With Quote
 
matteo
Guest
Posts: n/a

 
      01-13-2005, 12:48 PM
prg wrote:

>
> Sounds clear but now I'm scratching my head, hmmm......
>


i found something in dhcp-server mailing list:

http://marc.theaimsgroup.com/?t=98888000100003&r=1&w=2
http://marc.theaimsgroup.com/?t=109702178600001&r=1&w=2

bye
matteo

 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      01-13-2005, 10:56 PM

matteo wrote:
> prg wrote:
>
> >
> > Sounds clear but now I'm scratching my head, hmmm......
> >

>
> i found something in dhcp-server mailing list:
>
> http://marc.theaimsgroup.com/?t=98888000100003&r=1&w=2
> http://marc.theaimsgroup.com/?t=109702178600001&r=1&w=2


I'm having no luck finding notes from about a year ago -- computer got
a rather hasty backup with 30+ CDs, but no catalog for the lesser used
stuff.

The second link much more current and this one:
http://marc.theaimsgroup.com/?l=dhcp...2636123381&w=2
[quote]
changing the match in my class to
match hardware;
and then adding
subclass "executives" 1:00:02:b3:ff:ff:ff;

does in fact work.
[end quote]

is the sort of thing I had in mind. Will something along these lines
work in your case?

prg

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2003 DHCP Multiple Scopes lost Address Pools. Jaycee Windows Networking 0 05-15-2007 02:49 PM
overlapping pools in DHCP config file - WANTED Hugh McGuinness Linux Networking 4 12-15-2006 09:10 PM
510v4 DCHP Pools addresses disappearing PT Broadband 2 01-04-2004 12:50 PM
DHCPd: IP-Address Pools based on Client ID Bastian Bense Linux Networking 1 09-08-2003 04:28 PM



1 2 3 4 5 6 7 8 9 10 11