IP problem in Linux operating system?
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.
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.
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