31 lines
651 B
Markdown
31 lines
651 B
Markdown
|
With early networking and LUKS,
|
||
|
you dont want dracut overwriting your manual ifcfg config.
|
||
|
|
||
|
So follow these steps:
|
||
|
- Disable & mask rhel-import-state.service
|
||
|
- add NM_CONTROLLED=no to /etc/sysconfig/network-scripts/ifcfg-eth0
|
||
|
- Append %eth0 to the ipv6 gateway in the ifcfg script
|
||
|
|
||
|
Example ifcfg-eth0:
|
||
|
```
|
||
|
TYPE="Ethernet"
|
||
|
NM_CONTROLLED="no"
|
||
|
PROXY_METHOD="none"
|
||
|
BROWSER_ONLY="no"
|
||
|
BOOTPROTO="dhcp"
|
||
|
DEFROUTE="yes"
|
||
|
DNS1=1.1.1.1
|
||
|
DNS2=9.9.9.9
|
||
|
IPV4_FAILURE_FATAL="no"
|
||
|
IPV6INIT="yes"
|
||
|
IPV6ADDR=YOURIPADDRESS
|
||
|
IPV6_DEFAULTGW=fe80::1%eth0
|
||
|
DNS3=2606:4700:4700::1111
|
||
|
DNS4=2620:fe::fe
|
||
|
IPV6_FAILURE_FATAL="no"
|
||
|
NAME="eth0"
|
||
|
UUID="RANDOM"
|
||
|
DEVICE="eth0"
|
||
|
ONBOOT="yes"
|
||
|
```
|