android4.04下以太网测试,发现ping不通以太网,RX无数据

afei8856 2014-05-30 01:47:40
root@android:/ # busybox ifconfig
eth0 Link encap:Ethernet HWaddr 1E:ED:19:27:1A:B3
inet addr:192.168.0.220 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::1ced:19ff:fe27:1ab3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:5165 (5.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4608 (4.5 KiB) TX bytes:4608 (4.5 KiB)
...全文
449 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
afei8856 2014-06-03
  • 打赏
  • 举报
回复
有遇到过的吗?求解决啊
afei8856 2014-05-30
  • 打赏
  • 举报
回复
我设置的过程为: |root@android:/ # busybox ifconfig eth0 192.192.0.116 netmask 255.255.255.0 root@android:/ # busybox ifconfig eth0 up root@android:/ # busybox route add default gw 192.192.0.1 dev eth0 root@android:/ # setprop net.dns1 219.146.1.66 这个设置应该没问题吧?但是显示的设置结果却不对 root@android:/ # busybox route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
afei8856 2014-05-30
  • 打赏
  • 举报
回复
android ping外面,外面pingandroid也ping不通。查看了一下设置貌似没设置好网关: root@android:/ # busybox route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
nadleeh 2014-05-30
  • 打赏
  • 举报
回复
引用 楼主 afei8856 的回复:
root@android:/ # busybox ifconfig eth0 Link encap:Ethernet HWaddr 1E:ED:19:27:1A:B3 inet addr:192.168.0.220 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::1ced:19ff:fe27:1ab3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:5165 (5.0 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:64 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4608 (4.5 KiB) TX bytes:4608 (4.5 KiB)
外围设备ping android 还是android ping外面, 貌似好多android默认不回ICMP,只要arp回了就好了

21,597

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