Difference between revisions of "Wireless"

From krtkl wiki
Jump to: navigation, search
(Connecting to Networks (wpa_supplicant))
(Checking Network Connection)
Line 36: Line 36:
 
Connected to 12:34:56:78:9a:bc (on wlan0)
 
Connected to 12:34:56:78:9a:bc (on wlan0)
 
SSID: MyNetwork
 
SSID: MyNetwork
freq: 2412
+
        freq: 2437
RX: 33016518 bytes (152703 packets)
+
        RX: 32843 bytes (117 packets)
TX: 2024638 bytes (11477 packets)
+
        TX: 1303 bytes (12 packets)
signal: -53 dBm
+
        signal: -44 dBm
tx bitrate: 150.0 MBit/s MCS 7 40MHz short GI
+
        tx bitrate: 150.0 MBit/s MCS 7 40MHz short GI
  
bss flags: short-preamble short-slot-time
+
        bss flags:     short-preamble short-slot-time
dtim period: 1
+
        dtim period:   1
beacon int: 100
+
        beacon int:     100
 
</pre>
 
</pre>
  

Revision as of 20:19, 23 April 2016

Bringing up Wireless Interface

The wireless interface (most commonly wlan0) can be brought up with:

ifconfig <interface> up


Wireless Bringup on Boot

The wireless interface bring-up behaviour can be configured within /etc/network/interfaces.d.


Connecting to Networks (wpa_supplicant)

A network connection can be established by starting the wpa_supplicant daemon. The WPA supplicant requires a configuration file with a list of network configurations to use for connection.

$ wpa_supplicant -B -Dnl80211 -iwlan1 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant

Checking Network Connection

iw dev <interface> link

If connected to a network the output will show the details of the connection:

$ iw dev wlan0 link
Connected to 12:34:56:78:9a:bc (on wlan0)
	SSID: MyNetwork
        freq: 2437
        RX: 32843 bytes (117 packets)
        TX: 1303 bytes (12 packets)
        signal: -44 dBm
        tx bitrate: 150.0 MBit/s MCS 7 40MHz short GI

        bss flags:      short-preamble short-slot-time
        dtim period:    1
        beacon int:     100


$ iw dev wlan0 link
Not connected.

Getting an IP Address (dhclient)

dhclient <interface>