LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setup dhcp3 (http://www.linuxquestions.org/questions/linux-networking-3/setup-dhcp3-629321/)

realnoname 03-19-2008 08:42 PM

Setup dhcp3
 
It looks like a lot of people have had the same problem as me but from what I searched nothing I did help... what am trying to do is setup dhcp3 on my debian box and the only thing that its going to be connected to (for now) is just a switch with no access to the internet. When I try to start/restart it I get dhcpd3 failed to start - check syslog for diagnostics.

/etc/dhcp3/dhcpd.conf
Quote:

authoritative;
ddns-update-style interim;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.250;
default-lease-time 518400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
}
/etc/default/dhcp3-server
Quote:

INTERFACES="eth0"
/var/log/syslog
Quote:

Wrote 0 leases to leases file.
dhcpd:
dhcpd: No subnet declaration for eth0 (0.0.0.0).
dhcpd: ** Ignoring requests on eth0. If this is not what
dhcpd: you want, please write a subnet declaration
dhcpd: in your dhcpd.conf file for the network segment
dhcpd: to which interface eth0 is attached. **
dhcpd: Not configured to listen on any interfaces!
And yes I am a networking/Linux noob

Thanks

acid_kewpie 03-20-2008 01:21 PM

show us the output of "ifconfig eth0" please

realnoname 03-20-2008 03:12 PM

ifconfig eth0
Quote:

eth0 Link encap:Ethernet HWaddr 00:30:18:A2:ED:E9
inet6 addr: fe80::230:18ff:fea2:ede9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1836 (1.7 KiB)
Interrupt:11 Base address:0xe400

acid_kewpie 03-20-2008 03:15 PM

right... you don't even have an IP address on that interface? your basic networking isn't even up yet. one step at a time...

you do know you can't serve dhcp to yourself right?

realnoname 03-21-2008 03:41 PM

Quote:

Originally Posted by acid_kewpie (Post 3095219)
right... you don't even have an IP address on that interface? your basic networking isn't even up yet. one step at a time...

you do know you can't serve dhcp to yourself right?

Haha now that you say that i do.. looks like i got it to work now thanks


now onto the next problem


All times are GMT -5. The time now is 11:51 PM.