Qtech QSW-2900-24T-AC [74/209] Create delete vlan

4-72
4.10.2 Create/delete VLAN
Configure it in global configuration mode:
Enter VLAN configuration mode or create VLAN and enter it
vlan vlan-list
Delete created VLAN or specified VLAN except VLAN 1
no vlan { vlan-list | all }
VLAN-ID allowed to configure by system is in the range of 1 to 4094. vlan-list can be in the form of discrete
number, a sequence number, or the combination of discrete and sequence number, discrete number of which is
separate by comma, and sequence number of which is separate by subtraction sign, such as: 2, 5, 8, 10-20. Use the
vlan command to enter VLAN configuration mode. If the vlan identified by the vlan-id keyword exists, enter VLAN
configuration mode. If not, this command creates the VLAN and then enters VLAN configuration mode. For
example, if VLAN 2 is not existed, system will create VLAN 2 first, then enter VLAN configuration mode; if
VLAN 2 has existed, enter VLAN configuration mode.
When deleting VLAN, if the vlan-list is specified, delete corresponding VLAN. If choosing all, delete all
existed VLAN except default VLAN. If deleting interface in VLAN, and default VLAN id is the same as the VLAN
to be deleted, restore interface default VLAN ID to be default VLAN ID.isted VLAN except default VLAN.
orresponding VLAN. has existed, enter VLAN configuration mode.. errperrp
If the VLAN to be removed exists in the multicast group, remove the related multicast group first.
4.10.3 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/1 ethernet 0/3 to ethernet 0/5 ethernet 0/8
! Remove Ethernet 3, 4, 5, 8 from current VLAN
QTECH(config-if-vlan)#no switchport ethernet 0/3 to ethernet 0/5 ethernet 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.

Содержание

Скачать
Случайные обсуждения