zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    C语言I作业12—学期总结
    C语言I博客作业11
    C语言I博客作业10
    预习非数值数据的编码方式
    计算机作业
    C语言||作业01
    C语言寒假大作战04
    C语言寒假大作战03
    C语言寒假大作战02
    C语言寒假大作战01
  • 原文地址:https://www.cnblogs.com/ztguang/p/12646046.html
Copyright © 2011-2022 走看看