I would like to connect my RPi3 with wifi attached. I can scan all APs in my office using command "iwlist wlan0 scan". But I can't find IP address at response of ifconfig wlan0. I can connect to an AP using name/password at Windows. How can I connect to that AP and get IP address using DHCP. I set my /etc/network/interfaces:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
sudo wpa_supplicant /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
content of /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant/wpa_supplicant.conf
update_config=1
network={
ssid="MiTAC-Wifi1"
key_mgmt=IEEE8021X
eap=PEAP
phase2="auth=MSCHAPV2"
identity="stan.huang"
password="rasp7890"
}
I doesn't work. How should I do with it?
country=TW
as the third line in your supplicant config. – Dougie Jun 09 '20 at 11:34