Ubuntu 修改 IP/DNS

auto eth0

iface eth0 inet static

address 192.168.1.90

netmask 255.255.255.0

gateway 192.168.1.1


dns-nameservers 114.114.114.114


不要手动修改

vim /etc/resolv.conf 


你可能感兴趣的:(Ubuntu 修改 IP/DNS)