EasyManua.ls Logo

Ruijie RG-S2900G-E Series - Page 198

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
The following example removes VLAN 2 from the allowed VLAN list of port 1/15:
Ruijie(config)# interface fastethernet 1/15
Ruijie(config-if)# switchport trunk allowed vlan remove 2
Ruijie(config-if)# end
Ruijie# show interfaces fastethernet 1/15 switchport
Interface Switchport Mode Access Native Protected VLAN lists
--------- ---------- ---- ------ ------ -------- ----------
Gi0/15 enabled TRUNK 1 1 Disabled 1,34094
Configuring a Native VLAN.
Tagged or untagged 802.1Q frames can be received or sent on a trunk port.
Untagged frames are used to transmit the traffic of the native VLAN. By default,
the native VLAN is VLAN 1.
In the privileged mode, you can configure a native VLAN for a trunk port by
executing the following command.
Command
Function
Ruijie(config-if)# switchport
trunk native vlan vlan-id
Configure a native VLAN.
To restore the native VLAN of a trunk port to its default, execute the no
switchport trunk native vlan command in the interface configuration
command.
If a frame carries the VLAN ID of the native VLAN, it will be automatically
untagged when being forwarded through the trunk port.
When you set the native VLAN of a trunk port to an inexistent VLAN, the switch
will not automatically create the VLAN. In addition, the native VLAN of a trunk
port may be out the allowed VLAN list. In this case, the traffic of the native
VLAN cannot pass the trunk port.
Showing VLAN Information
Only in the privileged mode can you view the VLAN information, including VLAN
VID, VLAN status, member ports of the VLAN, and VLAN configuration. The
related commands are listed as below:
Command
Function
show vlan [id vlan-id]
Show the information about all or the specified
VLAN.
The following example shows the information about a VLAN:

Table of Contents

Related product manuals