<quote who="Scott Henson"> > Im trying to run dhcp3-server, but the computer Im running it on is > NATing for a couple other computers, so it gets a lease of its own from a > cable modem. Im trying to get dhcpd up and running, but I cant get it to > run. For one I forget how to determine the dns servers that Im getting > from the cable modem. Also I have a subnet defined in my > dhcpd.conf, but it still complains about not having any leases defined > for eth1 and then dies. Can anyone tell me how to get this to work. I > am currently running sid. > ps. CC me because Im not subscribed to the list yet. Thanks
i just installed a woody DHCP server last night and ran accross your 2nd problem.. for the first, i would check /etc/resolv.conf, or do a WHOIS on the domain your ISP uses and use those servers, they are less likely to change, its possible the nameservers for their end users may change for some reason .. as for why dhcp complains I am not sure, but my setup involves only running DHCP on eth1, i edited /etc/init.d/dhcp and changed the INTERFACES variable from eth0 to eth1 but that still did not work so i hard coded it into the script like this: case "$1" in start) echo -n "Starting DHCP server: dhcp" start-stop-daemon --start --quiet --pidfile $DHCPDPID \ --exec /usr/sbin/dhcpd -- -q eth1 echo "." and it started immediately without complaining. i don't understand why using the $INTERFACES variable did not work, but when I used it with that variable my log said: Jun 26 20:25:15 portal dhcpd-2.2.x: Internet Software Consortium DHCP Server 2.0pl5 Jun 26 20:25:15 portal dhcpd-2.2.x: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. Jun 26 20:25:15 portal dhcpd-2.2.x: All rights reserved. Jun 26 20:25:15 portal dhcpd-2.2.x: Jun 26 20:25:15 portal dhcpd-2.2.x: Please contribute if you find this software useful. Jun 26 20:25:15 portal dhcpd-2.2.x: For info, please visit http://www.isc.org/dhcp-contrib.html Jun 26 20:25:15 portal dhcpd-2.2.x: Jun 26 20:25:15 portal dhcpd-2.2.x: Listening on LPF/eth1/00:40:05:a3:5d:e9/aphroland Jun 26 20:25:15 portal dhcpd-2.2.x: Sending on LPF/eth1/00:40:05:a3:5d:e9/aphroland Jun 26 20:25:15 portal dhcpd-2.2.x: No subnet declaration for eth0 (216.39.174.24). Jun 26 20:25:15 portal dhcpd-2.2.x: Please write a subnet declaration in your dhcpd.conf file for the Jun 26 20:25:15 portal dhcpd-2.2.x: network segment to which interface eth0 is attached. Jun 26 20:25:15 portal dhcpd-2.2.x: exiting. (note it says it is only binding to eth1, but still complains about missing subnet declaration for eth0 -- i've been using this config file for about 2 years now on potato) after i changed it: Jun 26 20:25:19 portal dhcpd-2.2.x: Internet Software Consortium DHCP Server 2.0pl5 Jun 26 20:25:19 portal dhcpd-2.2.x: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. Jun 26 20:25:19 portal dhcpd-2.2.x: All rights reserved. Jun 26 20:25:19 portal dhcpd-2.2.x: Jun 26 20:25:19 portal dhcpd-2.2.x: Please contribute if you find this software useful. Jun 26 20:25:19 portal dhcpd-2.2.x: For info, please visit http://www.isc.org/dhcp-contrib.html Jun 26 20:25:19 portal dhcpd-2.2.x: Jun 26 20:25:19 portal dhcpd-2.2.x: Listening on LPF/eth1/00:40:05:a3:5d:e9/aphroland Jun 26 20:25:19 portal dhcpd-2.2.x: Sending on LPF/eth1/00:40:05:a3:5d:e9/aphroland Jun 26 20:25:19 portal dhcpd-2.2.x: Sending on Socket/fallback/fallback-net nate -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]