1、service network restart报错,具体报错如下:

Restarting network (via systemctl):  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 查看具体报错信息,也可查看cat /var/log/messages|grep network

Jun 23 22:46:32 localhost systemd: Starting LSB: Bring up/down networking...
Jun 23 22:46:32 localhost NetworkManager[1006]:   ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Jun 23 22:46:32 localhost network: Bringing up loopback interface:  [  OK  ]
Jun 23 22:46:32 localhost network: Bringing up interface eno16777736:  Error: Connection activation failed: Connection 'eno16777736' is not available on the device eno16777736 at this time.
Jun 23 22:46:32 localhost network: [FAILED]
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost network: RTNETLINK answers: File exists
Jun 23 22:46:32 localhost systemd: network.service: control process exited, code=exited status=1
Jun 23 22:46:32 localhost systemd: Failed to start LSB: Bring up/down networking.
Jun 23 22:46:32 localhost systemd: Unit network.service entered failed state.
Jun 23 22:46:32 localhost systemd: network.service failed.

解决办法:

大意是跟系统自带的NetworkManager这个管理套件有关系,关掉就可以解决。

试一下:

systemctl stop NetworkManager

systemctl disable NetworkManager

Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.

Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.

Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.

重新启动网络:

systemctl start network.service

执行ifconfig查看,还是无法识别网卡信息:eno16777736

