Dmitriy Zhuk Posted November 9, 2017 Posted November 9, 2017 Hello, guys. I use debian server version for my board. But I can't use WiFi to connect my router. I have tried wpa_supplicat, but no result. I used many resources for information, such as https://www.blackmoreops.com/2014/09/18/connect-to-wifi-network-from-command-line-in-linux/ https://unix.stackexchange.com/questions/283722/how-to-connect-to-wifi-from-command-line Maybe, I do something wrong. Can you help me please?
Igor Posted November 9, 2017 Posted November 9, 2017 We are not clairvoyant or mind readers Please describe your setup as best as possible so we know what your operating environment is like. Name of your board: Name of the image you installed: Logs, when you can boot the board: armbianmonitor -u (paste URL to your forum post) If your board does not boot, provide a log from serial console (UART) or at least make and attach a picture, where it stops. Describe the problem the best you can and provide all necessary info that we can reproduce the problem.
Dmitriy Zhuk Posted November 9, 2017 Author Posted November 9, 2017 Thank you for answer and help in advance. My board is Banana Pi M2 Plus. Name of image is ARMBIAN 5.33 user-built Debian GNU/Linux 8 (jessie) 3.4.113-sun8i There is log link: http://sprunge.us/fFSg About my problem. I try to connect board to my WiFi router. My steps are following: 1. root@bananapim2plus:~# wpa_passphrase Home MY_PASSWORD > /etc/wpa_supplicant.conf 2. I modified /etc/network/interfaces for enabling WiFi: source /etc/network/interfaces.d/* # Wired adapter #1 allow-hotplug eth0 #no-auto-down eth0 iface eth0 inet dhcp #address 192.168.0.100 #netmask 255.255.255.0 #gateway 192.168.0.1 #dns-nameservers 8.8.8.8 8.8.4.4 # hwaddress ether # if you want to set MAC manually # pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838 # Wireless adapter #1 # Armbian ships with network-manager installed by default. To save you time # and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings # manually. The below lines are only meant as an example how configuration could # be done in an anachronistic way: # #allow-hotplug wlan0 auto wlan0 iface wlan0 inet dhcp #address 192.168.0.100 #netmask 255.255.255.0 #gateway 192.168.0.1 #dns-nameservers 8.8.8.8 8.8.4.4 wpa-conf /etc/wpa_supplicant.conf # Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi) #wireless-mode Managed #wireless-power off # Local loopback auto lo iface lo inet loopback 3. Rebooting the device. After it, my device is obtaining IP address, for example 169.254.11.71 But a result, there is no internet connection. I made ping 8.8.8.8 But answer is “Destination Host Unreachable” How can I connect my board to the internet?
tkaiser Posted November 9, 2017 Posted November 9, 2017 37 minutes ago, Dmitriy Zhuk said: How can I connect my board to the internet? Normally I would say: by following our documentation and that's using 'nmtui-connect' and stop to fiddle around with weird files and configurations. The log you provided (thank you) though looks a bit suspicious. So I would advise to revert all changes you did to /etc/network/interfaces (at least remove everything wlan0 related), reboot, check your AP whether it tried to play 'security by obscurity' (MAC address filter) and then simply use nmtui-connect and use Wi-Fi. BTW: You connected an antenna already?
Dmitriy Zhuk Posted November 9, 2017 Author Posted November 9, 2017 1 hour ago, tkaiser said: BTW: You connected an antenna already? Yes, of course. Thank you for link to documentation. This method works. But I need method without any dialogues. So I try to use wpa_supplicant.
tkaiser Posted November 9, 2017 Posted November 9, 2017 2 minutes ago, Dmitriy Zhuk said: But I need method without any dialogues. Easy, just accept that the way primitive SBC distros do all their stuff is weird/anachronistic. Check /etc/NetworkManager/system-connections -- you define stuff with NM and then deploy profiles.
Dmitriy Zhuk Posted November 10, 2017 Author Posted November 10, 2017 Thank you for hint. I will try to do this.
Dmitriy Zhuk Posted November 12, 2017 Author Posted November 12, 2017 I have uncommented #allow-hotplug wlan0 and all works.
Recommended Posts