1. 修改IP.网关(注意各项参数一致)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
2. 修改DNS
vi /etc/resolv.conf
3. 修改主机名
hostnamectl set-hostname server0.example.com
4. 重启网络服务
service network restart
或者
systemctl restart network
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/resolv.conf
hostnamectl set-hostname server0.example.com
service network restart
或者
systemctl restart network
相关课程