LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 935|回复: 1

请教uClinux和主机的通讯问题

[复制链接]
发表于 2005-9-18 22:39:27 | 显示全部楼层 |阅读模式
我是在skyeye上运行uClinux的,uClinux启动时检查到了eth0,启动后我用ifconfig设了一下ip地址,如下
  1. /> /sbin/ifconfig eth0 10.0.0.2
  2.           /> ifconfig
  3.                   eth0      Link encap:Ethernet  HWaddr 00:04:03:02:01:0F
  4.                    inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.0
  5.                   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.                   RX packets:10 errors:0 dropped:0 overruns:0 frame:0
  7.                   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  8.                   collisions:0 txqueuelen:1000
  9.                   RX bytes:420 (420.0 B)  TX bytes:0 (0.0 B)
  10.                   Interrupt:16
复制代码


然后在主机中输入ifconfig,显示tap0内容如下
  1. tap0      Link encap:Ethernet  HWaddr 00:FF:AF:61:8A:BD
  2.           inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
  3.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  4.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  5.           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  6.           collisions:0 txqueuelen:1000
  7.           RX bytes:0 (0.0 b)  TX bytes:504 (504.0 b)
复制代码


可是从主机ping uClinux 不通,显示如下
  1. [root@localhost ucosii4skyeye]# ping 10.0.0.2
  2. PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
  3. From 10.0.0.1 icmp_seq=0 Destination Host Unreachable
  4. From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
  5. From 10.0.0.1 icmp_seq=2 Destination Host Unreachable
  6. From 10.0.0.1 icmp_seq=3 Destination Host Unreachable
  7. From 10.0.0.1 icmp_seq=4 Destination Host Unreachable
  8. From 10.0.0.1 icmp_seq=5 Destination Host Unreachable
  9. From 10.0.0.1 icmp_seq=7 Destination Host Unreachable
  10. From 10.0.0.1 icmp_seq=8 Destination Host Unreachable
复制代码


这样的情况有人遇到吗?
发表于 2005-11-22 00:10:04 | 显示全部楼层
同求解决办法!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表