Author Topic: Ip Forwarding On C700  (Read 2252 times)

JohnCCurtis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Ip Forwarding On C700
« on: December 28, 2004, 04:04:35 pm »
Honestly, I can't find any resources for turning on IP forwarding on the Zaurus (e.g., Embedix / Qtopia).  Does anyone have an idea? I've tried to model it after Red Hat Linux but that hasn't worked.
Just to be clear: This is the Sharp-provided Embedix ROM image, not the Cacko or OpenZaurus ROM.

John Curtis
JohnCurtis@IEEE.org
908.415.8026 Mobile
JohnCurtis@VText.com SMS/Text

JohnCCurtis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Ip Forwarding On C700
« Reply #1 on: December 29, 2004, 09:31:02 am »
With hommage to a friend of mine, Craig Miller of Ottawa, the answer is the same as on normal Linux:

       echo "1" > /proc/sys/net/ipv4/ip_forward

Of course, Embedix/Qtopia overwrites the ip_forward file contents upon reboot so whether you write the contents to the file as per the above or simply "vi" the existing file, you'll need to do the same following each reboot (or create a login macro). I don't know of a way to make the change persistent.

JohnCCurtis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Ip Forwarding On C700
« Reply #2 on: January 02, 2005, 07:09:43 pm »
Two further updates:

1. It's not possible to edit the file correctly with "vi". One must use the "echo" procedure described earlier.

2.  "One-armed" routing also works on Zaurus C700 with the Sharp ROM (i.e., assigning multiple IP addresses to a single interface and routing between them). One simply needs to enable IP aliasing (not NAT) with "ifconfig [current LAN interface]:0 [new IP address] netmask [new IP mask] up". For instance, if the Ethernet interface is "eth0" and the desired, new IP address is 10.2.2.2/255.0.0.0, then one would enter "ifconfig eth0:0 10.2.2.2 netmask 255.0.0.0 up". One can add additional IP addresses with "ifconfig eth0:1 ...", "ifconfig eth0:2...", etc.