cd /etc/sysconfig/network-scripts
# ifcfg-xxx,xxx为hostname或者网卡名

# IPADDR=192.168.255.101
# GATEWAY=192.168.255.2
# NETMASK=255.255.255.0
# DNS=192.168.255.1

# 重启网络服务
service network restart

# To Be Continued!😎

Last Updated: 1/20/2022, 11:14:17 PM