设置固定IP地址nano /etc/network/interfaces iface eth0 inet static address 192.168.1.50 netmask 255.255.255.0 gateway 192.168.1.1设置DNS服务器nano /etc/resolv.conf nameserver 8.8.8.8 最后修改:2025 年 11 月 16 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