LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 03-04-2005, 04:25 PM   #1
susefan
Member
 
Registered: Feb 2005
Location: California, USA
Distribution: Novell SuSE
Posts: 39

Rep: Reputation: 15
how do I renew a dhcp client lease?


Under Win98, I was able to run winipcfg,
and click on renew-all to have the system
contact the dhcp server and re-establish
the dhcp client leases.

How do I do this under Linux (specifically suse 9.2)?

Thanks
 
Old 03-04-2005, 04:36 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Just run "dhclient" - if you have more than one card then you can choose with "dhclient eth0".
 
Old 03-07-2005, 12:49 PM   #3
susefan
Member
 
Registered: Feb 2005
Location: California, USA
Distribution: Novell SuSE
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for you reply.

The program, dhclient, doesn't appear on my system, and this
led me to some further investigation.

Here's what I think I have learned.

There are two packages available, dhclient, and dhcpcd. Suse 9.2
installs dhcpcd.

Fortunately, suse provides some shell-script front ends,
ifup-dhcp and ifdown-dhcp. These scripts figure out which
package is installed and then issue the proper command, with
the proper arguments for the package installed.

So I run:
ifdown-dhcp ath0
ifup-dhcp ath0

Anyway, thank you, David, for pointing me in the right direction.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP doesnt renew lease on hotplug sm1else Linux - Wireless Networking 2 04-05-2005 04:10 AM
Technical Q: How can I renew DHCP lease with different IP? paul_m_d Linux - Networking 16 07-26-2004 03:52 AM
Can not get DHCP client lease on startup AlgebraicSpore Linux - Networking 2 06-15-2004 12:16 AM
DHCP won't renew lease without reset of router! amped Linux - Networking 9 03-23-2004 11:37 PM
DHCP client fails to renew lease NiPNi Linux - Networking 2 04-06-2002 07:01 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration