cd /etc/sysconfig/network-scripts
ls
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=a9490d4b-1396-4527-9bbd-35ba46a7530d
DEVICE=ens33
ONBOOT=yes
ZONE=public
NM_CONTROLLED=no
IPADDR=192.168.1.177
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
HWADDR=08:00:27:31:52:78
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6ADDR=2003:ac18::30a/64
IPV6_DEFAULTGW=2003:ac18/64
systemctl restart network
https://blog.csdn.net/sjhuangx/article/details/79618865
IPADDR=192.168.100.115
GATEWAY=192.168.100.1
DNS1=192.168.100.1
DNS2=218.201.4.3
systemctl restart NetworkManager
ifup eth0 && ip addr
https://linuxconfig.org/rhel-8-configure-static-ip-address