IP problem in Linux operating system?

Asked By 10 points N/A Posted on -
qa-featured

I am using Linux and I am currently having problems with this operating system as I am not able to renew the IP.  How can I renew the IP address in this operating system? Any help would be appreciated.

SHARE
Answered By 590495 points N/A #117234

IP problem in Linux operating system?

qa-featured

You need to use the dhclient command or the Dynamic Host Configuration Protocol Client. This is the same asipconfig /renew in Windows platform.

It is normally does not released by the client because the Dynamic Host Configuration Protocol (DHCP) does not require it. But there are ISPs that require the client to notify the server first if they wanted an assigned IP address to release.

$ sudo dhclient -r

Open the terminal and then enter the command above. The -r option releases the current lease.

$ sudo dhclient

This command will obtain a fresh IP address. You can also try these other commands:

# ifdown eth0

# ifup eth0

# /etc/init.d/network restart

and

# /etc/init.d/networking restart

Related Questions