1、绪论
CentOS Stream 9作为CentOS Stream发行版的下一个主要版本,设置静态IP的方式和CentOS7/8差别较大;
2、配置文件路径
路径:
/etc/NetworkManager/system-connections/ ens160.nmconnection
3、在图形化界面配置静态IP
3.1、IPV4
3.2、IPV6
3.3、配置后的配置文件
[root@localhost system-connections]# cat ens160.nmconnection
[connection]
id=ens160
uuid=4af1de8a-f796-3bd8-9b16-5b455c3d855c
type=ethernet
autoconnect-priority=-999
interface-name