LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2006, 07:08 PM   #1
abridge
LQ Newbie
 
Registered: Apr 2005
Location: Louisville, Kentucky
Distribution: Suse 9.2 Pro
Posts: 23

Rep: Reputation: 15
Release and Renew DHCP


I am trying to find the proper command to releaese and renew my ip address similar to ipconfig /release and ipconfig /renew in Windows.

I tried ifconfig eth1 down and ifconfig eth1 up

This brings the interface down then up, but it did not seem to pull a dhcp config properly. When it came back up I could not access resources.
 
Old 11-11-2006, 07:52 PM   #2
breman
LQ Newbie
 
Registered: Aug 2003
Posts: 27

Rep: Reputation: 15
dhcpcd -k eth? should release
dhcpcd -n eth? should renew

I just use dhcpcd eth0 and it always works..

Last edited by breman; 11-11-2006 at 07:58 PM.
 
Old 11-11-2006, 08:15 PM   #3
abridge
LQ Newbie
 
Registered: Apr 2005
Location: Louisville, Kentucky
Distribution: Suse 9.2 Pro
Posts: 23

Original Poster
Rep: Reputation: 15
When I use this command I get:

Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 5 leases to leases file.

No subnet declaration for eth1 (My Public IP).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **


Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
 
Old 11-11-2006, 08:33 PM   #4
breman
LQ Newbie
 
Registered: Aug 2003
Posts: 27

Rep: Reputation: 15
http://developer.berlios.de/projects/dhcpcd/
 
Old 11-11-2006, 08:43 PM   #5
abridge
LQ Newbie
 
Registered: Apr 2005
Location: Louisville, Kentucky
Distribution: Suse 9.2 Pro
Posts: 23

Original Poster
Rep: Reputation: 15
Wait a minute. I screwed up the command. This time I typed it correctly and it worked exactly how I wanted.

dhcpcd eth1 -k
dhcpcd eth1 -n

Thanks
 
  


Reply

Tags
ip, release, renew



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
Release And Renew dna9 Linux - Networking 1 03-09-2005 04:24 PM
ip release/renew ddu_ Linux - Newbie 5 12-14-2004 10:35 PM
DHCP - Release/renew laoddien Linux - Networking 0 06-25-2004 05:09 AM
Release/renew an ip morfy50 Linux - Networking 1 09-19-2002 12:02 PM
dhcp release and renew Ratclaws Linux - Networking 1 10-12-2001 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 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
Open Source Consulting | Domain Registration