$ sudo dhclient -r
To check the IP Address you have :
$ ifconfig
Now obtain fresh IP:
$ sudo dhclient
There is no need to restart network service. Above command should work with any Linux distro such as RHEL, Fedora, CentOS, Ubuntu and others. On a related note you can also try out the following commands:
# ifdown eth0
# ifup eth0
# /etc/init.d/network restart
OR
# /etc/init.d/networking restart
Sumber : http://www.cyberciti.biz/
No comments:
Post a Comment