• 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  
     

     

  • 相关阅读:
    avuex
    vue与avuex
    前端上班第十天
    echarts使用心得
    json转化技巧
    前端上班第一天
    声明函数的提升,声明变量与声明函数之间的区别有什么
    王屋山黑加仑
    微信小程序1
    js-基础
  • 原文地址:https://www.cnblogs.com/ahjx1628/p/6496594.html
Copyright © 2020-2023  润新知