LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   confugure dhcpd (https://www.linuxquestions.org/questions/linux-newbie-8/confugure-dhcpd-342420/)

snip128 07-12-2005 07:07 AM

confugure dhcpd
 
i need to know how to configure dhcpd...i had it working fine, but then when i put another NIC card in, for internet, it says:

Code:

No subnet declaration for eth1 (68.50.16.3).
Please write a subnet declaration in your dhcpd.conf file for the network segment to which interface eth1 is attached.
exiting.

sooooo....how do i do this? :confused: the card i actually need the dhcp for is eth0 (my lan)...

Nathanael 07-12-2005 08:04 AM

your dhcpd.conf file should hold an example of this
you also find examples in man dhcpd.conf (also found at http://www.8ung.at/spblinux/doc/dhcpd.conf.html)
looking into the website of your dhcp server
/usr/share/doc holds a lot of info aswell
for dhcp3 server you can look into
/usr/share/doc/dhcp3-server/examples (this was the first result of searching dhcpd.conf on http://www.google.com/linux)

if all of that should fail, i'll post you an example...
don't get me wrong - this place is to be helpt at: these though are the basic steps wich can be used with nearly any trouble in any program...

snip128 07-12-2005 11:01 AM

yea...i still don't get it...or rather...where to put it...putting in the subnet declaration right beneath my one for eth0 didnt work...i didnt think it would anyway...the subnet for eth1 is 255.255.255.128 (or so ifconfig says)

Code:

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.3 192.168.1.250;
  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;

thats the subnet i have for eth0...so shouldn't i just be able to put something like:

Code:

subnet 68.50.176.0 netmask 255.255.255.128 {
range 68.50.176.1 68.50.176.3
option broadcast-address 255.255.255.255
}


Nathanael 07-12-2005 11:38 AM

add this somewhere in your dhcpd.conf file, perhaps before you main declaration for eth0
Code:

subnet 68.50.16.0 netmask 255.255.255.0 {
}



All times are GMT -5. The time now is 04:06 PM.