打开WiFi:
# nmcli r wifi on
#
连接路由器:
# nmcli dev wifi connect "TP-LINK_0034" password "BJ0014iot"
Device 'p2p0' successfully activated with '44313867-7cd7-4d3c-b9c8-45e7e877b853'
.
# ping www.baidu.com -c 4
PING www.a.shifen.com (220.181.111.232) 56(84) bytes of data.
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=1 ttl=53 time=9.53 ms
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=2 ttl=53 time=7.31 ms
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=3 ttl=53 time=5.23 ms
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=4 ttl=53 time=5.37 ms
--- www.a.shifen.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 5.232/6.860/9.534/1.748 ms
#
查看板子IP地址:
# ifconfig p2p0
p2p0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::e10f:6e24:ca58:a2ae prefixlen 64 scopeid 0x20<link>
ether 32:5a:5f:2a:1e:e9 txqueuelen 1000 (Ethernet)
RX packets 419 bytes 108879 (108.8 KB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 39 bytes 4477 (4.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
#
可以看到板子的IP地址是192.168.1.100,然后就可以用电脑上的ssh软件连上板子,进命令行了。
用户名和密码都是rock。

川宇双头typec数据线适用苹果16iPhone15充电线ipad快充电器线华为小米电脑tpyec充电线器usbc加:https://detail.tmall.com/item.htm?id=820012786591
川宇64g行车记录仪内存卡sd高速tf手机内存卡C10监控摄像存储音响:https://detail.tmall.com/item.htm?id=681760890726
川宇读卡器多合一多功能3.0高速tf卡内存电脑micro sd卡通用车载手机读卡器:https://detail.tmall.com/item.htm?id=532576105980