当前位置:   article > 正文

树莓派 WIFI 多连接热点 设置

supplicant 多热点
修改   /etc/network/interface 文件:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
#    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
post-down killall -q wpa_supplicant

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    


修改  /etc/wpa_supplicant/wpa_supplicant.conf   文件:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CN

network={
    ssid="basic"
    psk="xxxx"
}

network={
    ssid="Tenda_4DE678"
    psk="xxxx"
}

sudo ifdown wlan0  #关闭wlan0 
sudo ifup wlan0  #启用wlan0 

 

转载于:https://www.cnblogs.com/cpython/p/6132986.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/565099
推荐阅读
相关标签
  

闽ICP备14008679号