Consistent Network Device Naming
- Add “net.ifnames=0” and “biosdevname=0” as kernel arguments to grub
- In ‘/etc/sysconfig/network-scripts/’ Change your configured NIC config file to ‘ifcfg-ethX’
- If you have multiple interfaces and want to control naming of each device rather than letting the kernel do in its own way, /etc/udev/rules.d/60-net.rules seems necessary to override /usr/lib/udev/rules.d/60-net.rules.
1 | $ vi /etc/default/grub |
1 | $ cd /etc/sysconfig/network-scripts/ |
1 | $ cat /etc/udev/rules.d/60-net.rules |
Author: Acqua
Link: https://acquaai.github.io/2017/11/29/Consistent-Network-Device-Naming/
License: 知识共享署名-非商业性使用 4.0 国际许可协议