Reference Guide

Table Of Contents
switchport mode
Use this command to configure the mode of a switch port as access, trunk or general.
In Trunk mode, the port becomes a member of all VLANs on switch unless specified in the allowed list in
the switchport trunk allowed vlan command. The PVID of the port is set to the Native VLAN
as specified in the switchport trunk native vlan command. It means that trunk ports accept
both tagged and untagged packets, where untagged packets are processed on the native VLAN and
tagged packets are processed on the VLAN ID contained in the packet. MAC learning is performed on
both tagged and untagged packets. Tagged packets received with a VLAN ID of which the port is not a
member are discarded and MAC learning is not performed. The Trunk ports always transmit packets
untagged on native VLAN.
In Access mode, the port becomes a member of only one VLAN. The port sends and receives untagged
trac. It can also receive tagged trac. The ingress filtering is enabled on port. It means that when the
VLAN ID of received packet is not identical to Access VLAN ID, the packet is discarded.
In General mode, the user can perform custom configuration of VLAN membership, PVID, tagging, and
ingress filtering.
Default general
Format switchport mode {access | trunk | general}
Mode Interface Config
no switchport mode
This command resets the switch port mode to its default value.
Format
no switchport mode
Mode Interface Config
switchport trunk allowed vlan
Use this command to configure the list of allowed VLANs that can receive and send trac on this
interface in tagged format when in trunking mode. The default is all.
The VLANs list can be modified using the add or remove options or replaced with another list using the
vlan-list, all, or except options. If all is chosen, all VLANs are added to the list of allowed vlan. The except
option provides an exclusion list.
Trunk ports accept tagged packets, where tagged packets are processed on the VLAN ID contained in
the packet, if this VLAN is in the allowed VLAN list. Tagged packets received with a VLAN ID to which
the port is not a member are discarded and MAC learning is not performed. If a VLAN is added to the
system after a port is set to the Trunk mode and it is in the allowed VLAN list, this VLAN is assigned to
this port automatically.
Switching Commands
ExtremeSwitching 200 Series: Command Reference Guide for version 01 .02.04.0007 333