View previous topic :: View next topic |
Author |
Message |
Ausdonky n00b
Joined: 12 May 2004 Posts: 15 Location: Brisbane, Oztralia :)
|
Posted: Wed May 12, 2004 7:15 am Post subject: Using dhcpd to give 1 IP to more than 1 MAC?? |
|
|
Hi guys..
i have a bit of a question regarding dhcpd.
i have a couple of machines that have more than one nic and for the time being i have just given the machines 2 network dns names (ie kanu and kanu-dock) but i would like to just have one name (ie just kanu). The reason for having the two nic's is that one is an onboard eth card on my laptop and the other is on my docking station. i know i can solve this problem client side by bonding the devices together but id prefer to just have the dhcp server give the same name to both of them. Since i will never have both plugged in at the same time i cant see this as a problem?! i just dont know how to do it..
i have had a look on the net and on various forums but i havent been able to find anythign that answers my question.
Thankyou
Andrew (ausdonky) |
|
Back to top |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Wed May 12, 2004 11:09 am Post subject: |
|
|
You could try: Code: |
host host1 {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address nn.nn.nn.nn;
}
host host2 {
hardware ethernet yy:yy:yy:yy:yy:yy;
fixed-address nn.nn.nn.nn;
} | in /etc/dhcp/dhcpd.conf. I'm not sure it will accept that though. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
|
Ausdonky n00b
Joined: 12 May 2004 Posts: 15 Location: Brisbane, Oztralia :)
|
Posted: Wed May 12, 2004 1:43 pm Post subject: |
|
|
thanks chris! yes that worked exactly how i wanted it to
i dont really know a whole lot about dhcp (for my conf file i got the basic setup and copied it a lot!) but can you tell me, what is the scope of the "host" names that i have in the dhcpd.conf?? ie kanu and kanu-hub. i have now removed kanu-hub from my dns server amd that all works how i want it, but because i used that name (host kanu-hub {....) in the dhcpd.conf is there any where that this will come up? im sorry if my question sounds a little strange but i just dont want to have any "suprises"
thanks
Andrew (ausdonky) |
|
Back to top |
|
|
|