Networking :: DHCP Tip



I'm running DSL on an old Toshiba 3015 with DSL installed on a compact flash card instead of a Hard Drive. I'm using a Netgear WG511T pcmcia card. To bring up the wireless at home on my linksys router I would normally run a short script that would get a static IP from the router then do an ifconfig ath0 up and it would always work.

The other night at the local Linux User's Group meeting I couldn't get an IP using ifconfig and iwconfig , the ath0 interface was recognized but there wasn't anyway I could get an IP. After getting home I did some googleing and found that DSL uses "pump" as its dhcp client and to get an IP all I needed to do was (at a command line type :
sudo pump -i ath0
as soon as i did that pump went and retrieved all of the dhcp info and the wireless came up nice and clean.

Dick Steflik.  [I][B]

I have to do the same for my ath0 cards to work.
Since this is a DHCPtip thread, can someone tell me how to set DSL's DHCP client (said "pump") to keep the same local IP.  I'm trying to get a server set up on Damn Small Linux, mostly because this is the only Linux distro that I was able to get to boot correctly, and the system gets a new IP anywhere from a couple of hours to a day.  For an example two days ago this machine had the IP of 192.168.2.19, yesterday it had the IP of 192.168.2.20, and today it went through .21-.23 in a matter of hours all with no reboot or shutdown.  I know its not just my router's fault, it keeps the lease on IPs for a day and it should recognize the MAC address of this computer and see that it is already given an IP so it should not assign a new one but that is not happening.
Quote (vendion @ June 30 2008,12:10)
Since this is a DHCPtip thread, can someone tell me how to set DSL's DHCP client (said "pump") to keep the same local IP.  I'm trying to get a server set up on Damn Small Linux, mostly because this is the only Linux distro that I was able to get to boot correctly, and the system gets a new IP anywhere from a couple of hours to a day.  For an example two days ago this machine had the IP of 192.168.2.19, yesterday it had the IP of 192.168.2.20, and today it went through .21-.23 in a matter of hours all with no reboot or shutdown.  I know its not just my router's fault, it keeps the lease on IPs for a day and it should recognize the MAC address of this computer and see that it is already given an IP so it should not assign a new one but that is not happening.

Try "pump --help" for all options, mainly "-l" or "-L".

As a side note, the pump on my system (3.4.11) seems to renew ip every 10 hours, when my router is set for 10 days, 30 seconds long leases. Ip stays the same though (Hostname does get changed at 10 hours if the hostname has changed though).

That is only for hours and seconds, is that the best that pump can do?  I guess I could figure the exact number of hours there is in a year and lease the IP for that, but that is just kind of a weird thing to do.
Next Page...
original here.