[root@localhost network-scripts]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::250:56ff:fe3b:1be3  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:3b:1b:e3  txqueuelen 1000  (Ethernet)
        RX packets 1  bytes 86 (86.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 628 (628.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 770  bytes 65420 (63.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 770  bytes 65420 (63.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

继续查看cat /var/log/messages|grep network,发现是因为netmask错误导致

Jun 23 22:53:33 localhost systemd: Starting LSB: Bring up/down networking...
Jun 23 22:53:33 localhost network: Bringing up loopback interface:  [  OK  ]
Jun 23 22:53:33 localhost network: Bringing up interface eno16777736:  ipcalc: bad netmask: 225.225.225.0
Jun 23 22:53:33 localhost network: ipcalc: bad netmask: 225.225.225.0
Jun 23 22:53:33 localhost network: ipcalc: bad netmask: 225.225.225.0
Jun 23 22:53:35 localhost network: Error: an inet prefix is expected rather than "192.168.137.15/".
Jun 23 22:53:35 localhost network: ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Error adding address 192.168.137.15 for eno16777736.
Jun 23 22:53:35 localhost /etc/sysconfig/network-scripts/ifup-eth: Error adding address 192.168.137.15 for eno16777736.
Jun 23 22:53:35 localhost network: bind: Cannot assign requested address
Jun 23 22:53:35 localhost network: Error: an inet prefix is expected rather than "192.168.137.15/".
Jun 23 22:53:35 localhost NET[3750]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf
Jun 23 22:53:35 localhost network: [  OK  ]
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost network: RTNETLINK answers: File exists
Jun 23 22:53:35 localhost systemd: Started LSB: Bring up/down networking.

修改/etc/sysconfig/network-scripts/

[root@localhost network-scripts]# cat ifcfg-eno16777736
HWADDR=00:0C:29:0D:ED:88
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=52e0ff70-7e89-46ae-8f7a-699099c36f5e
ONBOOT=yes
IPADDR=192.168.137.15
GATEWAY=192.168.137.2
NETMASK=255.255.255.0
DNS1=192.168.1.1

然后重启服务:service network restart 问题解决。

[root@localhost network-scripts]# ping www.baidu.com
PING www.a.shifen.com (220.181.112.244) 56(84) bytes of data.
64 bytes from 220.181.112.244: icmp_seq=1 ttl=128 time=26.7 ms
64 bytes from 220.181.112.244: icmp_seq=2 ttl=128 time=25.0 ms
64 bytes from 220.181.112.244: icmp_seq=3 ttl=128 time=24.8 ms
64 bytes from 220.181.112.244: icmp_seq=4 ttl=128 time=24.6 ms
64 bytes from 220.181.112.244: icmp_seq=5 ttl=128 time=27.0 ms
64 bytes from 220.181.112.244: icmp_seq=6 ttl=128 time=25.1 ms
64 bytes from 220.181.112.244: icmp_seq=7 ttl=128 time=27.8 ms
64 bytes from 220.181.112.244: icmp_seq=8 ttl=128 time=30.4 ms
^C
--- www.a.shifen.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7014ms
rtt min/avg/max/mdev = 24.662/26.459/30.403/1.848 ms

解决克隆RHEL7后网络无法启动问题相关推荐

  1. 解决克隆虚拟机后无法上网问题(亲测有效)

    解决克隆虚拟机后无法上网问题 克隆虚拟机后,所有的虚拟机都无法上网. 输入ifconfig命令,显示没有ip地址. 在网上找到的很多方法,大多是重新生成MAC,设置ip配置文件等. 重新打开网络服务多 ...

  2. phpstudy mysql端口_完美解决phpstudy安装后mysql无法启动(无需删除原数据库,无需更改任何配置,无需更改端口)直接共存...

    今天学习php,当然是要先安装好运行环境了,phpstyudy是一个运行php的集成环境, 一键安装对新手很友好,与时作为一个新手,便跟着教程安装了phpstudy集成环境. 很快安装好了,嗯.对新手 ...

  3. mysql删除端口配置文件_完美解决phpstudy安装后mysql无法启动(无需删除原数据库,无需更改任何配置,无需更改端口)直接共存...

    今天学习php,当然是要先安装好运行环境了,phpstyudy是一个运行php的集成环境, 一键安装对新手很友好,与时作为一个新手,便跟着教程安装了phpstudy集成环境. 很快安装好了,嗯.对新手 ...

  4. FEDORA9安装后的配置lvlv全记录必看一览表 解决FC9安装后网络需激活

    FEDORA9安装后的配置lvlv全记录必看一览表 解决FC9安装后网络需激活 论坛相关精品信息: <script type="text/javascript">< ...

  5. WIN7开机后网络连接启动慢的手动解决方法

    我的电脑问题: 用安全软件优化了,然后自己又手动禁止了一些服务,所以导致很长一段时间内,每次电脑启动后至少要等10到20秒网络连接和音量图标才弹出来--(但是短时间内再次重启,网络连接又出现的很快,奇 ...

  6. VMware 克隆虚拟机后网卡无法启动

    今天使用 VMware Workstation 时,出现了一个问题.克隆目前存在的 RHEL 7系统后,网卡无法正常启动,报错如下: [root@wangmj Desktop]# systemctl ...

  7. 解决安装win7后ubuntu无法启动问题

    我们经常会遇到在安装ubuntu后安装win7会导致ubuntu无法启动 网络上给出了很多方法,都用过,当然有成功也有失败 在这里自己总结了一个方法: 首先,安装win7后ubuntu无法启动,这时可 ...

  8. 计算机重启后无法连接网络,简单几步解决win10重启后网络无法连接的问题

    电脑操作系统在使用的时候经常会被一些问题所困扰,近日就有使用win10精简版系统的用户表示自己的电脑出现了重启后网络无法连接的问题,不知道怎么去解决很是苦恼.所以今天小编为大家整理分享的就是关于win ...

  9. 通过CentOS克隆虚拟机后发现无法启动网卡或无法上网的解决办法

    虚拟机使用vmware workstation,网络配置为NAT,克隆后,通过ifconfig查看只显示lo网卡 ,通过ifconfig -a 可以查看到eth0,但是没有ip地址. 我们使用dhcl ...

  10. 解决克隆虚拟机后网卡设备无法识别启动问题的方法

    一.故障问题 从vmware workstation中克隆(clone)了一个CentOS 6的虚拟机, 启动之后发现网卡没有启动. 于是重启一下network服务,发现提示错误信息 "De ...

最新文章

  1. 技术实践 | Web 端实现 RTC 视频特效的解决方案
  2. wxHtml 示例:关于对话框测试
  3. take the bull by the horns blow one's own horn
  4. zookeeper 默认端口_ZooKeeper知识点汇总
  5. IDEA Maven的下载和配置
  6. python分布式编程_python分布式爬虫中的rules有什么用
  7. android统计流量,Android 获取手机整体流量使用情况以及某个应用的流量的统计
  8. 为什么有些小老板,做了一辈子,还是没办法发展大?
  9. sql server 群集_SQL Server 2014 –安装群集实例–分步(1/3)
  10. 数据质量低该如何解决
  11. npm下载和使用(超详细)
  12. Visual C++ 6.0下载安装及编写第一个C程序
  13. win11右键菜单缺少“新建“选项解决办法
  14. 算法导论 9.3-7 设计一个O(n)时间的算法,对于一个给定的包含n个互异元素的集合S和一个正整数k≤n,该算法能够确定S中最接近中位数的k个元素。
  15. 3线spi屏幕驱动方式
  16. string类----猜词游戏
  17. 小白运维linux命令总结,linux常用运维命令总结
  18. 新浪微博开发平台试用
  19. Netflix如何在上万台机器中管理微服务?(史上最全)
  20. 【郭东白架构课 模块二:创造价值】17|通用技能(下):架构师如何保障交付与沉淀知识?

热门文章

  1. 你要如何衡量你的人生?
  2. 如何运用时间管理四象限法则去管理时间?
  3. 大数乘方运算-C语言
  4. python连通区域计算长度_连通区域算法小结
  5. dnmap分布式集群扫描
  6. c语言ans作用,C语言的递归思想实例分析
  7. 日本語 IME输入法(Microsoft 输入法)切换问题
  8. 怎样利用计算机电源,计算机电源功耗如何计算?如何使用电脑功率计算器?
  9. 注意力机制如何助力GAN生成更高质量的图像?
  10. springboot房屋租赁合同报修系统java-ssm