1 文件位置
/etc/network/interfaces
2 文件内容
# 直接替换整一个文件内容即可
allow-hotplug eth0
no-auto-down eth0
iface eth0 inet static
address 192.168.1.22
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4
配置完成之后,记得执行sudo systemctl restart networking命令重启网络,然后扒开玩客云电源,再重新通电。
3 配置结果