ubuntu 手动配置网络 IP DNS 网关

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

 

posted @ 2018-12-16 15:25  分享无止境  阅读(482)  评论(0编辑  收藏  举报