vim 编辑 /etc/network/interfaces 文件:
auto eth0 iface eth0 inet static address 192.168.1.2/24 gateway 192.168.1.1 dns-nameservers 192.168.1.1
vim 编辑 /etc/network/interfaces 文件:
auto eth0 iface eth0 inet static address 192.168.1.2/24 gateway 192.168.1.1 dns-nameservers 192.168.1.1
转载于:https://www.cnblogs.com/devIT/p/10126754.html