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