The gMan nixWiki

Because the mind is made of Teflon...

User Tools

Site Tools


hack_wireless_connect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
hack_wireless_connect [2020/05/03 19:33] – created gmanhack_wireless_connect [2020/05/31 17:45] (current) – [CLI] gman
Line 1: Line 1:
-====== CLI ======+====== Wireless: Connect ======
  
-Commands:  +===== CLI =====
-  * ifconfig: Enable your wireless device. +
-  * iwlist: List the available wireless access points. +
-  * iwconfig: Configure your wireless connection. +
-  * dhclient: Get your IP Address via dhcp.+
  
-===== wconfig =====+^  command  ^  description 
 +| ifconfig | Enable your wireless device | 
 +| iwlist | List the available wireless access points | 
 +| iwconfig | Configure your wireless connection | 
 +| dhclient | Get your IP Address via dhcp | 
 + 
 +---- 
 + 
 +===== Debian How-To ===== 
 + 
 +[[https://wiki.debian.org/WiFi/HowToUse#Command_Line|]] 
 + 
 +---- 
 + 
 +===== iwconfig =====
      
-Configure a wireless network (ifconfig for wireless)+Configure a wireless network (like ''ifconfig'' for wireless)
  
 +<code>
 iwconfig                   # by itself, or... iwconfig                   # by itself, or...
 iwconfig [interface name]  # designate specific wireless interface iwconfig [interface name]  # designate specific wireless interface
 +</code>
  
-Shows: +**Shows:**
   - The name of the MAC protocol used   - The name of the MAC protocol used
   - ESSID (Network Name)   - ESSID (Network Name)
Line 30: Line 42:
 ---- ----
  
-===== Using ifupdown =====+===== ifconfig + ifupdown (best) =====
  
 [1] Bring your wireless network up (assuming interface name is wlan0):  [1] Bring your wireless network up (assuming interface name is wlan0): 
Line 43: Line 55:
 </code> </code>
  
-[3] Find the one you want and put its configs in a file under /etc/network/+[3] Find the one you want and put its [[general_network#examples|configs]] in a file under /etc/network/
  
-[4] Down/Up the wireless network+[4] Down the wireless interface and bring it up with you config file
  
 <code> <code>
Line 52: Line 64:
 </code> </code>
  
-===== Using ifconfig =====+----  
 +===== ifconfig + iwconfig =====
  
 Simplied (three commands to get wireless up and running; assuming interface name is wlan0): Simplied (three commands to get wireless up and running; assuming interface name is wlan0):
Line 116: Line 129:
 systemctl start networking.service systemctl start networking.service
 systemctl restart networking.service  # same as above two, combo systemctl restart networking.service  # same as above two, combo
 +</code>
 +
 +If that doesn't work: 
 +
 +<code>
 +service network-manager restart
 </code> </code>
      
 ----  ---- 
hack_wireless_connect.1588534420.txt.gz · Last modified: by gman