速成网站怎么做,绍兴高兴区建设网站,wordpress 技术分析,上海网站建设套餐Raspbian命令行连接WiFi网络 1. 源由2. 环境3. 信号4. 连接5. 检查6. 断开 1. 源由
“懒人”多福#xff0c;是什么原因#xff0c;大家知道不#xff0c;哈哈。
如果大家关注过之前《Ardupilot开源代码之Rover上路计划》#xff0c;为了笔记本电脑在不断网的情况下进行配… Raspbian命令行连接WiFi网络 1. 源由2. 环境3. 信号4. 连接5. 检查6. 断开 1. 源由
“懒人”多福是什么原因大家知道不哈哈。
如果大家关注过之前《Ardupilot开源代码之Rover上路计划》为了笔记本电脑在不断网的情况下进行配置树莓派通常直接将网线连过去。
为了省去连网线这个步骤就直接用一个usb无线网卡连接笔记本连接的路由器。
2. 环境
看了这个环境大家要问
树莓派不是自带了一个无线嘛你直接连这个WiFi或者让这个WiFi连笔记本的路由器不就好了嘛 那是因为装了伴机电脑用作AP了。 上面不是有个VPN呢为啥不用这个 确实有VPN但是4G卡没有插也不是一直开着4G的。 所以就另外插了一个小的USBWiFi网卡这个就是偷懒的方法
$ ifconfig
eth0: flags4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500inet 192.168.1.201 netmask 255.255.255.0 broadcast 192.168.1.255inet6 2408:8240:610:9d30:e301:92a8:f296:4a2c prefixlen 64 scopeid 0x0globalinet6 fe80::e6a4:f90a:cb72:9166 prefixlen 64 scopeid 0x20linkether b8:27:eb:f3:69:a6 txqueuelen 1000 (Ethernet)RX packets 14578 bytes 2794676 (2.6 MiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 63410 bytes 53220714 (50.7 MiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags73UP,LOOPBACK,RUNNING mtu 65536inet 127.0.0.1 netmask 255.0.0.0inet6 ::1 prefixlen 128 scopeid 0x10hostloop txqueuelen 1000 (Local Loopback)RX packets 3727 bytes 807790 (788.8 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 3727 bytes 807790 (788.8 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan0: flags4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500inet 10.0.2.100 netmask 255.255.255.0 broadcast 10.0.2.255inet6 fe80::e294:8cc7:c0e0:dc9e prefixlen 64 scopeid 0x20linkether b8:27:eb:a6:3c:f3 txqueuelen 1000 (Ethernet)RX packets 672 bytes 81754 (79.8 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 18636 bytes 18470468 (17.6 MiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan1: flags4099UP,BROADCAST,MULTICAST mtu 1500ether de:70:66:73:d0:07 txqueuelen 1000 (Ethernet)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0zt44xhvvrc: flags4163UP,BROADCAST,RUNNING,MULTICAST mtu 2800inet 172.24.161.33 netmask 255.255.0.0 broadcast 172.24.255.255inet6 fe80::4c84:edff:fe49:df6 prefixlen 64 scopeid 0x20linkether 4e:84:ed:49:0d:f6 txqueuelen 1000 (Ethernet)RX packets 99 bytes 7899 (7.7 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 108 bytes 17153 (16.7 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 03. 信号 $ nmcli dev wifi list
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
* B8:27:EB:A6:3C:F3 rpanion Infra 1 0 Mbit/s 0 ____ WPA1 WPA2IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITYB8:F8:83:6E:16:9F AutoConnect Infra 1 405 Mbit/s 100 ▂▄▆█ WPA1 WPA23E:06:A7:46:A8:B0 -- Infra 6 195 Mbit/s 67 ▂▄▆_ WPA1 WPA23C:06:A7:56:A8:B0 402 Infra 6 195 Mbit/s 67 ▂▄▆_ WPA1 WPA246:FB:5A:1F:7B:DC CMCC_Share Infra 9 130 Mbit/s 67 ▂▄▆_ --46:FB:5A:2F:7B:DC SSID3 Infra 9 130 Mbit/s 64 ▂▄▆_ WPA1 WPA244:FB:5A:3F:7B:DC CMCC-e33Q Infra 9 130 Mbit/s 60 ▂▄▆_ WPA1 WPA280:7E:B4:D9:E9:11 SJPSTAR Infra 11 130 Mbit/s 60 ▂▄▆_ WPA1 WPA248:CA:C6:9F:0B:52 206 Infra 11 130 Mbit/s 57 ▂▄▆_ WPA1 WPA24A:CA:C6:BF:0B:52 -- Infra 11 130 Mbit/s 54 ▂▄__ WPA284:65:69:D9:F4:6D -- Infra 1 130 Mbit/s 47 ▂▄__ --8C:A6:DF:2D:E2:E6 zjt Infra 6 405 Mbit/s 47 ▂▄__ WPA1 WPA260:3A:7C:77:22:F1 suncheng Infra 6 405 Mbit/s 47 ▂▄__ WPA1 WPA262:3A:7C:27:22:F1 -- Infra 6 405 Mbit/s 47 ▂▄__ WPA1 WPA2F6:6D:2F:20:E0:39 -- Infra 6 405 Mbit/s 47 ▂▄__ WPA1 WPA244:F9:71:B2:FD:EB Qch001 Infra 6 405 Mbit/s 47 ▂▄__ WPA1 WPA2F4:6D:2F:30:E0:39 Suzuki Infra 6 405 Mbit/s 47 ▂▄__ WPA1 WPA214:B8:37:8F:A0:A8 ChinaNet-xinu Infra 13 130 Mbit/s 47 ▂▄__ WPA102:CB:66:CE:29:C2 ABCDE Infra 1 130 Mbit/s 44 ▂▄__ WPA202:CB:66:CE:29:D0 ABCDE_Wi-Fi5 Infra 1 130 Mbit/s 40 ▂▄__ WPA2C8:BF:4C:77:9F:8D Xiaomi_FB33 Infra 1 540 Mbit/s 34 ▂▄__ WPA2 WPA3C6:1A:3A:1E:F9:9F suncheng Infra 6 405 Mbit/s 34 ▂▄__ WPA1 WPA29C:9D:7E:EA:FB:BB 401 Infra 9 130 Mbit/s 34 ▂▄__ WPA1 WPA254:A7:03:A3:B5:C7 502 Infra 11 270 Mbit/s 34 ▂▄__ WPA1 WPA2E0:5D:54:BC:2E:0B 312317 Infra 11 130 Mbit/s 34 ▂▄__ WPA2B0:30:55:2A:56:0E CMCC-302 Infra 1 270 Mbit/s 30 ▂___ WPA1 WPA2A4:39:B3:0B:16:47 Xiaomi_FB33 Infra 1 130 Mbit/s 30 ▂___ WPA2 WPA384:65:69:D9:F4:6F 202 Infra 1 130 Mbit/s 30 ▂___ WPA1 WPA2EC:6C:B5:25:F8:AE CMCC-dQ7D Infra 8 130 Mbit/s 30 ▂___ WPA1 WPA2CE:BF:4C:77:9F:8D -- Infra 1 540 Mbit/s 27 ▂___ --24:CF:24:FE:E3:37 Xiaomi_FB33 Infra 1 130 Mbit/s 27 ▂___ WPA2 WPA3B8:27:EB:A6:3C:F3 rpanion Infra 1 65 Mbit/s 27 ▂___ WPA1E0:5D:54:56:FC:97 招珍 Infra 6 270 Mbit/s 27 ▂___ WPA1 WPA282:37:07:11:25:5D 茉莉家 Infra 6 130 Mbit/s 27 ▂___ WPA22E:D1:27:84:97:A5 -- Infra 11 130 Mbit/s 27 ▂___ --14:57:9F:09:16:60 ChinaNet-HjdH Infra 13 130 Mbit/s 27 ▂___ WPA1 WPA238:16:72:CD:EB:A8 CMCC-Js65 Infra 4 130 Mbit/s 24 ▂___ WPA1 WPA268:FE:DA:9E:C2:CD ChinaNet-v2JP Infra 13 130 Mbit/s 24 ▂___ WPA18C:1A:50:0B:2D:A9 CMCC-xwm6 Infra 6 130 Mbit/s 20 ▂___ WPA1 WPA24. 连接
$ nmcli --ask dev wifi connect AutoConnect password password ifname wlan1
Device wlan1 successfully activated with 4b0a9e71-ce2f-4a40-82b6-938ceaf876ff.5. 检查
拔掉网线后检查个网络状态。 $ nmcli dev status
DEVICE TYPE STATE CONNECTION
wlan0 wifi connected WiFiAP
wlan1 wifi connected AutoConnect
zt44xhvvrc tun connected (externally) zt44xhvvrc
p2p-dev-wlan0 wifi-p2p disconnected --
p2p-dev-wlan1 wifi-p2p disconnected --
eth0 ethernet unavailable --
lo loopback unmanaged --6. 断开
$ nmcli dev disconnect wlan1