Click to See Complete Forum and Search --> : dhcp


DemosthenesB
10-10-2002, 08:17 PM
ok, I just recently got a 2wire modem from Bellsouth and in order to use it I have to use Linux as a dhcp client. Now, I downloaded dhcp client software from "http://www.isc.org/products/DHCP/". I have configured and installed it and I also have my ethernet card correctly configured.

So when I go to start the dhcp client(dhclient) I get an error message that says "No working leases in persisten database". What does that mean and how can I "fix" it? Thank you very much.

mdwatts
10-11-2002, 09:47 AM
Most (if not all) Linux distros already include dhcp client software

# rpm -qa | grep dhcp

dhcp-3.0b2pl9-11

# rpm -ql dhcp

/etc/dhcp
/etc/dhcp/dhclient.conf
/etc/dhcp/functions
/etc/dhcp/script
/etc/sysconfig/network-scripts/ifdown-dhcp
/etc/sysconfig/network-scripts/ifup-dhcp
/sbin/dhclient
/usr/share/doc/packages/dhcp-3.0b2pl9
/usr/share/doc/packages/dhcp-3.0b2pl9/COPYRIGHT
/usr/share/doc/packages/dhcp-3.0b2pl9/dhclient.conf.dist
/usr/share/man/en/man5/dhclient.conf.5.gz
/usr/share/man/en/man5/dhclient.leases.5.gz
/usr/share/man/en/man8/dhclient-script.8.gz
/usr/share/man/en/man8/dhclient.8.gz
/var/lib/dhcp

Is your ethernet card setup to use dhcp?

Check in /etc/sysconfig/network-scripts/ifcfg-eth0

I use static ip addressing at home, so mine iis not setup for dhcp.

#!/bin/sh
#>>>Device type: ethernet
#>>>Variable declarations:
DEVICE="eth0"
IPADDR="192.168.1.4"
NETMASK="255.255.255.0"
NETWORK="192.168.1.0"
BROADCAST="192.168.1.255"
GATEWAY="192.168.1.1"
ONBOOT="yes"
DYNAMIC=""
#>>>End variable declarations

DYNAMIC should be set to "yes" and the ip addresses should also be "" (null) except for I guess the GATEWAY address.

DemosthenesB
10-11-2002, 04:37 PM
Thanks a lot mdwatts. So my /etc/sysconfig/network-scripts/ifcfg-eth0 should be exactly like yours except for the "DYNAMIC" and IP addresses?

mdwatts
10-11-2002, 05:35 PM
It should be similiar to mine. Some distros use a slightly different format.

Just remember that I use static ip addressing.

Have you had a look at yours yet?

DemosthenesB
10-11-2002, 11:25 PM
OK, big problem, I don't have a /etc/sysconfig folder... I also tried that "
# rpm -qa | grep dhcp

dhcp-3.0b2pl9-11

# rpm -ql dhcp"
you told me to do, and when I type dhcp-3.0b2pl9-11 I get an error message telling me that it does not exist. Also, I don't have a "/etc/dhcp" folder, what I have is a dhcp.config file, which has nothing in it. Thank you VERY much for your help.

Xsecrets
10-12-2002, 10:24 AM
Well if you got it from bellsouth it is probably dsl modem and if so dhcp will not work. you need pppoe support which you get from roaring pinguin, I'm not sure where that is but a few quick searches should find it for you. I know bellsouth uses pppoe on all thier dsl lines, the only way you would not need the pppoe client is if you have a dsl router.