networking - Assign Static IP in Android Nougat -


i'm trying assign static ip ethernet in android nougat 7.1(rooted) , can't seem work, i've tried following in shell no luck.

ifconfig eth0 192.168.2.137 netmask 255.255.255.0 busybox route add default gw 192.168.2.1 dev eth0 setprop net.dns1 8.8.8.8 setprop net.dns2 4.4.4.4 

this changes ip when try ping "connect: network unreachable" , if

ifconfig eth0 down ifconfig eth0 

it resets dynamic ip

thanks taking time @ , appreciated.

thanks,


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -