免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: homezknyy
打印 上一主题 下一主题

[网络管理] 求助!ping,错误提示:connect :network is unreachable [复制链接]

论坛徽章:
0
11 [报告]
发表于 2005-10-19 02:24 |只看该作者

求助!ping,错误提示:connect :network is unreachable

NETWORK=172.18.128.143 应该为NETWORK=172.18.128.0

BROADCAST=172.18.128.143 应该为BROADCAST=172.18.128.255

论坛徽章:
0
12 [报告]
发表于 2005-10-19 02:25 |只看该作者

求助!ping,错误提示:connect :network is unreachable

多谢各位的鼎立襄助,
奈何问题诡异,还未解决,我都快气爆了啊,
希望不要因为这个问题就让我放弃了linux。

论坛徽章:
0
13 [报告]
发表于 2005-10-19 02:27 |只看该作者

求助!ping,错误提示:connect :network is unreachable

vi /etc/sysconfig/network-scripts/ifcfg-eth0 ,把内容修改为:
DEVICE=eth0
ONBOOT=yes
IPADDR=172.18.128.143
NETMASK=255.255.255.0
GATEWAY=172.18.128.1
NETWORK=172.18.128.0
BROADCAST=172.18.128.255

保存后重起机器或网卡

论坛徽章:
0
14 [报告]
发表于 2005-10-19 02:28 |只看该作者

求助!ping,错误提示:connect :network is unreachable

还有看一下是不是ip和其他机器冲突了
你配置完重起后ifconfig eth0 看地址有了没
再先ping 自己,再ping 一下其他机器
然后  arp -a  看一下学到对端mac地址没?

论坛徽章:
0
15 [报告]
发表于 2005-10-19 02:45 |只看该作者

求助!ping,错误提示:connect :network is unreachable

ip 是没有重复的,都是唯一的。
[root@linux network-scripts]# cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.18.128.143
NETMASK=255.255.255.0
GATEWAY=172.18.128.1
TYPE=Ethernet
USERCTL=no
PEERDNS=no
NETWORK=172.18.128.0
BROADCAST=172.18.128.255
[root@linux network-scripts]# service network restart
Shutting down loopback interface:                          [  OK  ]
Setting network parameters:                                [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
[root@linux network-scripts]# ping 172.18.128.1
connect: Network is unreachable
[root@linux network-scripts]# ping 172.18.128.143
connect: Network is unreachable

还是不行。
难道是掩码不对?想想也不会啊,都是在 172.18.128 网段啊

论坛徽章:
0
16 [报告]
发表于 2005-10-19 03:02 |只看该作者

求助!ping,错误提示:connect :network is unreachable

就手工配置ip看能不能配置上

ifconfig eth0 172.18.128.143  netmask 255.255.255.0  broadcast 172.18.128.255

route add default gw 172.18.128.1(同一网段可以不要)
后再ping一下看
再ifconfig eth0  看一下
还不行,换根网线
(注意:这样重起后ip就掉了,需要写到脚本里)

论坛徽章:
0
17 [报告]
发表于 2005-10-19 03:47 |只看该作者

求助!ping,错误提示:connect :network is unreachable

linux 下,如下的信息能否判断网卡驱动安装正常?

(1)
[root@linux network-scripts]# cat /proc/pci
PCI devices found:
  Bus  0, device   0, function  0:
    Class 0600: PCI device 1106:0691 (rev 196).
      Master Capable.  Latency=8.
      Prefetchable 32 bit memory at 0xf4000000 [0xf7ffffff].
  Bus  0, device   1, function  0:
    Class 0604: PCI device 1106:8598 (rev 0).
      Master Capable.  No bursts.  Min Gnt=12.
  Bus  0, device   2, function  0:
    Class 0601: PCI device 1106:0596 (rev 1.
  Bus  0, device   2, function  1:
    Class 0101: PCI device 1106:0571 (rev 6).
      Master Capable.  Latency=32.
      I/O at 0xfff0 [0xffff].
  Bus  0, device   2, function  2:
    Class 0c03: PCI device 1106:3038 (rev .
      IRQ 10.
      Master Capable.  Latency=22.
      I/O at 0xfce0 [0xfcff].
  Bus  0, device   2, function  3:
    Class 0600: PCI device 1106:3050 (rev 32).
  Bus  0, device  16, function  0:
    Class 0200: PCI device 10ec:8029 (rev 0).
      IRQ 10.
      I/O at 0x74e0 [0x74ff].
  Bus  0, device  18, function  0:
    Class 0401: PCI device 125d:1988 (rev 16).
      IRQ 5.
      Master Capable.  Latency=16.  Min Gnt=2.Max Lat=24.
      I/O at 0x7800 [0x78ff].
  Bus  1, device   0, function  0:
    Class 0300: PCI device 10de:002d (rev 21).
      IRQ 11.
      Master Capable.  Latency=40.  Min Gnt=5.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xfd000000 [0xfdffffff].
      Prefetchable 32 bit memory at 0xfa000000 [0xfbffffff].

(2) ping 127.0.0.1  是通的。

论坛徽章:
0
18 [报告]
发表于 2005-10-19 03:49 |只看该作者

求助!ping,错误提示:connect :network is unreachable

网络设备为 realtek  ne2k-pci /dev/eth

但是 网络设备控制器里 的状态为“不活跃”,激活时,提示“无法激活”

论坛徽章:
0
19 [报告]
发表于 2005-10-19 23:39 |只看该作者

求助!ping,错误提示:connect :network is unreachable

如果 ifconfig -a 看不到你的网卡号  eth0 eth1 eth2 ..... 等的话 肯定就是你网卡驱动没有加载 加上你网卡驱动模块 然后再配置应该就可以了

使用 lspci | grep Ethernet 可以看出你的网卡是那个厂家或者型号 然后找相应驱动

论坛徽章:
5
NBA常规赛纪念章
日期:2015-05-04 22:32:03操作系统版块每日发帖之星
日期:2015-11-09 06:20:00操作系统版块每日发帖之星
日期:2015-11-10 06:20:00数据库技术版块每日发帖之星
日期:2016-01-14 06:20:00IT运维版块每日发帖之星
日期:2016-01-16 06:20:00
20 [报告]
发表于 2010-07-03 20:43 |只看该作者
我的centos出现如下错误:
[wang@centos ~]ping  192.168.1.193
connect :network is unreachable
[wang@centos ~]ifconfig -a
-bash:ifconfig:command not found
我觉得可能是我的系统没有安装好呀,我可以觉得要重新安装系统。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP