码迷,mamicode.com
首页 > 系统相关 > 详细

Linux renew ip command

时间:2018-10-31 14:03:16      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:win   init.d   command   can   .com   related   com   eth0   str   

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

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

Linux renew ip command

标签:win   init.d   command   can   .com   related   com   eth0   str   

原文地址:https://www.cnblogs.com/mouseleo/p/9882408.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!