EasyManua.ls Logo

Ruijie RG-S2900G-E Series - Configuring a Trunk Port

Ruijie RG-S2900G-E Series
943 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Configuration Guide VLAN Configuration
When you configure a trunk link, be sure that the ports on both ends of the trunk
belong to the same native VLAN.
Configuring a Trunk Port
Basic Trunk Port Configuration
In the privileged mode, you can configure a trunk port by executing the following
command.
Command
Function
Ruijie(config-if)# switchport
mode trunk
Configure the port as a L2 trunk port.
Ruijie(config-if)# switchport
trunk native vlan vlan-id
Specify a native VLAN for the port.
To restore all the trunk-related settings of a trunk port to their defaults, use the
no switchport mode command in the interface configuration mode.
Defining the Allowed VLAN List of a Trunk Port
By default, the traffic of all VLANs in the range of 1 to 4094 can be transmitted
over a trunk port. However, you can restrict the traffic of some VLANs from
passing the trunk port by setting its allowed VLAN list.
In the priviledged mode, you can modify the allowed VLAN list of a trunk port by
executing the following command.
Command
Function
Ruijie(config-if)# switchport
trunk allowed vlan {all | [add |
remove | except] } vlan-list
(Optional) Configure the allowed VLAN list of
the trunk port. The vlan-list parameter may be a
VLAN or a series of VLANs. It starts with a small
VLAN ID and ends with a large VLAN ID. Both
IDs are connected with ―-‖, such as 1020.
All: Add all the allowed VLANs to the allowed
VLAN list;
add: Add the specified VLAN list to the allowed
VLAN list;
remove: Remove the specified VLAN list from
the allowed VLAN list;
except: Add all the VLANs other than the
specified VLAN list to the allowed VLAN list.
To restore the allowed VLAN list of the trunk port to its default, execute the no
switchport trunk allowed vlan command in the interface configuration mode.

Table of Contents

Related product manuals