Qtech QSW-2900-24T-AC [55/209] Port mode configuration

3-53
! Display flow-control of Ethernet 0/5
QTECH(config-if-ethernet-0/5)#show flow-control ethernet 0/5
3.2.11 Port mode configuration
Use this command to configure port mode. If a port configures to be a trunk port, the vlan mode changes
untagged into tagged, and if a port configures to be an access one, the vlan mode changes tagged into untagged.
Configure it in interface configuration mode:
Configure port mode
switchport mode { trunk | access }
Restore default port mode: access port
no switchport mode
For example:
! Configure Ethernet 0/1 to be trunk port
QTECH(config-if-ethernet-0/1)#switchport mode trunk
3.2.12 Trunk allowed VLAN configuration
Use switchport trunk allowed vlan command to add trunk port to specified VLAN. Use no switchport trunk
allowed vlan command to remove trunk port from specified vlan.
Add trunk port to specified vlan
switchport trunk allowed vlan { vlan-list | all }
Remove trunk port from specified vlan
no switchport trunk allowed vlan { vlan-list | all }
For example:
! Add trunk ports Ethernet0/1 to VLAN 3, 4, 70 to 150
QTECH(config-if-ethernet-0/1)# switchport trunk allowed vlan 3, 4, 70- 150
3.2.13 The default vlan-id of trunk port configuration
Use switchport trunk native vlan command to configure the default vlan-id (pvid) of trunk port. When
receiving untagged packet, it will be transferred to VLAN defaulted VLAN ID. Packet receiving and sending follow
IEEE 802.1Q. Configure it in interface configuration:
Configure default VLAN ID of trunk port
switchport trunk native vlan vlan-id
Restore default VLAN ID of trunk port
no switchport trunk native
Caution: above configuration is effective to trunk port. By default, default VLAN ID is 1. If this port is not in
VLAN 1, configuration fails.

Содержание

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