Linux renew ip command

Posted mouseleo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux renew ip command相关的知识,希望对你有一定的参考价值。

$ 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的主要内容,如果未能解决你的问题,请参考以下文章

windows重新获取IP

我用的DHCP分配一个单位的网络ip,但是我重启计算机后为啥还是这个ip啊

ipconfig

kubernetes Server API 证书renew

解决局域网IP冲突

Eureka服务续约(Renew)源码分析