红帽9配置网络

1、手动修改配置文件

[root@node2 system-connections]# pwd
/etc/NetworkManager/system-connections
[root@node2 system-connections]# cat ens160.nmconnection 
[connection]
id=ens160
uuid=2ace5d31-8afb-3b1f-a824-202806f1c9ec
type=ethernet
autoconnect-priority=-999
interface-name=ens160
timestamp=1755187883

[ethernet]

[ipv4]
address1=192.168.50.12/24,192.168.50.2
dns=119.29.29.29;
method=manual

[ipv6]
addr-gen-mode=eui64
method=auto

[proxy]

# 手动创建
 nmcli connection add ifname eno33554992 con-name eth1 type ethernet 
posted @ 2025-08-18 11:51  乔的港口  阅读(23)  评论(0)    收藏  举报