Android 命令设置获取、IP地址、网关、dns
设置ip
[email protected]:/ # ifconfig eth0 192.168.0.173 netmask 255.255.255.0 ifconfig eth0 192.168.0.173 netmask 255.255.255.0
设置网关Gateway
[email protected]:/ # route add default gw 192.168.0.1 dev eth0
添加dns
[email protected]:/ # setprop net.eth0.dns1 8.8.8.8
[email protected]:/ # setprop net.eth0.dns2 8.8.4.4
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/14556.html
- 上一篇:移动端测试
- 下一篇:修改layui的表单手机、邮箱验证可以为空怎么实现?