mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-12-16 10:32:02 +01:00
interfaces: consolidate vxlan, geneve, wifi, pppoe, wwan to new include command syntax
This commit is contained in:
parent
f6ee81e582
commit
f0ed78b3ad
@ -1,20 +1,20 @@
|
|||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> address <address | dhcp |
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> address <address | dhcp |
|
||||||
dhcpv6>
|
dhcpv6>
|
||||||
|
|
||||||
Configure interface `<interface>` with one or more interface addresses.
|
Configure interface `<interface>` with one or more interface addresses.
|
||||||
|
|
||||||
* **address** can be specified multiple times as IPv4 and/or IPv6
|
* **address** can be specified multiple times as IPv4 and/or IPv6
|
||||||
address, e.g. 192.0.2.1/24 and/or 2001:db8::1/64
|
address, e.g. 192.0.2.1/24 and/or 2001:db8::1/64
|
||||||
* **dhcp** interface address is received by DHCP from a DHCP server
|
* **dhcp** interface address is received by DHCP from a DHCP server
|
||||||
on this segment.
|
on this segment.
|
||||||
* **dhcpv6** interface address is received by DHCPv6 from a DHCPv6
|
* **dhcpv6** interface address is received by DHCPv6 from a DHCPv6
|
||||||
server on this segment.
|
server on this segment.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} address 192.0.2.1/24
|
set interfaces {{ var0 }} {{ var1 }} address 192.0.2.1/24
|
||||||
set interfaces {{ var0 }} {{ var1 }} address 2001:db8::1/64
|
set interfaces {{ var0 }} {{ var1 }} address 2001:db8::1/64
|
||||||
set interfaces {{ var0 }} {{ var1 }} dhcp
|
set interfaces {{ var0 }} {{ var1 }} dhcp
|
||||||
set interfaces {{ var0 }} {{ var1 }} dhcpv6
|
set interfaces {{ var0 }} {{ var1 }} dhcpv6
|
||||||
@ -1,14 +1,14 @@
|
|||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> address <address>
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> address <address>
|
||||||
|
|
||||||
Configure interface `<interface>` with one or more interface
|
Configure interface `<interface>` with one or more interface
|
||||||
addresses.
|
addresses.
|
||||||
|
|
||||||
* **address** can be specified multiple times as IPv4 and/or IPv6
|
* **address** can be specified multiple times as IPv4 and/or IPv6
|
||||||
address, e.g. 192.0.2.1/24 and/or 2001:db8::1/64
|
address, e.g. 192.0.2.1/24 and/or 2001:db8::1/64
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} address 192.0.2.1/24
|
set interfaces {{ var0 }} {{ var1 }} address 192.0.2.1/24
|
||||||
set interfaces {{ var0 }} {{ var1 }} address 2001:db8::1/64
|
set interfaces {{ var0 }} {{ var1 }} address 2001:db8::1/64
|
||||||
@ -1,19 +1,17 @@
|
|||||||
.. cmdinclude:: ../_include/interface-address-with-dhcp.txt
|
.. cmdinclude:: ../_include/interface-address-with-dhcp.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-common.txt
|
.. cmdinclude:: ../_include/interface-common.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
**DHCP**
|
**DHCP(v6)**
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-dhcp-options.txt
|
.. cmdinclude:: ../_include/interface-dhcp-options.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
**DHCPv6**
|
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-dhcpv6-options.txt
|
.. cmdinclude:: ../_include/interface-dhcpv6-options.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.. cmdinclude:: ../_include/interface-address.txt
|
.. cmdinclude:: ../_include/interface-address.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-common.txt
|
.. cmdinclude:: ../_include/interface-common.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|||||||
@ -1,23 +1,36 @@
|
|||||||
.. cmdinclude:: ../_include/interface-description.txt
|
.. cmdinclude:: ../_include/interface-description.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-disable.txt
|
.. cmdinclude:: ../_include/interface-disable.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-disable-flow-control.txt
|
||||||
|
:var0: {{ var0 }}
|
||||||
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-disable-link-detect.txt
|
||||||
|
:var0: {{ var0 }}
|
||||||
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-mac.txt
|
.. cmdinclude:: ../_include/interface-mac.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-mtu.txt
|
.. cmdinclude:: ../_include/interface-mtu.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt
|
.. cmdinclude:: ../_include/interface-ipv6-addr-autoconf.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt
|
.. cmdinclude:: ../_include/interface-ipv6-addr-eui64.txt
|
||||||
:var0: {{ var0 }}
|
:var0: {{ var0 }}
|
||||||
:var1: {{ var1 }}
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-vrf.txt
|
||||||
|
:var0: {{ var0 }}
|
||||||
|
:var1: {{ var1 }}
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> description <description>
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> description <description>
|
||||||
|
|
||||||
Set a human readable, descriptive alias for this connection. Alias is used by
|
Set a human readable, descriptive alias for this connection. Alias is used by
|
||||||
e.g. the :opcmd:`show interfaces` command or SNMP based monitoring tools.
|
e.g. the :opcmd:`show interfaces` command or SNMP based monitoring tools.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} description 'This is an awesome interface running on VyOS'
|
set interfaces {{ var0 }} {{ var1 }} description 'This is an awesome interface running on VyOS'
|
||||||
@ -33,60 +33,6 @@
|
|||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} dhcpv6-options temporary
|
set interfaces {{ var0 }} {{ var1 }} dhcpv6-options temporary
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-dhcpv6-prefix-delegation.txt
|
||||||
|
:var0: {{ var0 }}
|
||||||
|
:var1: {{ var1 }}
|
||||||
**DHCPv6-PD**
|
|
||||||
|
|
||||||
VyOS 1.3 (equuleus) supports DHCPv6-PD (:rfc:`3633`). DHCPv6 Prefix Delegation
|
|
||||||
is supported by most ISPs who provide native IPv6 for consumers on fixed networks.
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> dhcpv6-option pd <id> length <length>
|
|
||||||
|
|
||||||
Some ISPs by default only delegate a /64 prefix. To request for a specific
|
|
||||||
prefix size use this option to request for a bigger delegation for this pd
|
|
||||||
`<id>`. This value is in the range from 32 - 64 so you could request up to a
|
|
||||||
/32 prefix (if your ISP allows this) down to a /64 delegation.
|
|
||||||
|
|
||||||
The default value corresponds to 64.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
To request a /56 prefix from your ISP use:
|
|
||||||
|
|
||||||
.. code-block:: none
|
|
||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} dhcpv6-options pd 0 length 56
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> dhcpv6-option pd <id> interface <delegatee> address <address>
|
|
||||||
|
|
||||||
Specify the interface address used locally on the interfcae where the prefix
|
|
||||||
has been delegated to. ID must be a decimal integer.
|
|
||||||
|
|
||||||
It will be combined with the delegated prefix and the sla-id to form a
|
|
||||||
complete interface address. The default is to use the EUI-64 address of the
|
|
||||||
interface.
|
|
||||||
|
|
||||||
Example: Delegate a /64 prefix to interface eth0.10 which will use a local
|
|
||||||
address on this router of ``<prefix>::ffff``, as the address 65534 will
|
|
||||||
correspond to ``ffff`` in hexadecimal notation.
|
|
||||||
|
|
||||||
.. code-block:: none
|
|
||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} dhcpv6-option pd 0 interface eth0.10 address 65534
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> dhcpv6-option pd <id> interface <delegatee> sla-id <id>
|
|
||||||
|
|
||||||
Specify the identifier value of the site-level aggregator (SLA) on the
|
|
||||||
interface. ID must be a decimal number greater then 0 which fits in the
|
|
||||||
length of SLA IDs (see below).
|
|
||||||
|
|
||||||
Example: If ID is 1 and the client is delegated an IPv6 prefix
|
|
||||||
2001:db8:ffff::/48, dhcp6c will combine the two values into a single IPv6
|
|
||||||
prefix, 2001:db8:ffff:1::/64, and will configure the prefix on the specified
|
|
||||||
interface.
|
|
||||||
|
|
||||||
.. code-block:: none
|
|
||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} dhcpv6-option pd 0 interface eth0.10 sla-id 1
|
|
||||||
|
|
||||||
|
|||||||
54
docs/_include/interface-dhcpv6-prefix-delegation.txt
Normal file
54
docs/_include/interface-dhcpv6-prefix-delegation.txt
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
**DHCPv6 Prefix Delegation (PD)**
|
||||||
|
|
||||||
|
VyOS 1.3 (equuleus) supports DHCPv6-PD (:rfc:`3633`). DHCPv6 Prefix Delegation
|
||||||
|
is supported by most ISPs who provide native IPv6 for consumers on fixed networks.
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> dhcpv6-option pd <id> length <length>
|
||||||
|
|
||||||
|
Some ISPs by default only delegate a /64 prefix. To request for a specific
|
||||||
|
prefix size use this option to request for a bigger delegation for this pd
|
||||||
|
`<id>`. This value is in the range from 32 - 64 so you could request up to a
|
||||||
|
/32 prefix (if your ISP allows this) down to a /64 delegation.
|
||||||
|
|
||||||
|
The default value corresponds to 64.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
To request a /56 prefix from your ISP use:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces {{ var0 }} {{ var1 }} dhcpv6-options pd 0 length 56
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> dhcpv6-option pd <id> interface <delegatee> address <address>
|
||||||
|
|
||||||
|
Specify the interface address used locally on the interfcae where the prefix
|
||||||
|
has been delegated to. ID must be a decimal integer.
|
||||||
|
|
||||||
|
It will be combined with the delegated prefix and the sla-id to form a
|
||||||
|
complete interface address. The default is to use the EUI-64 address of the
|
||||||
|
interface.
|
||||||
|
|
||||||
|
Example: Delegate a /64 prefix to interface eth0.10 which will use a local
|
||||||
|
address on this router of ``<prefix>::ffff``, as the address 65534 will
|
||||||
|
correspond to ``ffff`` in hexadecimal notation.
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces {{ var0 }} {{ var1 }} dhcpv6-option pd 0 interface eth0.10 address 65534
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> dhcpv6-option pd <id> interface <delegatee> sla-id <id>
|
||||||
|
|
||||||
|
Specify the identifier value of the site-level aggregator (SLA) on the
|
||||||
|
interface. ID must be a decimal number greater then 0 which fits in the
|
||||||
|
length of SLA IDs (see below).
|
||||||
|
|
||||||
|
Example: If ID is 1 and the client is delegated an IPv6 prefix
|
||||||
|
2001:db8:ffff::/48, dhcp6c will combine the two values into a single IPv6
|
||||||
|
prefix, 2001:db8:ffff:1::/64, and will configure the prefix on the specified
|
||||||
|
interface.
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces {{ var0 }} {{ var1 }} dhcpv6-option pd 0 interface eth0.10 sla-id 1
|
||||||
|
|
||||||
22
docs/_include/interface-disable-flow-control.txt
Normal file
22
docs/_include/interface-disable-flow-control.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> {{ var2 }} {{ var3 }} disable-flow-control
|
||||||
|
|
||||||
|
Ethernet flow control is a mechanism for temporarily stopping the transmission
|
||||||
|
of data on Ethernet family computer networks. The goal of this mechanism is to
|
||||||
|
ensure zero packet loss in the presence of network congestion.
|
||||||
|
|
||||||
|
The first flow control mechanism, the pause frame, was defined by the IEEE
|
||||||
|
802.3x standard.
|
||||||
|
|
||||||
|
A sending station (computer or network switch) may be transmitting data faster
|
||||||
|
than the other end of the link can accept it. Using flow control, the receiving
|
||||||
|
station can signal the sender requesting suspension of transmissions until the
|
||||||
|
receiver catches up.
|
||||||
|
|
||||||
|
Use this command to disable the generation of Ethernet flow control (pause
|
||||||
|
frames).
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces {{ var0 }} {{ var1 }} {{ var2 }} {{ var4 }} disable-flow-control
|
||||||
12
docs/_include/interface-disable-link-detect.txt
Normal file
12
docs/_include/interface-disable-link-detect.txt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
.. cfgcmd:: set interfaces {{ var0 }} {{ var2 }} {{ var3 }} <interface> disable-link-detect
|
||||||
|
|
||||||
|
Use this command to direct an interface to not detect any physical state
|
||||||
|
changes on a link, for example, when the cable is unplugged.
|
||||||
|
|
||||||
|
Default is to detects physical link state changes.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces {{ var0 }} {{ var1 }} {{ var2 }} {{ var4 }} disable-link-detect
|
||||||
@ -1,14 +1,12 @@
|
|||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> ipv6 address autoconf
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> ipv6 address autoconf
|
||||||
|
|
||||||
|
:abbr:`SLAAC (Stateless Address Autoconfiguration)` :rfc:`4862`. IPv6 hosts
|
||||||
:abbr:`SLAAC (Stateless Address Autoconfiguration)`
|
can configure themselves automatically when connected to an IPv6 network using
|
||||||
:rfc:`4862`. IPv6 hosts can configure themselves automatically when connected
|
the Neighbor Discovery Protocol via :abbr:`ICMPv6 (Internet Control Message
|
||||||
to an IPv6 network using the Neighbor Discovery Protocol via :abbr:`ICMPv6
|
Protocol version 6)` router discovery messages. When first connected to a
|
||||||
(Internet Control Message Protocol version 6)` router discovery messages.
|
network, a host sends a link-local router solicitation multicast request for
|
||||||
When first connected to a network, a host sends a link-local router
|
its configuration parameters; routers respond to such a request with a router
|
||||||
solicitation multicast request for its configuration parameters; routers
|
advertisement packet that contains Internet Layer configuration parameters.
|
||||||
respond to such a request with a router advertisement packet that contains
|
|
||||||
Internet Layer configuration parameters.
|
|
||||||
|
|
||||||
.. note:: This method automatically disables IPv6 traffic forwarding on the
|
.. note:: This method automatically disables IPv6 traffic forwarding on the
|
||||||
interface in question.
|
interface in question.
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> ipv6 address eui64 <prefix>
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> ipv6 address eui64 <prefix>
|
||||||
|
|
||||||
:abbr:`EUI-64 (64-Bit Extended Unique Identifier)` as specified in
|
:abbr:`EUI-64 (64-Bit Extended Unique Identifier)` as specified in
|
||||||
:rfc:`4291` allows a host to assign iteslf a unique 64-Bit IPv6 address.
|
:rfc:`4291` allows a host to assign iteslf a unique 64-Bit IPv6 address.
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
set interfaces {{ var0 }} {{ var1 }} ipv6 address eui64 2001:db8:beef::/64
|
set interfaces {{ var0 }} {{ var1 }} ipv6 address eui64 2001:db8:beef::/64
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.. cfgcmd:: set interfaces {{ var0 }} <interface> mac <xx:xx:xx:xx:xx:xx>
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> mac <xx:xx:xx:xx:xx:xx>
|
||||||
|
|
||||||
Configure user defined :abbr:`MAC (Media Access Control)` address on given
|
Configure user defined :abbr:`MAC (Media Access Control)` address on given
|
||||||
`<interface>`.
|
`<interface>`.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
|||||||
50
docs/_include/interface-vlan.txt
Normal file
50
docs/_include/interface-vlan.txt
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
IEEE 802.1q, often referred to as Dot1q, is the networking standard that supports
|
||||||
|
virtual LANs (VLANs) on an IEEE 802.3 Ethernet network. The standard defines a
|
||||||
|
system of VLAN tagging for Ethernet frames and the accompanying procedures to be
|
||||||
|
used by bridges and switches in handling such frames. The standard also contains
|
||||||
|
provisions for a quality-of-service prioritization scheme commonly known as IEEE
|
||||||
|
802.1p and defines the Generic Attribute Registration Protocol.
|
||||||
|
|
||||||
|
Portions of the network which are VLAN-aware (i.e., IEEE 802.1q conformant) can
|
||||||
|
include VLAN tags. When a frame enters the VLAN-aware portion of the network, a
|
||||||
|
tag is added to represent the VLAN membership. Each frame must be distinguishable
|
||||||
|
as being within exactly one VLAN. A frame in the VLAN-aware portion of the network
|
||||||
|
that does not contain a VLAN tag is assumed to be flowing on the native VLAN.
|
||||||
|
|
||||||
|
The standard was developed by IEEE 802.1, a working group of the IEEE 802
|
||||||
|
standards committee, and continues to be actively revised. One of the notable
|
||||||
|
revisions is 802.1Q-2014 which incorporated IEEE 802.1aq (Shortest Path Bridging)
|
||||||
|
and much of the IEEE 802.1d standard.
|
||||||
|
|
||||||
|
802.1q VLAN interfaces are represented as virtual sub-interfaces in VyOS. The
|
||||||
|
term used for this is ``vif``.
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> vif <vlan-id>
|
||||||
|
|
||||||
|
Create a new VLAN interface on interface `<interface>` using the VLAN number
|
||||||
|
provided via `<vlan-id>`.
|
||||||
|
|
||||||
|
You can create multiple VLAN interfaces on a physical interface. The VLAN ID
|
||||||
|
range is from 0 to 4094.
|
||||||
|
|
||||||
|
.. note:: Only 802.1Q-tagged packets are accepted on Ethernet vifs.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces {{ var0 }} {{ var1 }} vif 10
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-address-with-dhcp.txt
|
||||||
|
:var0: {{ var0 }}
|
||||||
|
:var1: {{ var1 }}
|
||||||
|
:var2: vif
|
||||||
|
:var3: <vlan-id>
|
||||||
|
:var4: 10
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-common.txt
|
||||||
|
:var0: {{ var0 }}
|
||||||
|
:var1: {{ var1 }}
|
||||||
|
:var2: vif
|
||||||
|
:var3: <vlan-id>
|
||||||
|
:var4: 10
|
||||||
12
docs/_include/interface-vrf.txt
Normal file
12
docs/_include/interface-vrf.txt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
.. cfgcmd:: set interfaces {{ var0 }} <interface> vrf <vrf>
|
||||||
|
|
||||||
|
Place interface in given VRF instance.
|
||||||
|
|
||||||
|
.. seealso:: There is an entire chapter about how to configure a :ref:`vrf`,
|
||||||
|
please check this for additional information.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces {{ var0 }} {{ var1 }} vrf red
|
||||||
@ -20,8 +20,15 @@ Common interface configuration
|
|||||||
:var0: bond
|
:var0: bond
|
||||||
:var1: bond0
|
:var1: bond0
|
||||||
|
|
||||||
Link Administration
|
Member Interfaces
|
||||||
-------------------
|
-----------------
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces bonding <interface> member interface <member>
|
||||||
|
|
||||||
|
Enslave `<member>` interface to bond `<interface>`.
|
||||||
|
|
||||||
|
Bond options
|
||||||
|
------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces bonding <interface> mode <mode>
|
.. cfgcmd:: set interfaces bonding <interface> mode <mode>
|
||||||
|
|
||||||
@ -246,13 +253,6 @@ Link Administration
|
|||||||
The maximum number of targets that can be specified is 16. The default value
|
The maximum number of targets that can be specified is 16. The default value
|
||||||
is no IP addresses.
|
is no IP addresses.
|
||||||
|
|
||||||
Member Interfaces
|
|
||||||
-----------------
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces bonding <interface> member interface <member>
|
|
||||||
|
|
||||||
Enslave `<member>` interface to bond `<interface>`.
|
|
||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
@ -24,29 +24,6 @@ Common interface configuration
|
|||||||
:var0: bridge
|
:var0: bridge
|
||||||
:var1: br0
|
:var1: br0
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces bridge <interface> aging <time>
|
|
||||||
|
|
||||||
MAC address aging `<time`> in seconds (default: 300).
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces bridge <interface> max-age <time>
|
|
||||||
|
|
||||||
Bridge maximum aging `<time>` in seconds (default: 20).
|
|
||||||
|
|
||||||
If a another bridge in the spanning tree does not send out a hello
|
|
||||||
packet for a long period of time, it is assumed to be dead.
|
|
||||||
|
|
||||||
|
|
||||||
Link Administration
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces bridge <interface> disable-flow-control
|
|
||||||
|
|
||||||
Disable Ethernet flow control (pause frames).
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces bridge <interface> igmp querier
|
|
||||||
|
|
||||||
Enable IGMP querier
|
|
||||||
|
|
||||||
Member Interfaces
|
Member Interfaces
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
@ -82,7 +59,6 @@ Member Interfaces
|
|||||||
deciding which link to use. Faster interfaces should have lower
|
deciding which link to use. Faster interfaces should have lower
|
||||||
costs.
|
costs.
|
||||||
|
|
||||||
|
|
||||||
.. _stp:
|
.. _stp:
|
||||||
|
|
||||||
STP Parameter
|
STP Parameter
|
||||||
@ -118,9 +94,26 @@ links providing fault tolerance if an active link fails.
|
|||||||
Designated Bridges. Hello packets are used to communicate information
|
Designated Bridges. Hello packets are used to communicate information
|
||||||
about the topology throughout the entire Bridged Local Area Network.
|
about the topology throughout the entire Bridged Local Area Network.
|
||||||
|
|
||||||
|
Additional Bridge Options
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces bridge <interface> aging <time>
|
||||||
|
|
||||||
|
MAC address aging `<time`> in seconds (default: 300).
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces bridge <interface> max-age <time>
|
||||||
|
|
||||||
|
Bridge maximum aging `<time>` in seconds (default: 20).
|
||||||
|
|
||||||
|
If a another bridge in the spanning tree does not send out a hello
|
||||||
|
packet for a long period of time, it is assumed to be dead.
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces bridge <interface> igmp querier
|
||||||
|
|
||||||
|
Enable IGMP querier
|
||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
#######
|
||||||
|
|
||||||
Creating a bridge interface is very simple. In this example we will
|
Creating a bridge interface is very simple. In this example we will
|
||||||
have:
|
have:
|
||||||
@ -155,7 +148,7 @@ This results in the active configuration:
|
|||||||
|
|
||||||
|
|
||||||
Operation
|
Operation
|
||||||
=========
|
#########
|
||||||
|
|
||||||
.. opcmd:: show bridge
|
.. opcmd:: show bridge
|
||||||
|
|
||||||
|
|||||||
@ -33,6 +33,14 @@ Common interface configuration
|
|||||||
:var0: dummy
|
:var0: dummy
|
||||||
:var1: dum0
|
:var1: dum0
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-disable.txt
|
||||||
|
:var0: dummy
|
||||||
|
:var1: dum0
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-vrf.txt
|
||||||
|
:var0: dummy
|
||||||
|
:var1: dum0
|
||||||
|
|
||||||
Operation
|
Operation
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
|||||||
@ -45,13 +45,12 @@ Speed/Duplex
|
|||||||
|
|
||||||
VyOS default will be `auto`.
|
VyOS default will be `auto`.
|
||||||
|
|
||||||
Link Administration
|
VLAN (802.1q) configuration
|
||||||
-------------------
|
---------------------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces ethernet <interface> disable-flow-control
|
|
||||||
|
|
||||||
Disable Ethernet flow control (pause frames).
|
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-vlan.txt
|
||||||
|
:var0: ethernet
|
||||||
|
:var1: eth0
|
||||||
|
|
||||||
Operation
|
Operation
|
||||||
=========
|
=========
|
||||||
|
|||||||
@ -42,6 +42,9 @@ Common interface configuration
|
|||||||
:var0: geneve
|
:var0: geneve
|
||||||
:var1: gnv0
|
:var1: gnv0
|
||||||
|
|
||||||
|
GENEVE specific options
|
||||||
|
-----------------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces geneve gnv0 remote <address>
|
.. cfgcmd:: set interfaces geneve gnv0 remote <address>
|
||||||
|
|
||||||
Configure GENEVE tunnel far end/remote tunnel endpoint.
|
Configure GENEVE tunnel far end/remote tunnel endpoint.
|
||||||
@ -55,7 +58,3 @@ Common interface configuration
|
|||||||
decisions or MAY be used as a mechanism to distinguish between overlapping
|
decisions or MAY be used as a mechanism to distinguish between overlapping
|
||||||
address spaces contained in the encapsulated packet when load balancing
|
address spaces contained in the encapsulated packet when load balancing
|
||||||
across CPUs.
|
across CPUs.
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces geneve gnv0 mtu <mtu>
|
|
||||||
|
|
||||||
Set interface :abbr:`MTU (Maximum Transfer Unit)` size.
|
|
||||||
|
|||||||
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
.. _l2tpv3-interface:
|
.. _l2tpv3-interface:
|
||||||
|
|
||||||
|
######
|
||||||
L2TPv3
|
L2TPv3
|
||||||
------
|
######
|
||||||
|
|
||||||
L2TPv3 is a pseudowire protocol, you can read more about on `Wikipedia L2TPv3`_
|
L2TPv3 is a pseudowire protocol, you can read more about on `Wikipedia L2TPv3`_
|
||||||
or in :rfc:`3921`
|
or in :rfc:`3921`
|
||||||
@ -11,6 +12,16 @@ or in :rfc:`3921`
|
|||||||
L2TPv3 can transport any traffic including ethernet frames. L2TPv2 is limited
|
L2TPv3 can transport any traffic including ethernet frames. L2TPv2 is limited
|
||||||
to PPP.
|
to PPP.
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
#############
|
||||||
|
|
||||||
|
Common interface configuration
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-common-without-dhcp.txt
|
||||||
|
:var0: l2tpv3
|
||||||
|
:var1: l2tpeth0
|
||||||
|
|
||||||
Over IP
|
Over IP
|
||||||
^^^^^^^
|
^^^^^^^
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,9 @@ Common interface configuration
|
|||||||
:var0: macsec
|
:var0: macsec
|
||||||
:var1: macsec0
|
:var1: macsec0
|
||||||
|
|
||||||
|
MACsec specific options
|
||||||
|
-----------------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces macsec <interface> security cipher [gcm-aes-128]
|
.. cfgcmd:: set interfaces macsec <interface> security cipher [gcm-aes-128]
|
||||||
|
|
||||||
Select cipher suite used for cryptographic operations. This setting is
|
Select cipher suite used for cryptographic operations. This setting is
|
||||||
@ -41,9 +44,8 @@ Common interface configuration
|
|||||||
A physical interface is required to connect this MACsec instance to. Traffic
|
A physical interface is required to connect this MACsec instance to. Traffic
|
||||||
leaving this interfac will now be authenticated/encrypted.
|
leaving this interfac will now be authenticated/encrypted.
|
||||||
|
|
||||||
|
|
||||||
Key Management
|
Key Management
|
||||||
--------------
|
^^^^^^^^^^^^^^
|
||||||
|
|
||||||
:abbr:`MKA (MACsec Key Agreement protocol)` is used to synchronize keys between
|
:abbr:`MKA (MACsec Key Agreement protocol)` is used to synchronize keys between
|
||||||
individual peers.
|
individual peers.
|
||||||
@ -63,7 +65,7 @@ individual peers.
|
|||||||
distributing SAKs.
|
distributing SAKs.
|
||||||
|
|
||||||
Replay protection
|
Replay protection
|
||||||
-----------------
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces macsec <interface> security replay-window <window>
|
.. cfgcmd:: set interfaces macsec <interface> security replay-window <window>
|
||||||
|
|
||||||
@ -75,7 +77,7 @@ Replay protection
|
|||||||
- ``1-4294967295``: Number of packets that could be misordered
|
- ``1-4294967295``: Number of packets that could be misordered
|
||||||
|
|
||||||
Operation
|
Operation
|
||||||
=========
|
#########
|
||||||
|
|
||||||
.. opcmd:: run generate macsec mka-cak
|
.. opcmd:: run generate macsec mka-cak
|
||||||
|
|
||||||
@ -122,7 +124,7 @@ Operation
|
|||||||
TXSC: 005056bfefaa0001 on SA 0
|
TXSC: 005056bfefaa0001 on SA 0
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
========
|
########
|
||||||
|
|
||||||
* Two routers connected both via eth1 through an untrusted switch
|
* Two routers connected both via eth1 through an untrusted switch
|
||||||
* R1 has 192.0.2.1/24 & 2001:db8::1/64
|
* R1 has 192.0.2.1/24 & 2001:db8::1/64
|
||||||
|
|||||||
@ -54,6 +54,24 @@ vDSL/aDSL understands.
|
|||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
Common interface configuration
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-description.txt
|
||||||
|
:var0: pppoe
|
||||||
|
:var1: pppoe0
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-disable.txt
|
||||||
|
:var0: pppoe
|
||||||
|
:var1: pppoe0
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-vrf.txt
|
||||||
|
:var0: pppoe
|
||||||
|
:var1: pppoe0
|
||||||
|
|
||||||
|
PPPoE specific configuration
|
||||||
|
----------------------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pppoe <interface> access-concentrator <name>
|
.. cfgcmd:: set interfaces pppoe <interface> access-concentrator <name>
|
||||||
|
|
||||||
Use this command to restrict the PPPoE session on a given access
|
Use this command to restrict the PPPoE session on a given access
|
||||||
@ -102,16 +120,6 @@ Configuration
|
|||||||
**default:** A default route to the remote endpoint is automatically added
|
**default:** A default route to the remote endpoint is automatically added
|
||||||
when the link comes up (i.e. auto).
|
when the link comes up (i.e. auto).
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pppoe <interface> description
|
|
||||||
|
|
||||||
Assign given `<description>` to interface. Description will also be passed
|
|
||||||
to SNMP monitoring systems.
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pppoe <interface> disable
|
|
||||||
|
|
||||||
Disable given `<interface>`. It will be placed in administratively down
|
|
||||||
(``A/D``) state.
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pppoe <interface> idle-timeout <time>
|
.. cfgcmd:: set interfaces pppoe <interface> idle-timeout <time>
|
||||||
|
|
||||||
Use this command to set the idle timeout interval to be used with on-demand
|
Use this command to set the idle timeout interval to be used with on-demand
|
||||||
@ -167,43 +175,9 @@ IPv6
|
|||||||
Use this command to enable acquisition of IPv6 address using stateless
|
Use this command to enable acquisition of IPv6 address using stateless
|
||||||
autoconfig (SLAAC).
|
autoconfig (SLAAC).
|
||||||
|
|
||||||
Prefix Delegation (DHCPv6-PD)
|
.. cmdinclude:: ../_include/interface-dhcpv6-prefix-delegation.txt
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
:var0: pppoe
|
||||||
|
:var1: pppoe0
|
||||||
VyOS 1.3 (equuleus) supports DHCPv6-PD. DHCPv6 Prefix Delegation is supported
|
|
||||||
by most ISPs who provide native IPv6 for consumers on fixed networks.
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pppoe <interface> dhcpv6-option pd <id> length <length>
|
|
||||||
|
|
||||||
Some ISPs by default only delegate a /64 prefix. To request for a specific
|
|
||||||
prefix size use this option to request for a bigger delegation for this pd
|
|
||||||
`<id>`. This value
|
|
||||||
is in the range from 32 - 64 so you could request up to /32 down to a /64
|
|
||||||
delegation.
|
|
||||||
|
|
||||||
Default value is 64.
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pppoe <interface> dhcpv6-option pd <id> interface <delegatee> address <address>
|
|
||||||
|
|
||||||
Specify the interface address used locally on the interfcae where the prefix
|
|
||||||
has been delegated to. ID must be a decimal integer.
|
|
||||||
|
|
||||||
It will be combined with the delegated prefix and the sla-id to form a complete
|
|
||||||
interface address. The default is to use the EUI-64 address of the interface.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
Using ``<id>`` value 65535 will assign IPv6 address ``<prefix>::ffff`` to the
|
|
||||||
interface.
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pppoe <interface> dhcpv6-option pd <id> interface <delegatee> sla-id <id>
|
|
||||||
|
|
||||||
Specify the identifier value of the site-level aggregator (SLA) on the
|
|
||||||
interface. ID must be a decimal number greater then 0 which fits in the length
|
|
||||||
of SLA IDs (see below). For example, if ID is 1 and the client is delegated
|
|
||||||
an IPv6 prefix 2001:db8:ffff::/48, dhcp6c will combine the two values into a
|
|
||||||
single IPv6 prefix, 2001:db8:ffff:1::/64, and will configure the prefix on
|
|
||||||
the specified interface.
|
|
||||||
|
|
||||||
Operation
|
Operation
|
||||||
=========
|
=========
|
||||||
|
|||||||
@ -48,8 +48,8 @@ Common interface configuration
|
|||||||
:var0: pseudo-ethernet
|
:var0: pseudo-ethernet
|
||||||
:var1: peth0
|
:var1: peth0
|
||||||
|
|
||||||
Physical Asignment
|
Pseudo Ethernet/MACVLAN specific options
|
||||||
------------------
|
----------------------------------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces pseudo-ethernet <interface> source-interface <ethX>
|
.. cfgcmd:: set interfaces pseudo-ethernet <interface> source-interface <ethX>
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,13 @@ GRE options that can be useful.
|
|||||||
All those protocols are grouped under ``interfaces tunnel`` in VyOS. Let's take
|
All those protocols are grouped under ``interfaces tunnel`` in VyOS. Let's take
|
||||||
a closer look at the protocols and options currently supported by VyOS.
|
a closer look at the protocols and options currently supported by VyOS.
|
||||||
|
|
||||||
|
Common interface configuration
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-common-without-dhcp.txt
|
||||||
|
:var0: tunnel
|
||||||
|
:var1: tun0
|
||||||
|
|
||||||
IPIP
|
IPIP
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|||||||
@ -40,55 +40,54 @@ Common interface configuration
|
|||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
.. cmdinclude:: ../_include/interface-common-without-dhcp.txt
|
.. cmdinclude:: ../_include/interface-common-without-dhcp.txt
|
||||||
:var0: vxlan
|
:var0: vxlan
|
||||||
:var1: vxlan0
|
:var1: vxlan0
|
||||||
|
|
||||||
|
VXLAN specific options
|
||||||
|
-----------------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces vxlan <interface> vni <number>
|
.. cfgcmd:: set interfaces vxlan <interface> vni <number>
|
||||||
|
|
||||||
Each VXLAN segment is identified through a 24-bit segment ID, termed the
|
Each VXLAN segment is identified through a 24-bit segment ID, termed the
|
||||||
:abbr:`VNI (VXLAN Network Identifier (or VXLAN Segment ID))`, This allows
|
:abbr:`VNI (VXLAN Network Identifier (or VXLAN Segment ID))`, This allows
|
||||||
up to 16M VXLAN segments to coexist within the same administrative domain.
|
up to 16M VXLAN segments to coexist within the same administrative domain.
|
||||||
|
|
||||||
Multicast
|
.. cfgcmd:: set interfaces vxlan <interface> port <port>
|
||||||
^^^^^^^^^
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces vxlan <interface> source-interface <interface>
|
Configure port number of remote VXLAN endpoint.
|
||||||
|
|
||||||
Interface used for VXLAN underlay. This is mandatory when using VXLAN via
|
.. note:: As VyOS is Linux based the default port used is not using 4789
|
||||||
a multicast network. VXLAN traffic will always enter and exit this interface.
|
as the default IANA-assigned destination UDP port number. Instead VyOS
|
||||||
|
uses the Linux default port of 8472.
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces vxlan <interface> source-address <interface>
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces vxlan <interface> group <address>
|
Source IP address used for VXLAN underlay. This is mandatory when using VXLAN
|
||||||
|
via L2VPN/EVPN.
|
||||||
Multicast group address for VXLAN interface. VXLAN tunnels can be built
|
|
||||||
either via Multicast or via Unicast.
|
|
||||||
|
|
||||||
Both IPv4 and IPv6 multicast is possible.
|
|
||||||
|
|
||||||
Unicast
|
Unicast
|
||||||
^^^^^^^
|
^^^^^^^
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces vxlan <interface> remote <address>
|
.. cfgcmd:: set interfaces vxlan <interface> remote <address>
|
||||||
|
|
||||||
IPv4/IPv6 remote address of the VXLAN tunnel. Alternative to multicast, the
|
IPv4/IPv6 remote address of the VXLAN tunnel. Alternative to multicast, the
|
||||||
remote IPv4/IPv6 address can set directly.
|
remote IPv4/IPv6 address can set directly.
|
||||||
|
|
||||||
|
Multicast
|
||||||
|
^^^^^^^^^
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces vxlan <interface> source-interface <interface>
|
||||||
|
|
||||||
|
Interface used for VXLAN underlay. This is mandatory when using VXLAN via
|
||||||
|
a multicast network. VXLAN traffic will always enter and exit this interface.
|
||||||
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces vxlan <interface> port <port>
|
.. cfgcmd:: set interfaces vxlan <interface> group <address>
|
||||||
|
|
||||||
Configure port number of remote VXLAN endpoint.
|
Multicast group address for VXLAN interface. VXLAN tunnels can be built
|
||||||
|
either via Multicast or via Unicast.
|
||||||
|
|
||||||
.. note:: As VyOS is Linux based the default port used is not using 4789
|
Both IPv4 and IPv6 multicast is possible.
|
||||||
as the default IANA-assigned destination UDP port number. Instead VyOS
|
|
||||||
uses the Linux default port of 8472.
|
|
||||||
|
|
||||||
L2VVPN / EVPN
|
|
||||||
^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces vxlan <interface> source-address <interface>
|
|
||||||
|
|
||||||
Source IP address used for VXLAN underlay. This is mandatory when using
|
|
||||||
VXLAN via L2VPN/EVPN.
|
|
||||||
|
|
||||||
Multicast VXLAN
|
Multicast VXLAN
|
||||||
===============
|
===============
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
|
.. include:: ../_include/need_improvement.txt
|
||||||
|
|
||||||
.. _wireless-interface:
|
.. _wireless-interface:
|
||||||
|
|
||||||
|
###################
|
||||||
Wireless LAN (WiFi)
|
Wireless LAN (WiFi)
|
||||||
-------------------
|
###################
|
||||||
|
|
||||||
:abbr:`WLAN (Wireless LAN)` interface provide 802.11 (a/b/g/n/ac) wireless
|
:abbr:`WLAN (Wireless LAN)` interface provide 802.11 (a/b/g/n/ac) wireless
|
||||||
support (commonly referred to as Wi-Fi) by means of compatible hardware. If your
|
support (commonly referred to as Wi-Fi) by means of compatible hardware. If your
|
||||||
@ -22,17 +25,30 @@ If the system detects an unconfigured wireless device, it will be automatically
|
|||||||
added the configuration tree, specifying any detected settings (for example,
|
added the configuration tree, specifying any detected settings (for example,
|
||||||
its MAC address) and configured to run in monitor mode.
|
its MAC address) and configured to run in monitor mode.
|
||||||
|
|
||||||
To be able to use the wireless interfaces you will first need to set a
|
Configuration
|
||||||
regulatory domain with the country code of your location.
|
#############
|
||||||
|
|
||||||
.. cfgcmd:: set system wifi-regulatory-domain DE
|
Common interface configuration
|
||||||
|
------------------------------
|
||||||
|
|
||||||
Configure system wide Wi-Fi regulatory domain. A reboot is required for this
|
.. cmdinclude:: ../_include/interface-common-with-dhcp.txt
|
||||||
change to be enabled.
|
:var0: wireless
|
||||||
|
:var1: wlan0
|
||||||
|
|
||||||
|
Wireless specific options
|
||||||
|
-------------------------
|
||||||
|
|
||||||
Configuring Access-Point
|
Configuring Access-Point
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
To be able to use the wireless interfaces you will first need to set a
|
||||||
|
regulatory domain with the country code of your location.
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces wireless <interface> country-code <cc>
|
||||||
|
|
||||||
|
Configure system wide Wi-Fi regulatory domain. A reboot is required for this
|
||||||
|
change to be enabled.
|
||||||
|
|
||||||
The following example creates a WAP. When configuring multiple WAP interfaces,
|
The following example creates a WAP. When configuring multiple WAP interfaces,
|
||||||
you must specify unique IP addresses, channels, Network IDs commonly referred
|
you must specify unique IP addresses, channels, Network IDs commonly referred
|
||||||
to as :abbr:`SSID (Service Set Identifier)`, and MAC addresses.
|
to as :abbr:`SSID (Service Set Identifier)`, and MAC addresses.
|
||||||
|
|||||||
@ -18,8 +18,16 @@ Common interface configuration
|
|||||||
:var0: wirelessmodem
|
:var0: wirelessmodem
|
||||||
:var1: wlm0
|
:var1: wlm0
|
||||||
|
|
||||||
Address
|
.. cmdinclude:: ../_include/interface-disable.txt
|
||||||
-------
|
:var0: wirelessmodem
|
||||||
|
:var1: wlm0
|
||||||
|
|
||||||
|
.. cmdinclude:: ../_include/interface-vrf.txt
|
||||||
|
:var0: wirelessmodem
|
||||||
|
:var1: wlm0
|
||||||
|
|
||||||
|
WWAN specific options
|
||||||
|
---------------------
|
||||||
|
|
||||||
.. cfgcmd:: set interfaces wirelessmodem <interface> apn <apn>
|
.. cfgcmd:: set interfaces wirelessmodem <interface> apn <apn>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user