调试android ethernet 的常用命令
16lz
2022-05-24
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开发小技巧(二)-------如何获取全局的Context
- android获取设备信息
- Android(安卓)中获取屏幕长度及宽度
- Android如何截取当前View 为图片
- android 银联支付接入报nullexception异常
- Android: 屏幕截图
- Android(安卓)如何获取最顶端的Top Activity
- Android应用实例之----基于Service与ContentProvider的音乐播放
- Android(安卓)Glide(4.9.0)源码分析