vi 或者 nano /etc/network/interfacesnano /etc/network/interfacesauto eth0 iface eth0 inet static address 192.168.x.x netmask 255.255.255.0 gateway 192.168.x.x dns-nameservers 1.1.1.1网络服务重新启动systemctl restart networking
发表评论