Re: Renew IP from DHCP
- From: Balwinder S Dheeman <bsd.SANSPAM@xxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Aug 2007 10:23:15 +0530
On 08/28/2007 08:45 AM, Hugo wrote:
Hi,
how can I renew my IP address of my linux PC from the DHCP server? I know I
can do a ifconfig eth0 down (and up) but that way I don't get any
messages. I have the problem that sometimes my Linux PC doesn't get an IP
from my DHCP server (build in in router). I would like to see some error
message when trying to get the IP. Something like the windows
ipconfig /renew.
Hum, my crystal ball has failed to guess as to what distro are you
using; on Debian/Ubuntu machines all you have to do is append/add the
following lines in /etc/network/interfaces:
auto eth0
iface eth0 dhcp
try 'man interfaces' for further details.
and use 'ifup eth0' or 'ifdown eth0' instead of the ifconfig.
To find/see error messages either use xconsole or search log files in
your /var/log directory; the /var/log/syslog and, or /var/log/messages
are good candidates, all these may contain or not depends on version
your syslog daemon and its configuration.
I have not tested, but almost all the Unix/Linux commands can also be
run in verbose mode; do read the manpage for all those commands which
you want to use and, or master.
PS: I could also have explained, how to do that on a Fedora/Redhat and
Gentoo or even the FreeBSD, but leaving that for you as an exercise :)
Hints: dhclient and pump
--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
"If you have time to waste, please waste it somewhere else, not here."
.
- References:
- Renew IP from DHCP
- From: Hugo
- Renew IP from DHCP
- Prev by Date: Renew IP from DHCP
- Next by Date: Re: Renew IP from DHCP
- Previous by thread: Renew IP from DHCP
- Next by thread: Re: Renew IP from DHCP
- Index(es):
Relevant Pages
|