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
  • 相关阅读:
    最佳路径搜索算法1
    积分方程的程序化解决方案
    lcov
    nvidia driver
    dependency
    scp ssh-server
    boost 安装 latest
    ubuntu 快捷键
    nvidia drive
    查询优化器 postgres
  • 原文地址:https://www.cnblogs.com/zwj-linux/p/12517837.html
Copyright © 2011-2022 走看看