bash
[connection]
id=ens160
uuid=cd246f67-c929-362a-809d-f1b44ddc5d25
type=ethernet
autoconnect-priority=-999
interface-name=ens160
timestamp=1719094243
[ethernet]
[ipv4] ## 在IPV4下面修改如下内容
method=manual
address=192.168.116.100/24,192.168.116.2 ## 修改IP,子网掩码;网关
dns=114.114.114.114 ## 设置DNS服务
may-fail=false
[ipv6]
addr-gen-mode=eui64
method=auto
[proxy]
bash
nmcli c reload
nmcli c up ens160