switchport mode
switchport mode
Configures the Layer 2 interface attribute (port type).
Input format
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
Sets the applicable interface as an access port. An access port An access port sends
untagged frames, and can be used by 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, a VLAN is determined according to 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, a VLAN is determined from the source
MAC address of the frame. Tagged frames are discarded. Note, however, that if the
switchport mac dot1q 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.
134
command is set, tagged frames are forwarded.