Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up wireless Internet links in raspberry pie

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

How to set up wireless network link in Raspberry Pi, I believe many inexperienced people are helpless about this, this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.

Insert usb card, use command

ifconfig

If the following prompt appears, the wireless network card is already supported normally

wlan0 Link encap:Ethernet HWaddr e8:4e:06:2b:a1:d9 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:789 errors:0 dropped:1392 overruns:0 frame:0 TX packets:217 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0 B) TX bytes:0 (0 B)

Otherwise, the network card may not be supported, and drivers may need to be installed.

lsusb #Details man.linuxde.net/lsusb

Command to view inserted usb devices.

Configure the network, use commands

sudo nano /etc/network/interfaces

configured as follows

auto loiface lo inet loopbackauto eth0allow-hotplug eth0iface eth0 inet dhcpauto wlan0allow-hotplug wlan0iface wlan0 inet dhcpwpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Then configure the/etc/wpa_supplicant/wpa_supplicant.conf file

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

configured as follows

country=CNctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ ssid="ssid of wifi" psk="password" priority=1 id_str="home"}network={ ssid="ssid of wifi" psk="password" priority=2 id_str="home"}network={ ssid="ssid of wifi" psk="password" priority=5 #priority, the higher the number, the higher the priority, id_str="office"}

Configuration basically completed, restart wireless network card

sudo ifdown wlan0sudo ifup wlan0

If there is no problem, you should be able to access the Internet.

After reading the above content, do you know how to set up wireless network connection in raspberry pi? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report