jancona / android-on-freerunner

Automatically exported from code.google.com/p/android-on-freerunner
1 stars 1 forks source link

usb0 interface address interferes with other addresses #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Plug free runner into host machine with ip address 192.168.0.*
2. Start usb0 host address to use adb, etc
3. Try and use the internet on either the freerunner or the host machine.

Alternatively,
1. Connect freerunner to wifi network with 192.168.0.* ip addresses (many
routers default to this)
2. Try and use the internet on the freerunner

What is the expected output? What do you see instead?
The internet should work on both machines, ideally, but since both are
trying to use the 192.168.0.200 network, routing fails, and neither machine
can properly access the internet.

What version of the product are you using? On what operating system?
Android cupcake 52 with gentoo linux on the host machine

Please provide any additional information below.

Traditionally, all openmoko phones have used 192.168.0.200 as an address. 
This has always been a problem when it interferes with the host network's
ip-range.  With AoF, the init.rc script sets the ip address and can only be
changed by rebuilding the kernel image. This means the typical
non-developer user cannot easily change that address if any networks he
connects to have an address in the 192.168.0.* range.  Possible solutions
are using a more obscure address, or to make changing the address easier.

Original issue reported on code.google.com by SirKha@gmail.com on 27 Dec 2009 at 6:49

GoogleCodeExporter commented 9 years ago
use the route command.When you plug your freerunner sometimes route address set
automatic to the freerunner address.
command route and enter will display your router gateway ip that computer 
actually have.

"route add default gw yourrouterip"(@computer) will set manually the gateway. 

If you still don't have internet on your freerunner ,try close your firewall 
If you still don't have internet on your freerunner,play with your iptables (do
forward to your freerunner)

Original comment by arispap2...@gmail.com on 3 Jan 2010 at 3:07

GoogleCodeExporter commented 9 years ago
Sry.I misunderstood.But if you still haven't got internet on both for some 
reason try
the above :P(Especially if you are using kde4-manager to set up your networks 
:P) 

Original comment by arispap2...@gmail.com on 3 Jan 2010 at 3:15

GoogleCodeExporter commented 9 years ago
This is a Freerunner issue and there are workarounds available on the Openmoko 
wiki: 
http://wiki.openmoko.org/wiki/Usb_networking

Original comment by scarhill on 17 Jan 2010 at 3:09