zoukankan      html  css  js  c++  java
  • Centos-6.8 x64导入虚拟机后,网卡启动失败

    CentOS Linux解决Device eth0 does not seem to be present
    
    [root@LS-Min ~]# cat /etc/udev/rules.d/70-persistent-net.rules 
    # This file was automatically generated by the /lib/udev/write_net_rules
    # program, run by the persistent-net-generator.rules rules file.
    #
    # You can modify it, as long as you keep each rule on a single
    # line, and change only the value of the NAME= key.
    
    # PCI device 0x8086:0x100e (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:76:6d:37", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
    
    # PCI device 0x8086:0x100e (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:0c:9d:76", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
    
    
    [root@LS-Min ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
    将 DEVICE="eth0"  改成  DEVICE="eth1"  ,
    将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址  HWADDR="08:00:27:0c:9d:76"
    [root@LS-Min ~]#service network restart  
     

     

  • 相关阅读:
    PyQt4 调用串口API pySerial API说明
    树的计算
    数据结构单链表实现
    虚函数和抽象函数
    静态内存和堆栈
    二叉树学习图片---郝斌
    汉诺塔
    循环队列的实现
    队列的实现
    栈的应用
  • 原文地址:https://www.cnblogs.com/ahjx1628/p/6496594.html
Copyright © 2011-2022 走看看