简体   繁体   English

将 Retroflag GPi(Raspberry Pi 零 W)连接到 WPA2 Enterprise

[英]Connect Retroflag GPi (Raspberry Pi Zero W) to WPA2 Enterprise

I just got my retroflag gpi case working and set up.我刚刚让我的retroflag gpi 案例工作并设置好了。 I have one small problem though.不过我有一个小问题。 I can't connect my Pi to my WPA2-Enterprise network.我无法将我的 Pi 连接到我的 WPA2-Enterprise 网络。 I've tried a bunch of settings in wpa_supplicant.conf but can't get it to work.我在 wpa_supplicant.conf 中尝试了一系列设置,但无法使其正常工作。

Pi Model or other hardware: Raspberry Pi Zero W & Retroflag GPi Case Pi Model 或其他硬件: Raspberry Pi Zero W & Retroflag GPi Case

Power Supply used: Retroflag GPi's inbuilt.使用的电源: Retroflag GPi 的内置电源。

RetroPie Version Used: 4.6.1使用的 RetroPie 版本: 4.6.1

Built From: https://github.com/RetroPie/RetroPie-Setup/releases/download/4.6/retropie-buster-4.6-rpi1_zero.img.gz构建自: https://github.com/RetroPie/RetroPie-Setup/releases/download/4.6/retropie-buster-4.6-rpi1_zero.img.gz

USB Devices connected: Retroflag GPi USB 连接的设备: Retroflag GPi

Controller used: Retroflag GPi Controller 使用: Retroflag GPi

Error messages received: Can't see any error messages.收到错误消息:看不到任何错误消息。 Don't know where they appear.不知道他们出现在哪里。 It just says IP-address Unkown in show ip.它只是在节目 ip 中显示 IP 地址未知。

Guide used: Several on Google.使用的指南: Google 上的几个。 This one among others: https://gist.github.com/elec3647/1e223c02ef2a9a3f836db7984011b53b .这其中之一: https://gist.github.com/elec3647/1e223c02ef2a9a3f836db7984011b53b This one for documentation: https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf这个文档: https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf

File: /etc/wpa_supplicant/wpa_supplicant.conf文件: /etc/wpa_supplicant/wpa_supplicant.conf

Attachment of config files: (wpa_supplicant.conf)配置文件附件: (wpa_supplicant.conf)

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

ap_scan=1

network={
  ssid="Wifi-Name"
  scan_ssid=1
  identity="myusername"
  password="mypassword"
  key_mgmt=WPA-EAP
  eap=TTLS
  phase1="peapver=0 peaplabel=1"
  phase2="autheap=MSCHAPV2"
}

I actually solved it just now.我刚才真的解决了。

For anyone wondering I managed to connect to the network on another machine (Ubuntu) and used Network Manager.对于任何想知道我设法连接到另一台机器(Ubuntu)上的网络并使用网络管理器的人。 I then checked the log (according to this link ) with the command:然后,我使用以下命令检查了日志(根据此链接):

journalctl -u NetworkManager

This gave me this config for wpa_supplicant.conf:这给了我 wpa_supplicant.conf 的配置:


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

ap_scan=1

network={
  ssid="Wifi-Name"
  scan_ssid=1
  bgscan="simple:30:-65:300"
  key_mgmt=WPA-EAP WPA-EAP-SHA256
  password="password"
  eap=PEAP
  fragment_size=1266
  phase2="auth=MSCHAPV2"
  identity="username"
  proactive_key_caching=1
}

This might not work for everyone else since the configs are always different for every network.这可能不适用于其他所有人,因为每个网络的配置总是不同的。 So be sure to do the same steps as I did if you can't get it to work.因此,如果您无法使其正常工作,请务必执行与我相同的步骤。

So glad I finally got this, haha.很高兴我终于得到了这个,哈哈。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM