vim /etc/NetworkManager/system-connections/enp4s0.nmconnection
[ipv4]
method=manual
# 子网掩码为 255.255.254.0
address1=192.168.1.207/23,192.168.1.1
# 如果子网掩码为 255.255.255.0 则使用下面配置
# address1=192.168.1.207/24,192.168.1.1
dns=192.168.1.200;45.116.211.211
重启网卡
nmcli connection reload
nmcli connection down enp4s0
nmcli connection up enp4s0