$ sudo dhclient -r //release 释放
$ sudo dhclient //获取IP
w obtain fresh IP:
$ sudo dhclient
There is need to restart network service. Above command should work with any Linux distro such as , Fedora, CentOS, Ubuntu and others. On a related te you can also try out the following commands:
# ifdown eth0
# ifup eth0
# /etc/init.d/network restart
OR
# /etc/init.d/networking restart