红联Linux门户
Linux帮助

如何强制linux DHCP 客户端重新获取IP (dhclient)

发布时间:2008-03-08 01:21:23来源:红联作者:bailian
Linux Force DHCP client (dhclient) to renew ip address

Linux renew ip command
$ sudo dhclient -r //release ip 释放IP
$ sudo dhclient //获取IP

//////////////// 原文 开始/////////////////////////
http://www.cyberciti.biz/faq/howto-linux-renew-dhcp-client-ip-address/

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

//////////////// 原文 结束/////////////////////////
文章评论

共有 3 条评论

  1. dingooyi 于 2009-07-30 09:11:38发表:

    重启电脑和路由

  2. wangyoubang 于 2009-07-30 08:10:26发表:

    重启 计算机 ,重启 DHCP服务器 还有你说的重启网卡都行

  3. zrl2088 于 2009-06-18 08:51:49发表: