From 84ea67db630846210df983f4ab4cb966a550790a Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Sun, 20 Dec 2020 22:24:48 +0800 Subject: Examples of adding VLAN awareness and port mirroring --- docs/configuration/interfaces/bonding.rst | 4 +++- docs/configuration/interfaces/bridge.rst | 22 +++++++++++++++++++++- docs/configuration/interfaces/ethernet.rst | 2 ++ 3 files changed, 26 insertions(+), 2 deletions(-) (limited to 'docs/configuration') diff --git a/docs/configuration/interfaces/bonding.rst b/docs/configuration/interfaces/bonding.rst index 84f00132..92601b37 100644 --- a/docs/configuration/interfaces/bonding.rst +++ b/docs/configuration/interfaces/bonding.rst @@ -266,7 +266,9 @@ VLAN Port Mirror (SPAN) ================== .. cmdinclude:: ../../_include/interface-mirror.txt - :var0: ethernet + :var0: bonding + :var1: bond1 + :var2: eth3 ******* Example diff --git a/docs/configuration/interfaces/bridge.rst b/docs/configuration/interfaces/bridge.rst index a471b8f8..17e3d50b 100644 --- a/docs/configuration/interfaces/bridge.rst +++ b/docs/configuration/interfaces/bridge.rst @@ -127,6 +127,12 @@ VLAN 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 + + Example: Set `eth0` member port to be native VLAN 2 + + .. code-block:: none + + set interfaces bridge br1 member interface eth0 native-vlan 2 .. cfgcmd:: set interfaces bridge member interface allowed-vlan @@ -134,11 +140,25 @@ VLAN 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: Set `eth0` member port to be allowed VLAN 4 + + .. code-block:: none + + set interfaces bridge br1 member interface eth0 allowed-vlan 4 + + Example: Set `eth0` member port to be allowed VLAN 6-8 + + .. code-block:: none + + set interfaces bridge br1 member interface eth0 allowed-vlan 6-8 Port Mirror (SPAN) ================== .. cmdinclude:: ../../_include/interface-mirror.txt - :var0: ethernet + :var0: bridge + :var1: br1 + :var2: eth3 ******* Example diff --git a/docs/configuration/interfaces/ethernet.rst b/docs/configuration/interfaces/ethernet.rst index b4151dd2..c1ee724b 100644 --- a/docs/configuration/interfaces/ethernet.rst +++ b/docs/configuration/interfaces/ethernet.rst @@ -87,6 +87,8 @@ Port Mirror (SPAN) ================== .. cmdinclude:: ../../_include/interface-mirror.txt :var0: ethernet + :var1: eth1 + :var2: eth3 ********* Operation -- cgit v1.2.3