diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-01-18 12:02:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 12:02:29 +0100 |
commit | f2d084017398e930ea3c2fef7d66e5f3eaab76ba (patch) | |
tree | 54d6433aad4735dedfab127f52bc13eaa230a038 /docs/network-interfaces.rst | |
parent | a981af6640c97418ab4c1c9fa599cd9b94d64669 (diff) | |
parent | b9f8c6e52393b88da22af8272a2a99ce71141bbb (diff) | |
download | vyos-documentation-f2d084017398e930ea3c2fef7d66e5f3eaab76ba.tar.gz vyos-documentation-f2d084017398e930ea3c2fef7d66e5f3eaab76ba.zip |
Merge pull request #6 from kmpm/feature/wireless
added wireless interface example
Diffstat (limited to 'docs/network-interfaces.rst')
-rw-r--r-- | docs/network-interfaces.rst | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/docs/network-interfaces.rst b/docs/network-interfaces.rst index 2ff615b6..cc0f100f 100644 --- a/docs/network-interfaces.rst +++ b/docs/network-interfaces.rst @@ -226,6 +226,61 @@ statistics`. Statistics available are driver dependent. tx_packets: 2179 [...] +Wireless Interfaces +------------------- +Wireless, for example WiFi 802.11 b/g/n, interfaces allow for connection to +WiFi networks or act as an access-point. +If your device is configurable it will appear as `wlan` in `show interfaces`. + +To be able to use the wireless interfaces you will first need to set a +regulatory domain with the country code of your locaion. + +.. code-block:: sh + + set system wifi-regulatory-domain SE + +An example on how to set it up as an access point: + +.. code-block:: sh + + set interfaces wireless wlan0 address '192.168.99.1/24' + set interfaces wireless wlan0 type access-point + set interfaces wireless wlan0 channel 1 + set interfaces wireless wlan0 ssid '<your ssid>' + set interfaces wireless wlan0 security wpa mode wpa2 + set interfaces wireless wlan0 security wpa cipher CCMP + set interfaces wireless wlan0 security wpa passphrase '<your passphrase>' + +Resulting in + +.. code-block:: sh + + interfaces { + [...] + wireless wlan0 { + address 192.168.99.1/24 + channel 1 + mode g + security { + wpa { + cipher CCMP + mode wpa2 + passphrase "<your passphrase>" + } + } + ssid "<your ssid>" + type access-point + } + } + system { + [...] + wifi-regulatory-domain SE + } + +To get it to work as a access point with this configuration you will need +to set up a DHCP server to work with that network. + + VLAN Sub-Interfaces (802.1Q) ---------------------------- |