Pages

Tuesday, May 21, 2013

Android x86: setting-up IP Address using command line

Press Alt+F1 to go to the command line
For your IP, type:
ifconfig eth0 <ip> <netmask>
ex: ifconfig eth0 192.168.179.165 netmask 255.255.255.0

For your GATEWAY, type:
route add default gw <gateway> dev eth0
ex: route add default gw 192.168.179.202 dev eth0

For your DNS, type:
setprop net.eth0.dns1 <dns>
ex: setprop net.eth0.dns1 192.168.179.99

Lastly, your PROXY:
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
INSERT INTO system VALUES(99, 'http_proxy', '<proxy_server>:<port>');
ex: INSERT INTO system VALUES(99, 'http_proxy', '192.168.179.202:3128');

2 comments:

  1. worked for me on lolipop when i use ndc resolver setnetdns eth0 8.8.8.8 8.8.4.4 to configure dns

    ReplyDelete