Rocky9和CentOSStream9设置固定IP地址和CentOS不一样设置
设置以下文件
# cat /etc/NetworkManager/system-connections/ens3.nmconnection
[connection]
id=ens3
uuid=322d81cf-5218-304d-b537-ddbb2a0eed07
type=ethernet
autoconnect-priority=-999
interface-name=ens3
timestamp=1708584191
[ethernet]
[ipv4]
address1=192.168.3.58/24,192.168.3.72
dns=192.168.3.72;
method=manual
[ipv6]
addr-gen-mode=eui64
method=auto
[proxy]
如果设置不生效并且在重启电脑后的ip地址为原来老的ip地址则删除以下文件夹下多余的配置文件
只保留一个配置文件ens3.nmconnection
# /etc/NetworkManager/system-connections
标签:ens3,192.168,CentOSStream9,设置,IP地址,Rocky9
From: https://www.cnblogs.com/minseo/p/18029024