ubuntu network is unreachable 解决记
来源:互联网 发布:关键词优化骗局 编辑:程序博客网 时间:2024/06/05 01:58
转自:http://linux.chinaunix.net/techdoc/net/2009/01/02/1056129.shtml
由于自己的本本经常要在好几个地方用,所以每到一个地方就得重新配置一下网络。
当配置完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
0 0
- 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解决方法
- Network is unreachable
- connect: network is unreachable
- network is unreachable
- connect: network is unreachable
- 【SuSE】network is unreachable
- ping: Network is unreachable
- ubuntu联网出现:network is unreachable的解决方案
- Ubuntu配置网络时出现network is unreachable
- 关于connect: network is unreachable 问题的解决
- 关于connect: network is unreachable 问题的解决 .
- 关于connect: network is unreachable 问题的解决
- jquery操作常用表单元素代码
- LTE中基本通信过程的理解——小区搜索过程
- Java Web开发教程来袭
- Java开发中常见的危险信号
- jquery中$this和$(this)的区别
- ubuntu network is unreachable 解决记
- camera GC0329 GetInfo和GetResoluion的区别
- oracle 几个脚本记录
- 为什么要使用事件而不是委托变量?
- SharePreferences 跨APK读写操作
- javascript复习-day2
- SQL Server计算列(Computed Column)应用实例
- camera常见问题和调试方法
- WINCE下读写INI配置文件