zoukankan      html  css  js  c++  java
  • 克隆镜像后重置网卡的UUID

    克隆镜像后重置网卡的UUID(唯一识别符)

    # vim /etc/sysconfig/network-scripts/ifcfg-eth1 
    ...
    ##删除MAC地址行
    ...
    
    
    # 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 0x15ad:0x07b0 (vmxnet3)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:65:65:3c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
    
    # PCI device 0x15ad:0x07b0 (vmxnet3)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:7a:da:a7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
    
    ##删除MAC地址和UUID的绑定文件
    
    
    # shutdown -r now
    ##重启Linux
  • 相关阅读:
    nginx
    spring 学习
    mysql 免安装 操作
    院感干预 报错
    iis 无法绑定 net.tcp
    wangEditor 自定义 菜单
    院感干预 发布
    第17篇 shell编程基础(2)
    第16篇 Shell脚本基础(一)
    第15篇 PSR-04 规范
  • 原文地址:https://www.cnblogs.com/zwj-linux/p/12517837.html
Copyright © 2011-2022 走看看