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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值