Centos 虚拟机网络问题,网卡起不来,重启network服务失败
拷贝了个虚拟机,有两个网卡,1个可以起来,另一个起不来。运行命令:
$>systemctl restart network
输出如下:Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
根据提示,继续运行
$>systemctl status network.service ,输出:
● network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-05-05 17:34:58 CST; 4min 48s ago
Docs: man:systemd-sysv-generator(8)
Process: 5470 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
Process: 5668 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
May 05 17:34:57 head systemd[1]: Starting LSB: Bring up/down networking...
May 05 17:34:58 head network[5668]: Bringing up loopback interface: [ OK ]
May 05 17:34:58 head network[5668]: Bringing up interface enp0s3: Connection successfully activated (D-Bus a...ion/4)
May 05 17:34:58 head network[5668]: [ OK ]
May 05 17:34:58 head network[5668]: Bringing up interface enp0s8: Error: Connection activation failed: No su...ction.
May 05 17:34:58 head network[5668]: [FAILED]
May 05 17:34:58 head systemd[1]: network.service: control process exited, code=exited status=1
May 05 17:34:58 head systemd[1]: Failed to start LSB: Bring up/down networking.
May 05 17:34:58 head systemd[1]: Unit network.service entered failed state.
May 05 17:34:58 head systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
ifup也起不来
$> ifup enp0s8
Error: Connection activation failed: No suitable device found for this connection.
网上搜了一通,然并卵,发现虚拟机右上角只能显示一个网卡,另一个显示不出来
分明就是没连上这个网卡了,到vbox里查看发现
接入网线选项没勾上!
选上之后重启网卡,一切ok(无须重启机器)。
最新文章
- python 优矿自动化交易
- jQuery UI 实现图片循环显示,常用于网站首页banner广告切换
- android自定义控件(8)-利用onMeasure测量使图片拉伸永不变形,解决屏幕适配问题
- 重新想象 Windows 8.1 Store Apps (85) - 警报通知(闹钟), Tile 的新特性
- ural 1433. Diamonds
- CSS控制print打印样式
- Oracle 事务相关的一些测试
- 搭建Nuget
- 分享注册AltiumDesignerLive官网账号注册方法教程
- Python正则表达式完全指南(上)
- Linux常用命令和常见问题解决<;------>;第一章
- Android shared_preference操作
- ssh_maven之controller层开发
- Hive函数:rank()、dense_rank()
- zookeeper集群的简单搭建
- BZOJ.4399.魔法少女LJJ(线段树合并)
- Codeforces Round #337 (Div. 2) C. Harmony Analysis
- 11-DOM介绍
- FXAA
- EditPlus 4.3.2555 中文版已经发布
热门文章
- arm-linux内核start_kernel之前启动分析(1)-接过bootloader的衣钵
- 【PHP】(原创)之表单FORM的formhash校验,以TP3.2示例
- sql 语句中 id&;lt ;SELECT * FROM t_blog WHERE id&;lt;#{id} ORDER BY id DESC LIMIT 1
- easyui treegrid增、删、改及批量保存
- spring中添加redis缓存
- Mac Xcode下配置OpenGL
- 使用httpModules做一些事
- VMware配置网络的3种方式:NAT、Host-Only、Bridged
- Ubuntu11.04中如何将pycharm添加到系统的“应用程序”菜单里 (pycharm已成功安装)
- 【剑指offer】Q17:合并两个排序的链表