Configuring A Trunk Port - Ruijie RG-S2900G-E Series Configuration Manual

Table of Contents

Advertisement

Configuration Guide
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
Ruijie(config-if)# switchport
mode trunk
Ruijie(config-if)# switchport
trunk native vlan vlan-id
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
Ruijie(config-if)# switchport
trunk allowed vlan {all | [add |
remove | except] } 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.
Function
Configure the port as a L2 trunk port.
Specify a native VLAN for the port.
Function
(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 10–20.
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.
VLAN Configuration

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RG-S2900G-E Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF