Unable to add gateway in 6.0 r1

1,407 views
Skip to first unread message

Kevin Freeman

unread,
Sep 22, 2016, 11:45:57 PM9/22/16
to Android-x86
Does 6.0 support static IP addresses with custom default gateway? I receive the following error when attempting to specify a gateway:

# route add default gw 10.0.128.1 eth0
route: resolving 'gw': No such file or directory

Is there an alternate method of specifying the default gw?

Chih-Wei Huang

unread,
Sep 23, 2016, 12:32:21 AM9/23/16
to Android-x86
2016-09-23 6:08 GMT+08:00 Kevin Freeman <kfre...@gmail.com>:
> Does 6.0 support static IP addresses with custom default gateway? I receive the following error when attempting to specify a gateway:
>
> # route add default gw 10.0.128.1 eth0
> route: resolving 'gw': No such file or directory

busybox route add default gw 10.0.128.1


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Kevin Freeman

unread,
Sep 25, 2016, 11:26:46 AM9/25/16
to Android-x86
That worked - thank you.  Now troubleshooting DNS:
#ping -c 1 8.8.8.8
... success ...
#getprop:grep dns
[net.change]: [net.dns1]
[net.dns1]: [8.8.8.8]
#nslookup www.google.com
Server:      0.0.0.0
Address 1: 0.0.0.0

nslookup: can't resolve 'www.google.com': No address associated with hostname

Sarveswaran V

unread,
Dec 28, 2017, 1:56:55 AM12/28/17
to Android-x86
Can you send me the commands to set static ip? I am stuck with it. I could not ping any network after setting 
ifconfig eth0 [IP] netmask [NETMASK]
busybox route add default gw [GATEWAY] dev eth0.
Am I missing anything?
Reply all
Reply to author
Forward
0 new messages