Page 1 of 1
Renew IP in linux?
Posted: Mon Sep 05, 2005 1:18 pm
by Iccy (temp)
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 search 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.
Posted: Mon Sep 05, 2005 1:31 pm
by JulesWinnfield
sudo /etc/init.d/network restart
everytime network is initialized it requests a new lease w/ DHCP server
Posted: Mon Sep 05, 2005 6:00 pm
by +JuggerNaut+
your google not working?
Posted: Mon Sep 05, 2005 11:08 pm
by Iccy (temp)
yea bud, try and google that and get back to me. Google is not the answer to everything

Posted: Tue Sep 06, 2005 12:37 am
by +JuggerNaut+
Iccy (temp) wrote:yea bud, try and google that and get back to me. Google is not the answer to everything

if not google ,"buddy", then a Linux forum. you got extremely lucky that someone on this board knew the answer.

Posted: Tue Sep 06, 2005 12:47 am
by +JuggerNaut+
Posted: Tue Sep 06, 2005 12:52 am
by Iccy (temp)
Yea man, i exhausted more options then you know
And no i didnt get lucky here. I know the caliber of people lurking here that dont post daily, i been here a while. But thats ok, you just lack the understanding of my search methods. Trust me, this isnt the only place i looked and incidently it was the last and someone here apperently has sufficent understanding to answer. Even if it didnt help, well not fully.
So thnx Jules, it pointed me in the right direction atleast.
cya
Posted: Tue Sep 06, 2005 2:45 am
by JulesWinnfield
Hrm.. check port 53 (TCP and UDP) on your firewall. Maybe dns traffice is getting blocked in some sneaky underhanded way. Check your router as well..
Also, check your /etc/resolv.conf (or thereabouts) and make sure your DNS server ips are valid.
If you want, try doing an nslookup
http://www.google.com and copy/paste the results.
Is the name server messing up a new thing or has it always worked?
Posted: Tue Sep 06, 2005 3:57 am
by Underpants?
pump
command not found...
apt-get install pump and shut the fuck up. :icon14:
Posted: Tue Sep 06, 2005 11:33 am
by Iccy (temp)
JulesWinnfield wrote:Hrm.. check port 53 (TCP and UDP) on your firewall. Maybe dns traffice is getting blocked in some sneaky underhanded way. Check your router as well..
Also, check your /etc/resolv.conf (or thereabouts) and make sure your DNS server ips are valid.
If you want, try doing an nslookup
http://www.google.com and copy/paste the results.
Is the name server messing up a new thing or has it always worked?
Im sorry i wasnt clear, i got it resolved bro, just a different way, that command you suggested pointed me in the right direction. Thing is im running knoppix so some of the basic stuff is missing, i found a network-setup command that reloads everything and also /etc/init.d/network
ing restart works, just a lil different from your suggested command.
Thnx again bro. All is well.