美文网首页
Linux下,ifconfig后,不显示eth0

Linux下,ifconfig后,不显示eth0

作者: MissTomatoo | 来源:发表于2018-02-01 09:20 被阅读0次

问题:

创建Linux虚拟机后,通过xshell来远程连接时,需要知道虚拟机的IP。执行ifconfig命令后,只显示lo,不显示eth0。

解决:

1、进入etc/sysconfig/network-scripts目录:cd etc/sysconfig/network-scripts;

2、修改 ifcfg-eth0 文件的 ONBOOT=yes;

3、重启网络服务:service network restart;

4、执行ifconfig,即可显示eth0。

相关文章

网友评论

      本文标题:Linux下,ifconfig后,不显示eth0

      本文链接:https://www.haomeiwen.com/subject/tlcrzxtx.html