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 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.
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.
Summary of Contents for RG-S2900G-E Series
Page 1: ...RG S2900G E Series Switch RGOS Configuration Guide Release 10 4 2b12 p1 ...
Page 91: ...Configuration Guide Configuring PoE Configuration ...
Page 133: ...Configuration Guide EEE Configuration ...
Page 319: ...Configuration Guide QinQ Configuration ...
Page 408: ......
Page 409: ...IP Routing Configuration 1 Static Route Configuration ...
Page 412: ......
Page 413: ...Multicast Configuration 1 IGMP Snooping Configuration 2 MLD Snooping Configuration ...
Page 757: ......
Page 758: ...ACL QoS Configuration 1 Access Control List Configuration 2 QoS Configuration ...
Page 801: ...Reliability Configuration 1 RLDP Configuration 2 TPP Configuration 3 SEM Configuration ...
Page 901: ...Configuration Guide ERSPAN Configuration ...
Page 902: ...Web based Configuration 1 Web based Configuration ...