mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
bridge: Add active VLAN aware option
This commit is contained in:
parent
1a89ce7c32
commit
9c62938179
@ -116,6 +116,16 @@ links providing fault tolerance if an active link fails.
|
|||||||
VLAN
|
VLAN
|
||||||
====
|
====
|
||||||
|
|
||||||
|
.. note:: It is not valid to use the `vif 1` option for VLAN aware bridges
|
||||||
|
because VLAN aware bridges assume that all unlabeled packets belong to
|
||||||
|
the default VLAN 1 member and that the VLAN ID of the bridge's parent
|
||||||
|
interface is always 1
|
||||||
|
|
||||||
|
.. cfgcmd:: set interfaces bridge <interface> enable-vlan
|
||||||
|
|
||||||
|
To activate the VLAN aware bridge, you must activate this setting to use VLAN
|
||||||
|
settings for the bridge
|
||||||
|
|
||||||
.. cmdinclude:: /_include/interface-vlan-8021q.txt
|
.. cmdinclude:: /_include/interface-vlan-8021q.txt
|
||||||
:var0: bridge
|
:var0: bridge
|
||||||
:var1: br0
|
:var1: br0
|
||||||
@ -160,9 +170,9 @@ Port Mirror (SPAN)
|
|||||||
:var1: br1
|
:var1: br1
|
||||||
:var2: eth3
|
:var2: eth3
|
||||||
|
|
||||||
*******
|
******************************
|
||||||
Example
|
Example: Create a basic bridge
|
||||||
*******
|
******************************
|
||||||
|
|
||||||
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:
|
||||||
@ -195,9 +205,9 @@ This results in the active configuration:
|
|||||||
}
|
}
|
||||||
stp
|
stp
|
||||||
|
|
||||||
*******
|
*********************************
|
||||||
Example
|
Example: Using VLAN aware Bridge
|
||||||
*******
|
*********************************
|
||||||
|
|
||||||
An example of creating a VLAN-aware bridge is as follows:
|
An example of creating a VLAN-aware bridge is as follows:
|
||||||
|
|
||||||
@ -209,6 +219,7 @@ An example of creating a VLAN-aware bridge is as follows:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
|
set interfaces bridge br100 enable-vlan
|
||||||
set interfaces bridge br100 member interface eth1 allowed-vlan 10
|
set interfaces bridge br100 member interface eth1 allowed-vlan 10
|
||||||
set interfaces bridge br100 member interface eth2 native-vlan 10
|
set interfaces bridge br100 member interface eth2 native-vlan 10
|
||||||
set interfaces bridge br100 vif 10 address 192.0.2.1/24
|
set interfaces bridge br100 vif 10 address 192.0.2.1/24
|
||||||
@ -220,6 +231,7 @@ This results in the active configuration:
|
|||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
vyos@vyos# show interfaces bridge br100
|
vyos@vyos# show interfaces bridge br100
|
||||||
|
enable-vlan
|
||||||
member {
|
member {
|
||||||
interface eth1 {
|
interface eth1 {
|
||||||
allowed-vlan 10
|
allowed-vlan 10
|
||||||
@ -234,9 +246,9 @@ This results in the active configuration:
|
|||||||
address 2001:db8::ffff/64
|
address 2001:db8::ffff/64
|
||||||
}
|
}
|
||||||
|
|
||||||
*******
|
********************************************************************
|
||||||
Example
|
Example: Using the operation mode command to view Bridge Information
|
||||||
*******
|
********************************************************************
|
||||||
|
|
||||||
.. opcmd:: show bridge
|
.. opcmd:: show bridge
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user