开发者社区> 问答> 正文

虚拟机安装了linux系统后可以上网,但是提示alias:eth0:not found

[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:55:8E:7A

inet addr:192.168.83.129 Bcast:192.168.83.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3527 (3.4 KiB) TX bytes:3586 (3.5 KiB)

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1658 errors:0 dropped:0 overruns:0 frame:0
TX packets:1658 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2610896 (2.4 MiB) TX bytes:2610896 (2.4 MiB)

[root@localhost ~]# /etc/modprobe.conf
/etc/modprobe.conf: line 1: alias: eth0: not found
/etc/modprobe.conf: line 1: alias: e1000: not found
/etc/modprobe.conf: line 2: alias: scsi_hostadapter: not found
/etc/modprobe.conf: line 2: alias: mptbase: not found
/etc/modprobe.conf: line 3: alias: scsi_hostadapter1: not found
/etc/modprobe.conf: line 3: alias: mptspi: not found
/etc/modprobe.conf: line 4: alias: scsi_hostadapter2: not found
/etc/modprobe.conf: line 4: alias: ata_piix: not found
/etc/modprobe.conf: line 5: alias: scsi_hostadapter3: not found
/etc/modprobe.conf: line 5: alias: ahci: not found
/etc/modprobe.conf: line 6: alias: net-pf-10: not found
/etc/modprobe.conf: line 6: alias: off: not found
/etc/modprobe.conf: line 7: alias: ipv6: not found
/etc/modprobe.conf: line 7: alias: off: not found
/etc/modprobe.conf: line 8: options: command not found
/etc/modprobe.conf: line 9: alias: snd-card-0: not found
/etc/modprobe.conf: line 9: alias: snd-ens1371: not found
/etc/modprobe.conf: line 10: options: command not found
/etc/modprobe.conf: line 11: options: command not found
/etc/modprobe.conf: line 12: syntax error near unexpected token }'
/etc/modprobe.conf: line 12:remove snd-ens1371 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371'

我刚刚开始学习linux拜托大家帮忙看看,这是怎么个意思啊,是因为是虚拟机里安装的所以识别不了吗?

展开
收起
杨冬芳 2016-07-08 16:25:35 3175 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    您好,

    请问您的虚拟机是使用NAT上网的吗?如果 eth0 的IP地址 192.168.83.129 是有效的,可以通过此网卡上网的。那您现在具体的疑问是什么呢?

    2019-07-17 19:53:38
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载