Operating System - Linux
1819748 Members
3076 Online
109606 Solutions
New Discussion юеВ

ipconfig /renew Linux equivalent ?

 
Admin32
Advisor

ipconfig /renew Linux equivalent ?

Hi everyone,

I've been searching for a way to force a linux workstation to obtain an IP address without booting, similair to the 'ipconfig /renew' command under windows.

Anyone that can help ?

Cheers,
9 REPLIES 9
Heiner E. Lennackers
Respected Contributor

Re: ipconfig /renew Linux equivalent ?

Hi,

take a look at the "pump" command. It manages the ip configuration via dhcp on a linux machine.

Heiner
if this makes any sense to you, you have a BIG problem
Chakravarthi
Trusted Contributor

Re: ipconfig /renew Linux equivalent ?

run netconfig, select DHCP and try, it should get IP address Automatically, else just /etc/rc.d/init.d/network restart, this will get IP address from DHCP without rebooting the machine.
U.SivaKumar_2
Honored Contributor

Re: ipconfig /renew Linux equivalent ?

Hi,

Just give this command as root.

#dhcpcd -n

It will renew the IP address,

regards,
U.SivaKumar

Innovations are made when conventions are broken
Admin32
Advisor

Re: ipconfig /renew Linux equivalent ?

I forgot to include the distro. i'm using. Redhat 7 and 8, and theey don't seem to have the dhcpcd command anywhere ...

Alternatives ?
Kelli Ward
Trusted Contributor

Re: ipconfig /renew Linux equivalent ?

Hi,
You can get dhcpcd here:

http://www.linux.org/perl-bin/search_db?q=dhcp&qid=2&spp=100

HTH,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Stuart Browne
Honored Contributor

Re: ipconfig /renew Linux equivalent ?

Try 'pump -i -R'.

'pump' is the 'dhcpcd' replacement on RH7+8 systems.
One long-haired git at your service...
Alan McNeil
Occasional Advisor

Re: ipconfig /renew Linux equivalent ?

In Debian: use "dhclient eth0"
Often (in many distros) if you have configured to use DHCP in netconfig (or YaSt or debconfig or whatever), all you need is ifdown eth0; ifup eth0.
You need the ifdown in case you ended up half-up during bootup. Then ifup should call pump or dhcpd or dhclient automatically IF you configured for eth0 for DHCP.

Phil Nerges
New Member

Re: ipconfig /renew Linux equivalent ?

hey, I'm using Redhat 7.3-9.0. As root typing service network restart seems to work.
47.3 percent of all statistics are made up on the spot.
Laurent Guisset
New Member

Re: ipconfig /renew Linux equivalent ?

simply try (as root) :

ifconfig