Disable ethernet device renaming upon system cloning for Linux

来源:互联网 发布:实型数据和浮点数 编辑:程序博客网 时间:2024/05/20 07:49

1. Specify static address in prototype system

modify /etc/network/interfaces

2. Clear out already stored MAC-name mappings

modify

Debian 4: /etc/udev/rules.d/z25_persistent-net.rules

Ubuntu  : /etc/udev/rules.d/70-persistent-net.rules

delete all lines like

 

3. Disable renaming at all

modify

Debian 4: /etc/udev/rules.d/z45_persistent-net-generator.rules

Ubuntu  : /etc/udev/rules.d/75-persistent-net-generator.rules

find

delete "eth*|" part from it as

 

That would be all for Debian / Ubuntu 810. Have no CentOS / RHs on hand so please add me if you have such systems.