diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-23 17:32:11 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-23 17:32:11 +0100 |
commit | 6588e905512e80e6038fd210837b52f43a7632ad (patch) | |
tree | 90f0b2fb985ebd2901301b2638912e3e42a42268 /docs/interfaces/bridge.rst | |
parent | 55b77175b4824384f5540a17f53f4e18fbedbce0 (diff) | |
download | vyos-documentation-6588e905512e80e6038fd210837b52f43a7632ad.tar.gz vyos-documentation-6588e905512e80e6038fd210837b52f43a7632ad.zip |
interfaces: add generic VLAN documentation
Diffstat (limited to 'docs/interfaces/bridge.rst')
-rw-r--r-- | docs/interfaces/bridge.rst | 61 |
1 files changed, 16 insertions, 45 deletions
diff --git a/docs/interfaces/bridge.rst b/docs/interfaces/bridge.rst index 058d7b01..045ae2a8 100644 --- a/docs/interfaces/bridge.rst +++ b/docs/interfaces/bridge.rst @@ -113,56 +113,27 @@ links providing fault tolerance if an active link fails. Designated Bridges. Hello packets are used to communicate information about the topology throughout the entire Bridged Local Area Network. -Enable VLAN-aware bridge -------------------------- +VLAN +==== -.. cfgcmd:: set interfaces bridge <interface> member interface <member> native-vlan <vlan-id> - - Set the native VLAN ID flag of the interface. When a data packet without a VLAN tag enters - the port, the data packet will be forced to add a tag of a specific vlan id. When the vlan - id flag flows out, the tag of the vlan id will be stripped - -.. cfgcmd:: set interfaces bridge <interface> member interface <member> allowed-vlan <vlan-id> - - Allows specific VLAN IDs to pass through the bridge member interface - -.. cfgcmd:: set interfaces bridge <interface> member interface <member> allowed-vlan <n-m> - - `n` and `m` represent a VLAN ID, which identifies a VLAN ID range and allows all VLAN IDS in this range to pass through the bridge member interface - -VLAN (802.1q) configuration ---------------------------- - -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``. +.. cmdinclude:: ../_include/interface-vlan.txt + :var0: bridge + :var1: br0 -.. cfgcmd:: set interfaces bridge <interface> vif <vlan-id> +.. cfgcmd:: set interfaces bridge <interface> member interface <member> + native-vlan <vlan-id> - Create a new VLAN interface on interface `<interface>` using the VLAN number - provided via `<vlan-id>`. + Set the native VLAN ID flag of the interface. When a data packet without a + VLAN tag enters the port, the data packet will be forced to add a tag of a + specific vlan id. When the vlan id flag flows out, the tag of the vlan id + will be stripped - You can create multiple VLAN interfaces on a physical interface. The VLAN ID - range is from 1 to 4094. +.. cfgcmd:: set interfaces bridge <interface> member interface <member> + allowed-vlan <vlan-id> - .. note:: Only 802.1Q-tagged packets are accepted on Bridge vifs. + Allows specific VLAN IDs to pass through the bridge member interface. This + can either be an individual VLAN id or a range of VLAN ids delimited by a + hyphen. ******* Example |