|
|
|
# Ethernet Interface names
|
|
|
|
|
|
|
|
1. The Grub Bootloader needs a flag, to forget about the actual IF names.
|
|
|
|
|
|
|
|
1.1 for diskless nodes, add in file `pxelinux.cfg/default` to the append line `net.ifnames=0`
|
|
|
|
|
|
|
|
1.2 on disk installations, update all files vim `/etc/sysconfig/network-scripts/ifcfg-*`, update grub config `/etc/default/grub` and add to the line GRUB_CMDLINE_LINUX at the end `net.ifnames=0`, rebuild grub afterwards with `grub2-mkconfig -o /boot/grub2/grub.cfg`
|
|
|
|
|
|
|
|
```
|
|
|
|
# change computenode network interface names
|
|
|
|
cd /etc/sysconfig/network-scripts/
|
|
|
|
mv ifcfg-eth0 ifcfg-ethctrl
|
|
|
|
sed -i 's/eth0/ethctrl/' ifcfg-ethctrl
|
|
|
|
mv ifcfg-eth1 ifcfg-ethdata
|
|
|
|
sed -i 's/eth1/ethdata/' ifcfg-ethdata
|
|
|
|
```
|
|
|
|
2. Tell udev to rewrite. Create `/etc/udev/rules.d/70-persistent-net.rules` with:
|
|
|
|
|
|
|
|
```
|
|
|
|
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:67:39:84:04", ATTR{type}=="1", KERNEL=="eth*", NAME="ethdata"
|
|
|
|
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:67:39:84:03", ATTR{type}=="1", KERNEL=="eth*", NAME="ethctrl"
|
|
|
|
```
|
|
|
|
|
|
|
|
Change the MAC address to the right ones ... |
|
|
|
\ No newline at end of file |