algorithmic

linux强制开启dhcp

 

Linux renew ip command

The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. For example, open terminal and type the command:
$ sudo dhclient -r
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

分类:

技术点:

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-11-16
  • 2022-01-27
  • 2021-11-06
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
相关资源
相似解决方案