5 ubuntu修改网关

ubuntu修改网关

参考博客:http://t.zoukankan.com/kex1n-p-5195825.html

 

#1查看网关
route -n

#2 修改网关
vim /etc/network/interfaces #修改网关

vim /etc/NetworkManager/NetworkManager.conf #managed=true
 
#3 修改dns
vim /etc/resolv.conf
#nameserver 192.168.2.1(个人网关)
#nameserver 114.114.114.114
#nameserver 8.8.8.8
#nameserver 8.8.4.4

#4 重启
sudo reboot

 

posted @ 2022-09-30 10:59  风hua  阅读(172)  评论(0编辑  收藏  举报