LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-05-2005, 08:13 AM   #1
iccanui
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Rep: Reputation: 0
Renew IP in linux?


Im looking for a simple command to renew the ip from a console.

I have tried

dhclient -r eth0
dhclient eth0

from another thread and it would apear that dhclient is not a functional command.

I have tried ifconfig eth0 up/down and will this seems to disable the network link, when i use the eth0 up command it brings back the IP, the ability to ping by ip to the router, but i can no longer ping by domain name, rebooting resolves the issue. Been through the sreach here and yahoo and google.com/linux and i cant seem to find anything.


If you can help it would be much appreciated, thank you.
 
Old 09-05-2005, 08:32 AM   #2
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 39
dhclient -r is obsolete you mean ???
dont think so. i use it on my latest WS4.

what error you get after you restart your network and ping?
did you try restarting named service (dont feel you need to though..)?
 
Old 09-05-2005, 08:48 AM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
Re: Renew IP in linux?

Quote:
Originally posted by iccanui
Im looking for a simple command to renew the ip from a console.

I have tried

dhclient -r eth0
dhclient eth0

from another thread and it would apear that dhclient is not a functional command.

I have tried ifconfig eth0 up/down and will this seems to disable the network link, when i use the eth0 up command it brings back the IP, the ability to ping by ip to the router, but i can no longer ping by domain name, rebooting resolves the issue. Been through the sreach here and yahoo and google.com/linux and i cant seem to find anything.


If you can help it would be much appreciated, thank you.
try this command find / -name dhclient 2> /dev/null

chances are it is a valid command just might be in /sbin/ so that it isn't in the search path for commands for security reasons.
 
Old 09-05-2005, 09:44 AM   #4
iccanui
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by logicalfuzz
dhclient -r is obsolete you mean ???
dont think so. i use it on my latest WS4.

what error you get after you restart your network and ping?
did you try restarting named service (dont feel you need to though..)?

No i mean when i type dhclient it says command not found.


When i ifconfig eth0 up it pulls a ip, i can ping my router 192.168.1.1 and oddly enough www.routerlogin.com which is the domain login for configuration of the router, but i cant ping www.google.com or anything beyond the router. Its not the router cause i have 3 other machines running off it from wireless to wired and their connection is fine and when i reboot this machine is online fully again.

I am running knoppix live cd at the moment. 3.8 i believe.
 
Old 09-05-2005, 09:46 AM   #5
iccanui
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Re: Re: Renew IP in linux?

Quote:
Originally posted by dr_zayus69
try this command find / -name dhclient 2> /dev/null

chances are it is a valid command just might be in /sbin/ so that it isn't in the search path for commands for security reasons.
when i try that command exactly as you typed, it hangs for a second, like its thinking, then just kicks me back to the prompt.
 
Old 09-05-2005, 09:53 AM   #6
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
then that means you don't have it. I have the command but it is in /sbin/. So take a look in there. If it is in there you have to invoke it by doing /sbin/dhclient
 
Old 09-05-2005, 10:00 AM   #7
iccanui
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Well i kinda figured it out i guess.

root@1[knoppix]# network-setup [enter]

while not a true resolution this runs a gui client that invokes a dhcp client broadcast of eth0. I believe that since this is a livecd of knoppix that i simply am missing components so that it fit on the CD.

This is a satisfactory solution till my HD comes in and i can load a distro fully.


Thank you for your help.
 
Old 09-05-2005, 10:31 AM   #8
Saquel
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Try this:

/etc/init.d/networking restart

that way i do it in my debian box
 
  


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
what is "ipconfig /renew" in linux ? fipeso Linux - Newbie 3 04-23-2005 03:26 AM
What's the linux equivalent of ipconfig /release & renew Thomas Anderson Linux - Newbie 5 02-21-2005 08:32 AM
Linux (SuSE) version of ipconfig /renew? wildweaselmi Linux - Newbie 3 10-29-2004 03:06 PM
dhcp renew? murray_linux Mandriva 1 11-06-2003 02:59 PM
renew/refreshing ip??? jcabral3 Linux - Newbie 1 12-09-2002 11:48 AM


All times are GMT -5. The time now is 12:29 PM.

Main Menu
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