Fedora手动修改IP后,重新自动获取…

来源:互联网 发布:剑三仙草萝莉脸型数据 编辑:程序博客网 时间:2024/06/05 15:39

使用

#dhclient eth0只需要这一个指令即可,eth?根据实际情况填写不同的数字。

备注:

Linux Force DHCP client(dhclient) to renew ip address

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 shouldwork with any Linux distro such as RHEL, Fedora, CentOS, Ubuntu and others. On arelated note you can also try out the following commands:
# ifdown eth0
# ifup eth0
# /etc/init.d/network restart 
OR
# /etc/init.d/networking restart


0 0
原创粉丝点击