Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Access Port

Direct answer

An access port carries a single VLAN untagged to an end device. Configure it with switchport mode access and switchport access vlan <id>.

When to use this

Use it for PCs, printers, servers and other devices that do not tag frames, or when a device lands in the wrong VLAN.

First 30 seconds

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.

Operational verification

switchport mode access → access VLAN set → VLAN exists → port connected → MAC learned in that VLAN → device gets an address in the VLAN's subnet

Evidence · next step

Correct the access VLAN deliberately, then verify show vlan brief, MAC learning and gateway reachability.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandinterface <interface>
Scope / prerequisiteUse it for PCs, printers, servers and other devices that do not tag frames, or when a device lands in the wrong VLAN.
Show · 1Reference · 4
What next?3 suggested next steps
Catalog command links5
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

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 switchport

Look 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.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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.

ModeTrunk forms if the neighbour is
accessNever
dynamic auto (default)trunk or dynamic desirable
dynamic desirabletrunk, desirable or auto

Typical access port baseline

SettingPurpose
switchport mode accessNo DTP trunking
switchport nonegotiateNo DTP frames sent
spanning-tree portfastForward immediately
spanning-tree bpduguard enableShut down if a switch is connected
Port security or 802.1XControl which devices connect

Troubleshooting

SymptomCheck
Host in the wrong subnetAccess Mode VLAN in show interfaces switchport
Port shows inactive in show vlanThe VLAN was deleted
Port became a trunkMode left as dynamic, and the neighbour negotiated a trunk

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Embedded reference data

Quick lookup tables

Access Port · operational reference

Compact state and interpretation boundaries for fast lookup.

Access-port layerEvidence
PhysicalInterface up/up
ClassificationAccess/voice VLAN state
Layer 2MAC learned + STP forwarding
Layer 3Endpoint address/gateway/lease
Confirmation

Confirm action

Continue?