Ubuntu network is unreachable
2010-07-16 17:38
375 查看
每次在装ubuntu的时候,如果连上网络,到设置apt源的那步,总要等半天, 所以我就拔掉网线,选择为暂不配置
装完之后要第一件事要配置ip,在配置好 /etc/network/interfaces 之后,也配置了 /etc/resolv.conf
内网的机器都可以ping通 但是ping 外网的就是不行·~一直提示 network is unreachable
在增加一个缺省的网关后 所有问题ok
我初学linux 希望各位高手多多指教
我的配置如下:
配置静态IP地址
sudo vi /etc/network/interfaces
内容如下:
auto lo
iface lo inet loopback
auto eth0
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
address 192.168.1.8
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
geteway 192.168.1.1
配置DNS
vi /etc/resolv.conf
增加内容:
nameserver 192.168.1.1
naserver 202.106.0.20
配置网关
route add default gw 192.168.1.1
重新启动网络配置
/etc/init.d/networking restart
装完之后要第一件事要配置ip,在配置好 /etc/network/interfaces 之后,也配置了 /etc/resolv.conf
内网的机器都可以ping通 但是ping 外网的就是不行·~一直提示 network is unreachable
在增加一个缺省的网关后 所有问题ok
我初学linux 希望各位高手多多指教
我的配置如下:
配置静态IP地址
sudo vi /etc/network/interfaces
内容如下:
auto lo
iface lo inet loopback
auto eth0
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
address 192.168.1.8
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
geteway 192.168.1.1
配置DNS
vi /etc/resolv.conf
增加内容:
nameserver 192.168.1.1
naserver 202.106.0.20
配置网关
route add default gw 192.168.1.1
重新启动网络配置
/etc/init.d/networking restart
相关文章推荐
- ubuntu network is unreachable 解决记
- 解决ubuntu下ftp登录错误:do_ypcall: clnt_call: RPC: Unable to send; errno = 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 12.04上vsftp报错:do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
- ubuntu network is unreachable 解决记
- Ubuntu network is unreachable解决方法
- ping: sendto: Network is unreachable
- windows平台下安装linux虚拟机,宿主机与虚拟机ping不通,提示connect network is unreachable
- linphone - Network is unreachable (真的时网络不可达)
- centos7 minimal connect: Network is unreachable(转)
- connect:Network is unreachable error 解决方法
- ping: sendto: Network is unreachable
- 【Debian】非法关机后无法联网 connect: network is unreachable
- suse linux原创案例07: linux网络问题:Network is unreachable
- ping: sendto: Network is unreachable