请进行如下操作:
  [root@localhost Desktop]# service network restart
  Shutting down interface eth0: Error: Device \'eth0\' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active
  [FAILED]
  Shutting down loopback interface: [ OK ]
  Bringing up loopback interface: [ OK ]
  Bringing up interface eth0: Error: Connection activation failed: Device not managed by NetworkManager or unavailable
  [FAILED]
  [root@localhost Desktop]# chkconfig NetworkManager off
  [root@localhost Desktop]# chkconfig network on
  [root@localhost Desktop]# service NetworkManager stop
  Stopping NetworkManager daemon: [ OK ]
  [root@localhost Desktop]# service network start
  Bringing up loopback interface: [ OK ]
  Bringing up interface eth0: [ OK ]
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  RTNETLINK answers: File exists
  [root@localhost Desktop]# service network restart
  Shutting down interface eth0: [ OK ]
  Shutting down loopback interface: [ OK ]
  Bringing up loopback interface: [ OK ]
  Bringing up interface eth0: [ OK ]
  [root@localhost Desktop]# ifconfig
  eth0 Link encap:Ethernet HWaddr 00:0C:29:A0:C6:44
  inet addr:192.168.1.189 Bcast:192.168.1.255 Mask:255.255.255.0
  UP BROADCAST MULTICAST MTU:1500 Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
  
  lo Link encap:Local Loopback
  inet addr:127.0.0.1 Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING MTU:16436 Metric:1
  RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
  
  [root@localhost Desktop]# iptables -L
  Chain INPUT (policy ACCEPT)
  target prot opt source destination
  ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  ACCEPT icmp -- anywhere anywhere
  ACCEPT all -- anywhere anywhere
  ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
  REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
  
  Chain FORWARD (policy ACCEPT)
  target prot opt source destination
  REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
  
  Chain OUTPUT (policy ACCEPT)
  target prot opt source destination
  [root@localhost Desktop]# iptables -F

转载于:https://www.cnblogs.com/xuedexin/articles/5379965.html

Linux 6.4 网卡提示 not active怎么办Shutting down interface eth0: Error:相关推荐

  1. CentOS重新加载网卡报错 Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/23

    重新加载网卡时出现的错误如下: 1 [root@vdb1 dev]# service network restart 2 Shutting down interface eth0: Device st ...

  2. linux双网卡绑定同一IP步骤,linux系统双网卡绑定单个IP地址

    双网卡绑定单个IP地址为了提供网络的高可用性,我们可能需要将多块网卡绑定成一块虚拟网卡对外提供服务,这样即使其中的一块物理网卡出现故障,也不会导致连接中断.多网卡绑. 为了提供网络的高可用性,我们可能 ...

  3. linux环境下单网卡配置多个IP地址(详细)

    1.使用命令进行配置 这就很简单了,首先查看一下当前机器的IP地址,命令如下: [html]  view plain copy #ifconfig eth0       Link encap:Ethe ...

  4. 服务器linux安装后没有网卡驱动,解决安装Linux之后没有网卡驱动

    新买的一台HP台式机(HP EliteDesk 800 G2 TWR)安装Linux当做测试环境使用,安装完成之后发现没有网卡. 操作系统:Red Hat Enterprise Linux Serve ...

  5. linux网卡驱动离线安装_解决安装Linux之后没有网卡驱动

    新买的一台HP台式机(HP EliteDesk 800 G2 TWR)安装Linux当做测试环境使用,安装完成之后发现没有网卡. 操作系统:Red Hat Enterprise Linux Serve ...

  6. Linux下一块网卡设置多个IP地址

    在windows下给一块网卡设置多个IP,是比较容易的,今天我写的内容是关于在LINUX系统下,给一块网卡设置多个IP地址,在Linux系统下面,第一块网卡就叫eth0,第二块网卡就叫eth1,这里我 ...

  7. Linux设置一个网卡IP地址,linux下一块网卡设置多个ip地址(示例代码)

    无论是在实际的生产坏境中,还是平时的练习中, 一个网卡设置多个ip地址是非常常见的,也是非常有用的. 我们以centos6.8系统为列, 在一块网卡上设置多个ip地址. 1>. 给一块网卡设置多 ...

  8. Linux下双网卡绑定(bonding技术)

    Linux网卡绑定探析 2013-08-20 15:39:31 现在很多服务器都自带双千兆网口,利用网卡绑定既能增加网络带宽,同时又能做相应的冗余,目前应用于很多的场景.linux操作系统下自带的网卡 ...

  9. linux服务器多网卡bond

    将多个Linux网络端口绑定为一个,可以提升网络的性能,比如对于备份服务器,需要在一个晚上备份几个T的数据, 如果使用单个的千兆网口将会是很严重的瓶颈.其它的应用,比如ftp服务器,高负载的下载网站, ...

  10. linux网卡驱动离线安装_新装Linux系统没有网卡驱动的解决办法和步骤

    刚安装的linux系统没有网卡驱动,下面给出我的解决方法: (机器系统是RHEL5.3) 首先说明几个命令: #lsmod --显示已载入系统的模块. 执行lsmod指令,会列出所有已载入系统的模块. ...

最新文章

  1. STM32外设有哪些?外设在总线上是怎么挂载的?
  2. php把字符串变为数组_php将字符串转换为数组
  3. 面试官:看你简历写了熟悉Kafka,它为什么速度会这么快?
  4. C/C++:各类型变量占用字节
  5. [转]数据中心网络虚拟化 隧道技术
  6. IDEA代码自动换行
  7. 全栈工程师可以分为哪几类?
  8. 【转】上大数学系博士点
  9. struct sk_buff结构体详解
  10. 集群监控:Ambari和Cloudera Manger
  11. 大数据开发和大数据分析应该怎么选择?
  12. 整理并记录几种运算放大器
  13. DICOM:再次剖析fo-dicom中DicomService的自定义事件绑定
  14. 互联网人才泡沫:百度腾讯阿里大打人才争夺战
  15. 有一个企微运营机器人同事是一种什么体验?
  16. LeetCode 217、219. 存在重复元素
  17. 搭建AI智能语音外呼系统
  18. 互联网大厂薪资真实情况:年薪百万有多难?
  19. 速度不够,管道来凑——Redis管道技术
  20. vscode 批量重命名_vscode配置 打造性感好用的编辑器

热门文章

  1. Hibernate常出现的报错
  2. java容器取交集、并集、补集、差集示例
  3. 监控数据库锁阻塞_机器连接数_警报日志的shell脚本 分享
  4. 比较各种SpA分类标准
  5. [转]以绝招应对损招 查***
  6. 浅谈Hybrid技术的设计与实现
  7. Spring 最常用的 7 大类注解,史上最强整理!
  8. 不到 20 人的互联网公司该去吗?
  9. 火币网交易所架构演进
  10. 这视频里的人真是帅爆了!