Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 46546  / 2 Years ago, mon, november 29, 2021, 12:35:15

How do I setup Wifi using the command line?



I need to setup as following, but its failed:



Target:



Security: WEP
Network name: wifi59/7
Key/password: xyz


Tried and failed:



sudo iwconfig wlan0 mode managed
sudo iwconfig wlan0 channel 11
sudo iwconfig wlan0 essid wifi59/7
sudo iwconfig wlan0 key xyz
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; Invalid argument.

More From » wireless

 Answers
5

The WEP key should be in hex, and either 10 or 26 characters long (5 or 13 ASCII bytes).



If you want to specify it in ASCII, you have to prefix it with s: - I'm not sure if iwconfig will pad out an ASCII password, but try lengths of 5 or 13.



See man iwconfig and scroll down to key/enc[ryption] for some examples.


[#41802] Monday, November 29, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
motivengry

Total Points: 459
Total Questions: 112
Total Answers: 108

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
motivengry questions
Tue, Oct 4, 22, 10:02, 2 Years ago
Wed, May 31, 23, 14:33, 12 Months ago
;