IP forwarding failure in android 4.0


http://osdir.com/ml/android-x86/2013-01/msg00114.html


Hi,I have the same problem about ip forward in android 4.0. And it works in fedora 14 and android 2.3. I don't kown the reason. So I want to kown that do you have resolved the issis. Thanks!

å 2012å3æ29æææåUTC+8äå8æ41å07çïMatthieuDåéïhi,

First, thanks for your work, Android-x86 is a great project!

I have compiled ICS generic_x86-eng and I test IP forwarding
functionality. My target has two ethernet ports. I connect two
computers(linux) to these ports.I give their ip:
192.168.0.1
192.168.1.1

In android console, i do :
netcfg eth0 up
ifconfig eth0 192.168.0.2
netcfg eth1 up
ifconfig eth1 192.168.1.2

Android target can ping 192.168.0.1 and 192.168.1.1

Now, i want that 192.168.0.1 can ping 192.168.1.1.

on 192.168.1.1: route add -net 192.168.0.0 netmask 255.255.255.0 gw
192.168.1.2
on 192.168.0.1: route add -net 192.168.1.0 netmask 255.255.255.0 gw
192.168.0.2

And finally on android target: echo 1 > /proc/sys/net/ipv4/conf/all/
forwarding
(/proc/sys/net/ipv4/conf/all/forwarding pass to 1)

Now, on 192.168.1.1, I can ping 192.168.0.2 but not 192.168.0.1.

it seems that IP forwarding doesn't work.

I look in kernel config, but i don't find that can I change..Anyone
got an idea?

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/2VKefmCHlP4J.
To post to this group, send email to android-x86@xxxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to android-x86+unsubscribe@xxxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.

posted @ 2016-07-16 14:47  张同光  阅读(118)  评论(0编辑  收藏  举报