My favorites | Sign in
Logo
                
Search
for
Updated Jul 06, 2009 by liveandroid
Labels: Featured, Phase-Deploy, Phase-Support
networkhowto  
config networking in LiveAndroid

Introduction

config networking via console

Commands

IP

ifconfig eth0 yourip netmask yourip's mask

ifconfig eth0 192.168.1.10 netmask 255.255.255.0

not ipconfig!!!

Gateway

route add default gw yourgateway dev eth0

route add default gw 192.168.1.1 dev eth0

DNS

setprop net.eth0.dns1 yourDNS

setprop net.eth0.dns1 208.67.222.222

Proxy Server

Sorry, I find a way to config proxy http://www.cnblogs.com/DesignPatterns/archive/2008/10/10/1307898.html.
But it only be in effect when reboot machine. LiveAndroid save data in memory, after reboot, all
go back to initial setting. We'll change it soon.


Comment by mehall.douglas, Jun 13, 2009

No dhcp support?

Comment by liveandroid, Jun 13, 2009

still not, we'll add it soon. thanks!

Comment by Sebakasam, Jul 06, 2009

I'm confused. How exactly do we do this? I've looked at these commands, but I am utterly baffeled.

Comment by Michael.Alvez, Jul 06, 2009

i got into terminal. input my information. and im getting a "permission denied"

Comment by liveandroid, Jul 06, 2009

liveandroid v0.2 dncp support, so you dont need configure it

Comment by stewart.midwinter, Jul 06, 2009

The instructions as printed above won't work because 'ipconfig' is not a command provided in the Android terminal. A second problem is that you don't have root access in the terminal that you reach through the DEV tools folder. However, you can get a root access terminal by typing Alt-F1 (at least, on a Windows PC). Still that doesn't give you an ipconfig command. It may be possible to do the same thing with the 'ip' command but I'm unable to do it at this time.

I'm looking forward to v.3 with DHCP networking enabled, since obviously a live CD with internet access is quite a bit more useful than one without it! :-) . Maybe check out how user kinneko has accomplished this in his LiveDroid? LIVE CD listed in the user comments on the Downloads page.

Comment by liveandroid, Jul 06, 2009

hi, command is ifconfig, not ipconfig. liveandroid v0.2 with dhcp support now

Comment by mikerin.slava, Jul 06, 2009

well if v0.2 has dhcp support, does that mean internet conection will be configured automatically? because calling dhclient does not work... and i have no internet conection

Comment by stewart.midwinter, Jul 07, 2009

Tried again in a Parallels virtual machine... When I run ifconfig specifying eth0 (sorry, not ipconfig!), I get an error message: ifconfig: SIOCSIFADDR no such device Looking in /system/etc/dhcpcd/dhcpcd.conf shows only a tiwlan0 interface. If I run ifconfig with this interface, I get the same error message.

Looking the livedroid CD mentioned on the downloads page, the developer there does have networking working. If I type 'ifconfig' I get a response showing the eth0 interface. I notice that in his boot sequence he runs a netcfg command. Hope this helps.

Comment by liveandroid, Jul 07, 2009

reply stewart.midwinter: you can use vitrualbox :)

Comment by dzo...@rambler.ru, Jul 08, 2009

on dhcp: # mkdir /data/misc/dhcp # dhcpcd eth0

Comment by geekshadow, Jul 08, 2009

sweet dhcp work with your tip ;)

Comment by gerald.fraser, Jul 08, 2009

