ubuntu network is unreachable 解决记
2013-04-02 18:08
459 查看
原文地址:http://linux.ctocio.com.cn/335/8718335.shtml
由于自己的本本经常要在好几个地方用,所以每到一个地方就得重新配置一下网络。当配置完ip和DNS后,内网的机器都可以ping通,网关也能ping通,但是ping 外网的就是不行。
由于自己的本本经常要在好几个地方用,所以每到一个地方就得重新配置一下网络。当配置完ip和DNS后,内网的机器都可以ping通,网关也能ping通,但是ping 外网的就是不行。 一直提示 network is unreachable 此问题的解决方法就是:增加一个缺省的网关。 总结一下,步骤如下: 1.配置ip,配置 /etc/network/interfaces 文件 2.然后是DNS,配置 /etc/resolv.conf 例如: 配置静态IP地址 sudo vim /etc/network/interfaces 内容如下: auto lo iface lo inet loopback iface eth0 inet static address 172.16.15.97 netmask 255.255.248.0 gateway 172.16.15.253 auto eth0 配置DNS vim /etc/resolv.conf 增加以下内容: nameserver 211.95.193.97 nameserver 211.92.8.161 3.增加默认网关 route add default gw 172.16.15.253 4.重新启动网络配置 sudo /etc/init.d/networking restart 本文关键词: Linux,Ubuntu,技巧
由于自己的本本经常要在好几个地方用,所以每到一个地方就得重新配置一下网络。当配置完ip和DNS后,内网的机器都可以ping通,网关也能ping通,但是ping 外网的就是不行。
由于自己的本本经常要在好几个地方用,所以每到一个地方就得重新配置一下网络。当配置完ip和DNS后,内网的机器都可以ping通,网关也能ping通,但是ping 外网的就是不行。 一直提示 network is unreachable 此问题的解决方法就是:增加一个缺省的网关。 总结一下,步骤如下: 1.配置ip,配置 /etc/network/interfaces 文件 2.然后是DNS,配置 /etc/resolv.conf 例如: 配置静态IP地址 sudo vim /etc/network/interfaces 内容如下: auto lo iface lo inet loopback iface eth0 inet static address 172.16.15.97 netmask 255.255.248.0 gateway 172.16.15.253 auto eth0 配置DNS vim /etc/resolv.conf 增加以下内容: nameserver 211.95.193.97 nameserver 211.92.8.161 3.增加默认网关 route add default gw 172.16.15.253 4.重新启动网络配置 sudo /etc/init.d/networking restart 本文关键词: Linux,Ubuntu,技巧
相关文章推荐
- .ubuntu network is unreachable 解决记
- ubuntu network is unreachable 解决记
- Ubuntu network is unreachable解决方法
- ubuntu network is unreachable 解决记
- ubuntu network is unreachable解决办法
- ubuntu network is unreachable 解决记
- ubuntu network is unreachable 解决记
- 解决ubuntu下ftp登录错误:do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
- network is unreachable 网关PING不通解决办法
- Virtual Box Linux 虚拟机常见问题解决:Network is unreachable
- 关于"connect: network is unreachable" 及 虚拟机主机共享文件夹创建失败问题的解决
- 解决 MNIST数据集无法下载脚本input_data.py及pycharm 运行程序下载mnist数据报错[Errno 101] Network is unreachable
- VMWare虚拟机下 centos network is unreachable 问题的解决
- 解决archlinux下“network is unreachable”问题?
- 关于connect:network is unreachable问题的解决
- 解决:connect Network is unreachable 和 ping unknown host www.baidu.com
- 使用javamail出现java.net.SocketException: Network is unreachable: connect异常 解决方法
- Ubuntu network is unreachable
- VM下安装Centos6.4发ping外网时出现"network is unreachable"解决