linux网络配置 connect:network is unreachable
题目
linux网络配置 connect:network is unreachable
刚装完机
已经设了/etc/sysconfig/network-scripts/ifcfg-eth0的ip
/etc/sysconfig/network的网关
/etc/resolt.conf的dns
并且service network restart 成功了
ping 网关,回路可以通
ping dns ——》connect:network is unreachable
有效路由为:
netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lo
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
ping 本地主机,其他主机可以通
ping dns 不通
防火墙也关了
答案
很显然 你没有获得ip 你获得是个内部测试ip .
建议检查线路
网卡应该没有问题.
回答完毕
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- 32安培能承受多少瓦电流
- 以王明为代表的左倾冒险主义错误的特征是 ( ) A主观主义 B经验主义 C教条主义 D宗派
- 光线从空气中入射到玻璃中,哪个是光密介质,那个是光疏介质
- 1/3+1/15+1/35+1/63+···1/9999=?
- 有一串数字,任何相邻的4个数和都是25,第1个是3,第6个是6,第11个是7,问第26个
- 氨水稀释,c(OH-)/c(NH3.H2O)怎么变化?
- 定义“好函数”的概念如下:存在常数k,使得对定义域D内的任意两个不同的实数x1、x2,均有|f(x1)-f(x2)|
- 将一条公路平均分给甲、乙两个工程队修筑.甲队已修的与剩下的比是2:1,乙队已修的与剩下的比是5:2.这条公路已修了全长的几分之几?
- 英语书信作文写给朋友
- 关于高中化学原子结构的几个概念问一下
热门考点