1、修改IP
vim /etc/network/interfaces
# 内容
auto ens33
iface ens33 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
2、重启
systemctl restart networking
3、修改DNS
vim /etc/resolv.conf
# 添加
nameserver 114.114.114.114
1、修改IP
vim /etc/network/interfaces
# 内容
auto ens33
iface ens33 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
2、重启
systemctl restart networking
3、修改DNS
vim /etc/resolv.conf
# 添加
nameserver 114.114.114.114