auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
6) wifi 아답터 재시작
– WIFI 재시작
sudo ifup wlan0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/b8:27:eb:bf:f8:90
Sending on LPF/wlan0/b8:27:eb:bf:f8:90
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST of 192.168.0.126 on wlan0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.0.126 from 192.168.0.1
DHCPACK of 192.168.0.126 from 192.168.0.1
bound to 192.168.0.126 -- renewal in 3297 seconds.
– 참고 : 만약 아래와 같이 에러난 경우, 라즈베리파이에 전원을 뺐다가 다시 넣으니까 해결됨.
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: failed to bring up wlan0
pi@raspberrypi:~$
7) IP 할당
sudo wpa_cli reconfigure
Selected interface 'p2p-dev-wlan0'
OK