学无先后,达者为师

网站首页 编程语言 正文

ip link set eno2 down后centos无法联网;centos7.0,二次启动后无法联网

作者:别出BUG求求了 更新时间: 2023-11-12 编程语言

解决方法:

ip link set eno2 down后ctrl+alt+f2回到cmd界面,ifconfig发现没有ens网卡。

ifconfig ens16777728 up

systemctl stop NetworkManager

systemctl disable NetworkManager

ifup ens16777728

systemctl restart network.server

注:

eno1:代表由主板bios内置的网卡。

ens1:代表有主板bios内置的PCI-E网卡。

enp2s0: PCI-E独立网卡。

eth0:如果以上都不使用,则回到默认的网卡名。

原文链接:https://blog.csdn.net/weixin_39589455/article/details/130639475

  • 上一篇:没有了
  • 下一篇:没有了
栏目分类
最近更新