QTECH
Software Configuration Manual
5-68
5.2.2
Add/delete VLAN interface
Use the switchport command to add a port or multiple ports to current VLAN. Use the no switchport
command to remove a port or multiple ports from current VLAN. Use following commands in VLAN configuration
mode :
Add interface to specified VLAN
switchport
{
interface-list
| all }
Delete some interface from specified VLAN
no switchport
{
interface-list
| all }
Interface-list is the optioned interface list which means a or more interfaces. If choose all, add all ports to
current VLAN; if choosing all when deleting interface, all ports in current VLAN will be deleted. When deleting
interface from VLAN 1, if the PVID of interface is 1, modify the PVID to be other VLAN ID before deleting this
interface. When deleting interface in other VLAN ID, port PVID should be the same as the VLAN ID, and the port is
also in VLAN 1, delete it. If this port is not in VLAN 1, modify port PVID to be other VLAN ID, delete the port.
There are two status of the interface in VLAN, one is tagged and the other is untagged. If the port is access port, add
it to VLAN with the status of being untagged. If it is trunk port, change it to be tagged in VLAN.
For example :
! Add Ethernet 1, 3, 4, 5, 8 to current VLAN
QTECH(config-if-vlan)#switchport ethernet 0/0/1 ethernet 0/0/3 to ethernet 0/0/5 ethernet
0/0/8
! Remove Ethernet 3, 4, 5, 8 from current VLAN
QTECH(config-if-vlan)#no switchport ethernet 0/0/3 to ethernet 0/0/5 ethernet 0/0/8
Command switchport access vlan and its no command can also add and delete port to or from VLAN. Please
refer to interface configuration of chapter 2.
5.2.3
Specify/restore VLAN description
The description string is used to distinguish each VLAN. Please configure it in VLAN configuration mode :
Specify a description string to specified VLAN
description
string
Delete description string of specified VLAN
no description
string : It is in the range of 1 to 32 characters to describe the current VLAN. The characters can be printable,
excluding such wildcards as '/', ' : ', '*', '?', '\\', '<', '>', '|', '"'etc.
For example :
! Specify the description string of the current VLAN as “market”
QTECH (config-if-vlan)#description market
! Delete the description string of VLAN
QTECH(config-if-vlan)#no description
5.2.4
Configure interface type
Use switchport mode command to configure port type. Please refer to
interface configuration
.
5.2.5
Configure interface default vlan ID
System supports IEEE 802.1Q. When receiving a untagged packet, system would add a tag to the packet, in
which the VLAN ID is determined by the default VLAN ID of the receiving port. The command to configure default