最近按照官网的文档进行gentoo安装遇到上不了网的问题,结果通过查看gentoo的启动信息发现其网卡名称不是以前的eth0了,取而代之的是eno16777736,其解决方案为如下,希望对大家有所帮助。
localhost etc # ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
解决方案:
cd /etc/conf.d/
mv net config_eno16777736
cd /etc/init.d
mv net.eth0 net.eno16777736
/etc/init.d/net.eno16777736 start
rc-update add net.eno16777736 default
service net.eno16777736 restart
本文出自 “放牛娃” 博客,请务必保留此出处http://fangniuwa.blog.51cto.com/10209030/1757789
原文地址:http://fangniuwa.blog.51cto.com/10209030/1757789