Specifications
switchport mode
137
switchport mode
Configures the Layer 2 interface attribute (port type).
Syntax
To set or change information:
switchport mode {access | trunk | protocol-vlan | mac-vlan }
To delete information:
no switchport mode
Input mode
(config-if)
Parameters
{access | trunk | protocol-vlan | mac-vlan}
Configures the Layer 2 interface attribute (port type).
access
Sets the applicable interface as an access port. An access port sends
untagged frames. An access port can be used by only one VLAN.
trunk
Sets the applicable interface as a trunk port. A trunk port sends and receives
untagged frames and tagged frames.
protocol-vlan
Sets the applicable interface as a protocol port. A protocol port sends and
receives untagged frames. When a frame is received, the VLAN is determined
by the protocol type of the frame. Tagged frames are discarded.
mac-vlan
Sets the applicable interface as a MAC port. A MAC port sends and receives
untagged frames. When a frame is received, the corresponding VLAN is
determined from the source MAC address of the frame. Tagged frames are
discarded. Note, however, that if the
switchport mac dot1q vlan command
is set, tagged frames are forwarded.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
access, trunk, protocol-vlan, or mac-vlan
Default behavior
access (access port) is set.
Impact on communication
None
When the change is applied
The change is applied immediately after setting values are changed.
Notes
1. If the applicable interface is set as a trunk port, set allowed vlan by using the