Use it for PCs, printers, servers and other devices that do not tag frames, or when a device lands in the wrong VLAN.
Access Port
An access port carries a single VLAN untagged to an end device. Configure it with switchport mode access and switchport access vlan <id>.
1. show interfaces status — connected, intended VLAN?
2. show interfaces <if> switchport — Operational Mode static access, correct Access Mode VLAN.
3. Port inactive → the VLAN does not exist: show vlan brief.
4. show mac address-table interface <if> — MAC learned?
5. DHCP failing → check the VLAN's gateway / helper, not the port.
switchport mode access → access VLAN set → VLAN exists → port connected → MAC learned in that VLAN → device gets an address in the VLAN's subnet
Correct the access VLAN deliberately, then verify show vlan brief, MAC learning and gateway reachability.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
interface <interface>Primary Commands
Configuration and operational commands for this Topic.
interface <interface>ReferenceEnter interface configuration mode.
Use when: Use at the IOS / IOS XE Fundamentals boundary after prerequisite state is verified.
Quick note: Operational guidance. A command accepted by the parser does not prove feature support, correct scope, persistence or desired forwarding behavior.
Cisco IOS / IOS XE · mixedswitchportReferenceMake the interface a Layer 2 switch port.
Use when: Use before access/trunk switchport commands on an interface that may otherwise be routed.
Quick note: Verify platform support and intended port role before use.
Cisco IOS / IOS XE · mixedswitchport mode accessReferenceMake the port a static access port.
Use when: Make an endpoint-facing port a predictable non-trunking access port.
Quick note: Pair with switchport access vlan <id> and verify operational mode.
switchport access vlan <id>ReferenceAssign an access port to a VLAN.
Use when: Assign an access-mode port to the intended data VLAN.
Quick note: Verify VLAN existence and show interfaces switchport.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
How to read the output
show interfaces switchportLook first: line/protocol state, errors/discards, rate, duplex/speed, last input/output
Healthy: State and counters align with expected traffic and physical conditions.
Warning: CRC/input errors, drops, resets, queue drops or unexpected negotiation.
Does not prove: An interface counter is a symptom until correlated with path/time/workload.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Use switchport detail to confirm administrative mode, operational mode, access VLAN and any voice VLAN. show vlan brief confirms local VLAN existence and membership, while spanning-tree output confirms the edge port is forwarding for the relevant VLAN. MAC-table entries on the port provide evidence that endpoint source frames are being learned. If the endpoint uses DHCP, validate lease/subnet/gateway information separately because a correct access VLAN does not guarantee the endpoint obtained the intended L3 configuration. On phone+PC ports, distinguish phone-tagged voice traffic from untagged data traffic when reading captures or counters.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Set the mode explicitly so DTP cannot turn the port into a trunk. Add spanning-tree portfast (and BPDU guard) on ports to end devices so they come up without the 30-second STP delay. The VLAN must exist, or the port is inactive.
show interfaces <if> switchport— Operational Mode: static access, Access Mode VLAN.show interfaces status— port state and VLAN.show vlan brief— port listed under the intended VLAN.show mac address-table interface <if>— the device's MAC learned in that VLAN.show spanning-tree interface <if> portfast— PortFast enabled.
ReferenceWhat it is1 section · depth on demand
What it is
An access port is a Layer 2 switchport assigned to one access VLAN for ordinary endpoint traffic. Frames from the endpoint are normally untagged and are internally associated with the configured access VLAN.
ReferenceImportant terms & boundaries6 sections · depth on demand
Key points
Configure the interface intentionally as Layer 2/access, assign the access VLAN, and verify both administrative and operational mode. A configured access VLAN that does not exist locally is a common failure point.
Ingress and egress behavior
For an ordinary access port, an untagged ingress frame is associated internally with the configured access VLAN. Frames sent toward the attached endpoint are normally transmitted untagged. The VLAN ID is therefore switch forwarding context even though the endpoint frame does not normally carry an 802.1Q tag.
In depth
An access port belongs to one VLAN and sends untagged frames
Cisco's Catalyst 9000 VLAN guide describes access port configuration as switchport mode access followed by switchport access vlan <id>, verified with show interfaces <id> switchport.
C9300(config)# interface GigabitEthernet1/0/10
C9300(config-if)# description Desk 2.14
C9300(config-if)# switchport mode access
C9300(config-if)# switchport access vlan 20
C9300(config-if)# switchport nonegotiate
C9300(config-if)# spanning-tree portfast
C9300(config-if)# spanning-tree bpduguard enable
C9300# show interfaces GigabitEthernet1/0/10 switchport
Name: Gi1/0/10
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 20 (USERS)
Voice VLAN: none
Why set switchport mode access explicitly
The Catalyst 9300 trunk guide gives dynamic auto as the default mode on all Ethernet interfaces. A port left in that mode becomes a trunk if the connected device asks with DTP. Static access mode stays an access port whatever the neighbour sends.
| Mode | Trunk forms if the neighbour is |
|---|---|
| access | Never |
| dynamic auto (default) | trunk or dynamic desirable |
| dynamic desirable | trunk, desirable or auto |
Typical access port baseline
| Setting | Purpose |
|---|---|
switchport mode access | No DTP trunking |
switchport nonegotiate | No DTP frames sent |
spanning-tree portfast | Forward immediately |
spanning-tree bpduguard enable | Shut down if a switch is connected |
| Port security or 802.1X | Control which devices connect |
Troubleshooting
| Symptom | Check |
|---|---|
| Host in the wrong subnet | Access Mode VLAN in show interfaces switchport |
Port shows inactive in show vlan | The VLAN was deleted |
| Port became a trunk | Mode left as dynamic, and the neighbour negotiated a trunk |
Documented example, not captured output.
Quick reference
An access port belongs to one VLAN and carries untagged frames, which is how end devices connect. Optionally a separate voice VLAN can be added for IP phones.
interface Gi1/0/10
switchport mode access
switchport access vlan 20
switchport voice vlan 30
spanning-tree portfast
spanning-tree bpduguard enable
Documented example, not captured output.
Setting switchport mode access explicitly disables DTP negotiation, so a connected device cannot turn the port into a trunk.
State model and protocol mechanics
An access port is an edge Layer-2 interface whose normal data traffic belongs to a single access VLAN. Untagged Ethernet frames arriving from the endpoint are internally associated with that VLAN, and frames transmitted toward an ordinary endpoint are normally sent untagged. The configured access VLAN and the operational switchport state must agree before this classification is useful. A voice VLAN can add a second tagged service for an IP phone while the attached data device still uses the untagged access VLAN, so the term access port does not always mean only one VLAN identifier appears on the wire. Port security, 802.1X, DHCP snooping and STP edge features may also influence whether frames are admitted or forwarded. The access port is the endpoint-to-broadcast-domain boundary, not a routing boundary.
Limits and common misconceptions
An access port being up/up does not show that its VLAN exists end to end, that the gateway is reachable or that the endpoint has correct IP configuration. A MAC learned on the port shows source frames arrived but not that return traffic or application traffic succeeds. The access VLAN is not the same thing as a native VLAN on a trunk; both may involve untagged frames, but they represent different interface roles. Voice VLAN behavior also means an edge port can carry tagged and untagged frames without becoming a general-purpose trunk. Keep physical link, switchport mode, VLAN classification, STP forwarding and Layer-3 endpoint state separate.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Force endpoint-facing interfaces into the intended access mode rather than leaving negotiation behavior ambiguous. Assign the access VLAN explicitly and apply edge protections such as PortFast/BPDU Guard only where the attached device role justifies them. If a phone is present, configure the voice VLAN intentionally and preserve the distinction between data and voice classification. Disable or constrain unused ports according to the site's security model. Do not use a single access VLAN as a substitute for documenting segmentation intent; the VLAN assignment should map to an addressing, policy and gateway design. When moving an endpoint between VLANs, plan the L3 addressing/DHCP impact as well as the switchport change.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Switching → VLAN → Access Port. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Quick lookup tables
Access Port · operational reference
Compact state and interpretation boundaries for fast lookup.
| Access-port layer | Evidence |
|---|---|
| Physical | Interface up/up |
| Classification | Access/voice VLAN state |
| Layer 2 | MAC learned + STP forwarding |
| Layer 3 | Endpoint address/gateway/lease |