View previous topic :: View next topic |
Author |
Message |
audiotecnicality n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Dec 2005 Posts: 12 Location: Northern CA, USA
|
Posted: Sat Mar 11, 2006 12:22 am Post subject: dhcpd - Setting static IP for 2 NICs on same host [SOLVED] |
|
|
I have a Windows laptop with the usual network setup these days - one wired and one wireless NIC. I'd like to give both NICs a static IP with the dhcpd daemon on my server. I have already tried (even though I knew it likely wouldn't work) setting up two entries, with the same hostname:
Code: | host my_host {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 192.168.0.203;
}
host my_host {
hardware ethernet yy:yy:yy:yy:yy:yy;
fixed-address 192.168.0.204;
} |
How do I go about accomplishing this?
Last edited by audiotecnicality on Sat Mar 11, 2006 1:53 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TheRAt Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/965802054438fd382cded6.jpg)
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Sat Mar 11, 2006 1:45 am Post subject: |
|
|
I use this and it works fine for me..
someone might have a better solution though...
Code: | host pandora {
hardware ethernet XX:XX:XX:XX:XX:XX;
fixed-address 192.168.0.18;
option host-name "pandora";
}
host pandora-wireless {
hardware ethernet XX:XX:XX:XX:XX:XX;
fixed-address 192.168.0.19;
option host-name "pandora";
} |
_________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
audiotecnicality n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Dec 2005 Posts: 12 Location: Northern CA, USA
|
Posted: Sat Mar 11, 2006 1:51 am Post subject: |
|
|
Ah, ok...I didn't realize the "host" could be different than the hostname of the machine. Looks like you take care of that with the "option host-name" statement. Thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|