View previous topic :: View next topic |
Author |
Message |
bumpus n00b
Joined: 14 Feb 2003 Posts: 64 Location: Cedar Rapids, IA, USA
|
Posted: Fri Feb 21, 2003 8:53 pm Post subject: dhcpd and dhcpcd -h |
|
|
I'm looking for a way to make dhpcd play nicely with the hostname information provided by dhcp clients with the dhcpcd -h option. My problem is that I have a few laptops and a handful of PCMCIA network adapters (some wired, some wireless) and I would like for each laptop to always get the same IP address regardless of which ethernet adapter I happen to stick in.
It would seem like this should be possible since the dhcpcd -h option exists, there must be a server that can take advantage of it. I've even noticed that the names are logged in the dhpcd.leases file, but I can't seem to find any option for dhcpd.conf that makes use of it.
Anyone have any ideas? _________________ -------------
Just because I can. |
|
Back to top |
|
|
TwoTired n00b
Joined: 08 Feb 2003 Posts: 42
|
Posted: Fri Feb 21, 2003 9:11 pm Post subject: |
|
|
Not sure I understand it fully but you can pass options to dhcpcd in your ?etc/conf.d/net file
Where it says
Uncomment the line below and add your -h in the quotes at the end
Whether this will achieve your aim I dont know |
|
Back to top |
|
|
bumpus n00b
Joined: 14 Feb 2003 Posts: 64 Location: Cedar Rapids, IA, USA
|
Posted: Fri Feb 21, 2003 9:30 pm Post subject: I understand what to do in /etc/conf.d/net |
|
|
My problem isn't that I don't know how to set dhcpcd -h hostname in /etc/conf.d/net, it's that i would like to be able to do something useful with the information that provides.
Generally dhcpd keeps track of which IP addresses is has issued by MAC address and this works just fine when you can assume that people don't go willy-nilly switching NICs between different machines. However, if you have some PC card NICs that all look the same they can easily get switched between different laptops and then the confusion sets in.
I would like for my DHCP server (which is a gentoo box running ISC dhcpd) to use the information provided by dhcpcd -h to always issue the same IP address to a particular computer regardless of which NIC I happen to have inserted at the particular time.
I'm quite certian that I don't need to make any further changes to /etc/conf.d/net on the client computers. The file I'm going to need to change is /etc/dhcp/dhcpd.conf, I'm just not sure what options I need to use. _________________ -------------
Just because I can. |
|
Back to top |
|
|
|