Discussion:
alternative to "ipconfig renew"
Hyewon Jun
2005-09-06 04:56:05 UTC
Permalink
Hi,

In window, we can use "ipconfig renew" to obtain a new IP address
using DHCP. Is there a similar command in Linux to obtain a new IP address
from a DHCP server?

Thank you!
-Hyewon Jun
Hyewon Jun
2005-09-06 13:38:08 UTC
Permalink
Thank you for your tips!

However, I don't use dhcpclient, but my card retrieves an IP address
through dhcp service.

I installed fedora core 3. Any idea what is the executable name related
to the dhcp client?

dhcp + "tap" + "tap"
shows me that I have dhcp6c, dhcp6s, and dhcpd.

Thank you!
-Hyewon Jun
Post by Hyewon Jun
Hi,
In window, we can use "ipconfig renew" to obtain a new IP address
using DHCP. Is there a similar command in Linux to obtain a new IP address
from a DHCP server?
If you use dhclient as a clinent then 'dhclient -r wlan0' should help.
--
Best Regards, Jar
Jar
2005-09-06 14:27:32 UTC
Permalink
Post by Hyewon Jun
Thank you for your tips!
However, I don't use dhcpclient, but my card retrieves an IP address
through dhcp service.
I installed fedora core 3. Any idea what is the executable name related
to the dhcp client?
dhcp + "tap" + "tap"
shows me that I have dhcp6c, dhcp6s, and dhcpd.
In FC2 it was dhclient, in FC4 it is dhclient, so I quess it is dhclient
also in FC3. The dhclient package is not installed in your computer or you are not
logged in as root. See if the binary /sbin/dhclient exist.
--
Best Regards, Jar
Hyewon Jun
2005-09-06 15:17:46 UTC
Permalink
Oh, "dh"client instead of "dhcp"client!
Yes, it works now.

Thank you!

-Hyewon Jun
Post by Jar
Post by Hyewon Jun
Thank you for your tips!
However, I don't use dhcpclient, but my card retrieves an IP address
through dhcp service.
I installed fedora core 3. Any idea what is the executable name related
to the dhcp client?
dhcp + "tap" + "tap"
shows me that I have dhcp6c, dhcp6s, and dhcpd.
In FC2 it was dhclient, in FC4 it is dhclient, so I quess it is dhclient
also in FC3. The dhclient package is not installed in your computer or you are not
logged in as root. See if the binary /sbin/dhclient exist.
--
Best Regards, Jar
Jar
2005-09-06 06:37:40 UTC
Permalink
Post by Hyewon Jun
Hi,
In window, we can use "ipconfig renew" to obtain a new IP address
using DHCP. Is there a similar command in Linux to obtain a new IP address
from a DHCP server?
If you use dhclient as a clinent then 'dhclient -r wlan0' should help.
--
Best Regards, Jar
Henrik Brix Andersen
2005-09-06 07:57:00 UTC
Permalink
Post by Hyewon Jun
In window, we can use "ipconfig renew" to obtain a new IP address
using DHCP. Is there a similar command in Linux to obtain a new IP address
from a DHCP server?
Depends on which DHCP client you are using. I use `dhcpcd` which will
attempt to renew the DHCP address of network interface eth1 if I issue
the command `dhcpcd -n eth1`.

Check the manual page for your DHCP client.

Sincerely,
Brix
--
Henrik Brix Andersen <***@gentoo.org>
Gentoo Metadistribution | Mobile computing herd
Roy Marples
2005-09-06 06:29:48 UTC
Permalink
Post by Hyewon Jun
In window, we can use "ipconfig renew" to obtain a new IP address
using DHCP. Is there a similar command in Linux to obtain a new IP address
from a DHCP server?
# dhcpcd
dhcpcd -n eth0

# pump
pump --renew --interface eth0

# udhcpc (pidfile location and name may be different)
kill -signal SIGUSR1 `cat /var/run/udhcpc-eth0.pid`

# dhclient - you'll have to read up on it's OMAPI thing

Thanks

Roy
Tino Keitel
2005-09-06 12:37:50 UTC
Permalink
Post by Hyewon Jun
Hi,
In window, we can use "ipconfig renew" to obtain a new IP address
using DHCP. Is there a similar command in Linux to obtain a new IP address
from a DHCP server?
Depends on your DHCP client. With pump, you can use the -R option.

Regards,
Tino

Loading...