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 @   张同光  阅读(118)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示