Advertisement
infodox

dealing with networks...

Dec 5th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # Scan for wifi...
  2. sudo iwlist <interface> scan
  3.  
  4. # Connecting to open WiFi
  5. sudo iwconfig <interface> essid "<ESSID>"
  6.  
  7. # Getting IP address...
  8. sudo dhclient <interface>
  9.  
  10. # Connect to WEP encrypted network...
  11. iwconfig <interface> essid "<ESSID>" key "<KEY>"
  12.  
  13. OR
  14.  
  15. iwconfig [interface] mode managed key [WEP key] (128 bit WEP use 26 hex characters, 64 bit WEP uses 10
  16. iwconfig [Interface] essid "[ESSID]" (Specify ESSID for the WLAN)
  17.  
  18. ####
  19.  
  20. # CONNECT TO UNENCRYPTED NETWORK
  21. sudo ifconfig <interface> down
  22. sudo dhclient -r <interface>
  23. sudo ifconfig <interface> up
  24. sudo iwconfig <interface> essid "ESSID_IN_QUOTES"
  25. sudo iwconfig <interface> mode Managed
  26. sudo dhclient <interface>
  27.  
  28. # CONNECT TO WEP NETWORK
  29. sudo ifconfig <interface> down
  30. sudo dhclient -r <interface>
  31. sudo ifconfig <interface> up
  32. sudo iwconfig <interface> essid "ESSID_IN_QUOTES"
  33. sudo iwconfig <interface> key HEX_KEY <<<-------- If using ASCII Equivalent, this is s:ASCII_KEY (please make note of the prefix s:)
  34. ****Additional Comand that may be needed -- sudo iwconfig <interface> key open <<<----See note below
  35. sudo iwconfig <interface> mode Managed
  36. sudo dhclient <interface>
  37.  
  38. # CONNECT TO WPA NETWORK
  39. http://ubuntuforums.org/showthread.php?t=571188
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement