|
我是在skyeye上运行uClinux的,uClinux启动时检查到了eth0,启动后我用ifconfig设了一下ip地址,如下
- /> /sbin/ifconfig eth0 10.0.0.2
- /> ifconfig
- eth0 Link encap:Ethernet HWaddr 00:04:03:02:01:0F
- inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:10 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:420 (420.0 B) TX bytes:0 (0.0 B)
- Interrupt:16
复制代码
然后在主机中输入ifconfig,显示tap0内容如下
- tap0 Link encap:Ethernet HWaddr 00:FF:AF:61:8A:BD
- inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 b) TX bytes:504 (504.0 b)
复制代码
可是从主机ping uClinux 不通,显示如下
- [root@localhost ucosii4skyeye]# ping 10.0.0.2
- PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
- From 10.0.0.1 icmp_seq=0 Destination Host Unreachable
- From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
- From 10.0.0.1 icmp_seq=2 Destination Host Unreachable
- From 10.0.0.1 icmp_seq=3 Destination Host Unreachable
- From 10.0.0.1 icmp_seq=4 Destination Host Unreachable
- From 10.0.0.1 icmp_seq=5 Destination Host Unreachable
- From 10.0.0.1 icmp_seq=7 Destination Host Unreachable
- From 10.0.0.1 icmp_seq=8 Destination Host Unreachable
复制代码
这样的情况有人遇到吗? |
|