调试android ethernet 的常用命令
1. netcfgnetcfg //查看ip情况netcfg eth0 up dhcp //通过dhcp 自动获取ip和网关2. ifconfigifconfig eth0 128.224.156.81 upifconfig eth0 128.224.156.81 netmask 255.255.255.0 up3. gateway 配置
·
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.11
setprop 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
更多推荐
已为社区贡献1条内容
所有评论(0)