调试android ethernet 的常用命令
16lz
2021-01-23
1. netcfg
ifconfig eth0 128.224.156.81 netmask 255.255.255.0 up
3. gateway 配置
route add default gw 192.168.0.1 dev eth0
4. mac adddr
ifconfig eth0 hw ether 00:11:22:33:44:55
netcfg //查看ip情况
netcfg eth0 up dhcp //通过dhcp 自动获取ip和网关
2. ifconfig
ifconfig eth0 128.224.156.81 netmask 255.255.255.0 up
3. gateway 配置
route add default gw 192.168.0.1 dev eth0
4. dns 配置
echo "nameserver 128.224.160.11" > resolv.conf
nameserver 128.224.160.11setprop net.dns1 128.224.160.11
setprop net.dns2 147.11.100.304. mac adddr
ifconfig eth0 hw ether 00:11:22:33:44:55
更多相关文章
- Android子线程在没有ViewRoot的情况下能刷新UI吗?
- Android之SQLiteDatabase使用与特殊情况处理
- 情况控件Android layout_weight用法图解
- 至2013年5月初android各个版本市场占有情况
- 彻底分清Activity的启动模式,明白什么情况下应该使用哪种模式
- Android中切换屏幕方向时Activity生命周期函数执行情况分析
- 【Android Demo】通过WebService获取今日天气情况
- Android java.io.IOException异常情况整理
- Android - 利用Android studio + Android Killer工具在手机未ROO