I'm running latest virtualbox on windows 7 RC the same way network-wise as VB ubuntu 9.04, which works fine btw, i.e.using bridged network mode in setup, but I can't get internet to work on LiveAndroid?. Tried everything above ref ifconfig and dhcpcd without luck :(

What network settings work for you in virtualbox anyone?

Comment by earlthenut, Jul 08, 2009

I'm running Virtualbox 3.0.0 under Windows XP, I think my virtual machines work pretty well in general, I am able to get several versions of Ubuntu to work fine, networking and all. But I can not get networking working in Android 0.2 live CD. At the console, there is no eth0 under /dev, and if I do mkdir /data/misc/dhcp then dhcpcd eth0, I get "eth0: dhcpcd 4.0.1 starting" and "eth0: read_interface: No such device". I'm reasonably comfortable at the Linux command line; anybody have any ideas?

Comment by gerald.fraser, Jul 09, 2009

Yes that's exactly what I got.. but then I saw a post about using PCnet-Fast III and blow me its working! :)

Comment by pengjianqing, Jul 10, 2009

Running VirtualBox?-2.2.2,it works fine.It can connect to the network automatically,no need to extras work.

Comment by meghalc, Jul 14, 2009

is flash supported in the browser? Can I browse Youtube and Hulu?

Comment by shaverdoff, Jul 16, 2009

trying type setprop net.eth0.dns1 192.168.1.11(this is our dns looking to forwarders) and after nslookup mail.ru it can't doing any thing... Give me this: Server: 0.0.0.0 Address1 0.0.0.0 nslookup^ can't resolve 'mail.ru'

how fix?

Comment by shaverdoff, Jul 16, 2009

Avter make some /etc/resolv.conf (like any unix) with nameserver 192.168.1.11, and type nslookup mail.ru liveandroid say me about: Server: 192.168.1.11 Address1: 192.168.1.11 nslookup^ can't resolve 'mail.ru'

so... nothing happens after make some tuning...

Comment by rodrigo1.16u, Jul 17, 2009

:)

Comment by diakopter, Jul 22, 2009

I just published a blog post on how to enable networking in VMWare Workstation (the defaults did not work for me, like many commenters above).

LiveAndroid 0.2 network eth0 in VMWare Workstation

Comment by hooman.tadbiri, Jul 27, 2009

I boot my computer up with liveandroidv0.2.iso; but when I open the Browser, I get "Webpage is not available". I did this: ifconfig eth0 192.168.1.10 netmask 255.255.255.0 route add default gw 192.168.1.1 dev eth0 setprop net.eth0.dns1 4.2.2.4 and still I have the problem. Also I used: ping 4.2.2.4 and I got: PING 4.2.2.4 (4.2.2.4):56 data bytes ping: sendto: Network is unreachable What can I do and how can I solve the problem?

Comment by zeflar, Jul 30, 2009

confirmed virtualbox 3.02 on windows xp for the VM: 512 ram 128mb video PCnet-FAST III either NAT or Bridged

Cant do a proxy server so getting browser issues but I get an IP address from eth0 via DHCP on my LAN.

Comment by jonnymayne, Aug 02, 2009

Anybody tried to do this using a xen virtual machine? My networking section in the config file reads:

vif = 'type=ioemu, bridge=eth0'

I try to run "ifconfig eth0 192.168.1.10 netmask 255.255.255.0" and I get "ifconfig: SIOCSIFADDR no such device". The eth0 device just isn't there when I open the virtual machine. Any ideas?

Comment by jonnymayne, Aug 04, 2009

Result. The line was supposed to read:

vif = 'type=ioemu, bridge=eth0, model=pcnet'

eth0 appears under ifconfig after that.

Comment by sureshg.g, Aug 11, 2009

The eth0 interface is not at all listed in 'ifconfig'. When running "ifconfig eth0 192.168.1.10 netmask 255.255.255.0" , I get ifconfig: SIOCSIFADDR no such device error. Any idea how to resolve this ?

Make : Lenovo T60

Comment by stirling4631, Aug 12, 2009

Should I run all the above codes? ps: Can I browse websites without configuring anything when I run Android LiveCD in VMware Workstation for the first time?

Comment by davidkaifuku, Aug 31, 2009

When running in VmWare? with LiveAndroid0?.3, how can I figure out what the host IP address is? I want to access a server running on the host from the Android browser.

Comment by fabio.mazanatti, Oct 29, 2009

Just make it work from within VMWare Player - no need to configure anything inside Android, only configuring the network interface on vmware:

# First network interface card
ethernet0.present = "TRUE"
ethernet0.virtualDev = "vlance"
ethernet0.connectionType = "bridged"
ethernet0.addressType = "generated"
ethernet0.generatedAddressOffset = "0"
Comment by caavchen, Nov 22 (2 days ago)

Please try Android-x86 1.6, http://www.android-x86.org/. Both wifi and ethernet work, and configurable via GUI.


Sign in to add a comment
Hosted by Google Code