Difference between revisions of "Wireless Interfaces"

From VyOS Wiki
Jump to: navigation, search
Line 1: Line 1:
{{ Migrated | url = https://vyos.readthedocs.io/en/latest/interfaces/wireless.html }}

Latest revision as of 22:27, 22 June 2019

Warning sign.png This page is migrated to Readthedocs .
Information found on this page is migrated to readthedocs and information found here could be outdated or misleading. https://vyos.readthedocs.io/en/latest/interfaces/wireless.html
For a complete status of all migrations, see Project:Migration

Warning! VyOS 1.2 Only!

This has only been tested on VyOS 1.2, which is currently under active development and has not yet been released!

If you wish to try this, it may work on earlier versions, but has only been validated on VyOS 1.2. You can download the latest Daily Build of 1.2 directly from the daily build server. This may not be suitable for production use.

Certain Wireless Devices (TODO: Add list of supported devices) are configurable via VyOS. If your device is configurable, it will appear as a 'wlan' device in 'show interfaces'

vyos@example.com:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0                        u/u
eth1             -                                 u/D
eth2             -                                 u/D
eth3                         u/u
eth3.20          -                                 u/u
eth3.30                   u/u
eth3.40                      u/u
eth3.60                      u/u
eth3.100                   u/u
lo                            u/u
pppoe0                          u/u
wlan0            -                                 u/u

You can configure these interfaces under 'set interface wireless'. An example configuration as an access point is below.

wireless wlan0 {
    channel 1
    mode g
    security {
        wpa {
            mode wpa2
            passphrase "Your WPA Password Goes Here"
    ssid "Your SSID Goes Here"
    type access-point

Note that hw-id and physical-device will be automatically propagated and do not need to be configured.

To set a regulatory domain use the following command and adjust country code as required.

set system wifi-regulatory-domain DE

You should also set up a DHCP server to work with that network

shared-network-name wifi {
    authoritative enable
    subnet {
        lease 86400
        range 0 {

Tested Devices on 1.2.0-rc11

Output from lspci -nn

 lspci -nn
 01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)