现象描述

1. ifconfig只显示了lo,没有看到其他的网卡

Ubuntu16.04以太网突然断网的事情

但使用ifconfig -a 的时候会显示齐全

Ubuntu16.04以太网突然断网的事情

2. ifconfig之后显示enp2s0,但没有显示ip,netmask, gateway

1. sudo dhclient enp2s0
2. sudo ifconfig enp2s0
3. reboot

3. 重启后,ping命令还不能用,因为dns还没有设置,编辑/etc/resolv.conf ,加上dns服务器地址。(这个我没有遇到)

nameserver 8.8.8.8

nameserver 8.8.4.4

据说这个是Google免费提供的DNS服务器的ip地址。

相关文章:

  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-06-02
  • 2022-02-12
  • 2021-05-18
  • 2021-12-02
  • 2021-12-02
  • 2021-04-13
相关资源
相似解决方案