Android 如何设置网关和路由

ifconfig eth0 192.168.1.57 netmask 255.255.255.0 up

route add default gw 192.168.0.1 dev eth0

setprop net.dns1 202.96.134.133

设置组播

route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0  

你可能感兴趣的:(android,网关,路由)