Difference between revisions of "Wireless"

From krtkl wiki
Jump to navigation Jump to search
(Created page with "== Bringing up Wireless Interface == The wireless interface (most commonly <tt>wlan0</tt>) can be brought up with: <pre> ifconfig <interface> up </pre> === Wireless Bring...")
 
Line 24: Line 24:
 
</pre>
 
</pre>
  
 +
If connected to a network the output will show the details of the connection:
 +
 +
<pre style="margin-bottom: 0; border-bottom: none; padding-bottom: 0.8em;">
 +
$ iw dev <interface> link
 +
</pre>
 +
<pre style="margin-top: 0; border-top-style:dashed; padding-top: 0.8em;">
 +
Connected to 12:34:56:78:9a:bc (on wlan0)
 +
SSID: MyNetwork
 +
freq: 2412
 +
RX: 33016518 bytes (152703 packets)
 +
TX: 2024638 bytes (11477 packets)
 +
signal: -53 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
 +
</pre>
 +
 +
 +
<pre style="margin-bottom: 0; border-bottom: none; padding-bottom: 0.8em;">
 +
$ iw dev <interface> link
 +
</pre>
 +
<pre style="margin-top: 0; border-top-style:dashed; padding-top: 0.8em;">
 +
Not connected.
 +
</pre>
  
 
=== Getting an IP Address (<tt>dhclient</tt>) ===
 
=== Getting an IP Address (<tt>dhclient</tt>) ===

Revision as of 19:03, 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)

Checking Network Connection

iw dev <interface> link

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

$ iw dev <interface> link
Connected to 12:34:56:78:9a:bc (on wlan0)
	SSID: MyNetwork
	freq: 2412
	RX: 33016518 bytes (152703 packets)
	TX: 2024638 bytes (11477 packets)
	signal: -53 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 <interface> link
Not connected.

Getting an IP Address (dhclient)

dhclient <interface>