Sample Header Ad - 728x90

How to query/change the default gateway via bash on CM12?

2 votes
1 answer
5992 views
When i do a 'busybox route' on CM12 i get this: localhost / # busybox route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.100.0 * 255.255.255.0 U 0 0 0 wlan0 There is no default gateway defined. Practically there must be one as internet connection works properly (it is also set in Android WiFi settings). Other users seem to have the same routing table behavior (like here ). It seems that this behavior started with Android5 as i can see standard "linux style" routing tables (with default gateway) on previous Android versions (like KitKat) on several places on the net. Anyone know how to query/set/change the default gateway on CM12/Android 5 via shell/bash (not just adding another route with 'route add' - it's more about the specific one that is already set)?
Asked by Maniaxx (88 rep)
Feb 22, 2015, 01:51 AM
Last activity: Mar 30, 2015, 10:34 AM