开发板连接WiFi时获取不到ip,且不断的报如下问题

开发板连接WiFi时获取不到ip,且不断的报如下问题_第1张图片
这里的问题是因为有另一块开发板和此时你用的开发板使用同一个MAC地址去连接同一个wifi,导致连接异常。此时我们只需要去修改开发板的MAC地址即可。
输入

ifconfig wlan0 hw ether 00:AA:BB:CC:DD:EE

重新连接WiFi即可

 wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0

开发板连接WiFi时获取不到ip,且不断的报如下问题_第2张图片
输入

 udhcpc -i wlan0

即可寻找到ip

ping一下百度即可知是否连接到网络

root@TinaLinux:/# ping www.baidu.comm
ping: bad address 'www.baidu.comm'
root@TinaLinux:/# ping www.baidu.com
PING www.baidu.com (14.215.177.39): 56 data bytes
64 bytes from 14.215.177.39: seq=0 ttl=54 time=26.760 ms
64 bytes from 14.215.177.39: seq=1 ttl=54 time=55.814 ms
64 bytes from 14.215.177.39: seq=2 ttl=54 time=31.385 ms
64 bytes from 14.215.177.39: seq=3 ttl=54 time=29.622 ms
64 bytes from 14.215.177.39: seq=4 ttl=54 time=192.008 ms
64 bytes from 14.215.177.39: seq=5 ttl=54 time=34.838 ms
64 bytes from 14.215.177.39: seq=6 ttl=54 time=39.155 ms
64 bytes from 14.215.177.39: seq=7 ttl=54 time=53.912 ms
64 bytes from 14.215.177.39: seq=8 ttl=54 time=38.407 ms
64 bytes from 14.215.177.39: seq=9 ttl=54 time=33.917 ms
64 bytes from 14.215.177.39: seq=10 ttl=54 time=51.168 ms
64 bytes from 14.215.177.39: seq=11 ttl=54 time=48.829 ms
64 bytes from 14.215.177.39: seq=12 ttl=54 time=44.318 ms
64 bytes from 14.215.177.39: seq=13 ttl=54 time=37.157 ms
64 bytes from 14.215.177.39: seq=14 ttl=54 time=35.118 ms
64 bytes from 14.215.177.39: seq=15 ttl=54 time=38.867 ms
64 bytes from 14.215.177.39: seq=16 ttl=54 time=36.538 ms
64 bytes from 14.215.177.39: seq=17 ttl=54 time=34.702 ms
64 bytes from 14.215.177.39: seq=18 ttl=54 time=155.244 ms
64 bytes from 14.215.177.39: seq=19 ttl=54 time=44.928 ms
64 bytes from 14.215.177.39: seq=20 ttl=54 time=39.579 ms
64 bytes from 14.215.177.39: seq=21 ttl=54 time=52.166 ms

你可能感兴趣的:(linux开发板报错,linux)