XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
171
2. Set or delete VLAN name
3. Assigning Switch ports for VLAN
4. Set the Switch Port Type
5. Set Trunk port
6. Set Access port
Global Mode
vlan WORD
no vlan WORD
Create/delete VLAN or enter VLAN Mode
Command
Explanation
VLAN Mode
name <vlan-name>
no name
Set or delete VLAN name.
Command
Explanation
VLAN Mode
switchport interface <interface-list>
no switchport interface <interface-list>
Assign Switch ports to VLAN.
Command
Explanation
Port Mode
switchport mode {trunk | access | hybrid}
Set the current port as Trunk, Access or
Hybrid port.
Command
Explanation
Port Mode
switchport trunk allowed vlan {WORD | all
| add WORD | except WORD | remove
WORD}
no switchport trunk allowed vlan
Set/delete VLAN allowed to be crossed
by Trunk. The “no” command restores
the default setting.
switchport trunk native vlan <vlan-id>
no switchport trunk native vlan
Set/delete PVID for Trunk port.
Command
Explanation
Port Mode