android 添加特定IP走局域网

使用终端模拟器后 先连接歪屁摁

只有连接后才能看到路由表

 

 

//命令查看开启的路由表

netcfg

或者 

cat /proc/net/route

 

查看后一般的路由表可能是tun0、0x3c、ppp0

查看

ip route show table tun0

 

如果这个路由表存在,以雷电模拟器为例子

添加

ip route add 172.16.2.0/24 dev eth0 proto static scope link table tun0

//删除

ip route del 172.16.2.0/24  table tun0

posted @ 2020-04-20 20:43  MayBreath  阅读(1141)  评论(0编辑  收藏  举报