... | ... | @@ -30,9 +30,9 @@ grub2-mkconfig -o /boot/grub2/grub.cfg |
|
|
MAC_CTRL=$(cat ifcfg-ethctrl | grep HWADDR | cut -d'=' -f2)
|
|
|
MAC_DATA=$(cat ifcfg-ethdata | grep HWADDR | cut -d'=' -f2)
|
|
|
|
|
|
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="${MAC_CTRL}", ATTR{type}=="1", KERNEL=="eth*", NAME="ethctrl"' > /etc/udev/rules.d/70-persistent-net.rules
|
|
|
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="'${MAC_CTRL}'", ATTR{type}=="1", KERNEL=="eth*", NAME="ethctrl"' > /etc/udev/rules.d/70-persistent-net.rules
|
|
|
|
|
|
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:67:39:84:04", ATTR{type}=="1", KERNEL=="eth*", NAME="ethdata"' >> /etc/udev/rules.d/70-persistent-net.rules
|
|
|
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="'${MAC_DATA}'", ATTR{type}=="1", KERNEL=="eth*", NAME="ethdata"' >> /etc/udev/rules.d/70-persistent-net.rules
|
|
|
```
|
|
|
|
|
|
Change the MAC address to the right ones ... |
|
|
\ No newline at end of file |