Article Overview

To configure an access port on a switch, set the port to access mode and assign it to a specific VLAN, allowing it to carry traffic for only that VLAN.

Step-by-Step Configuration

  1. Connect to the Switch Use a console cable, SSH, or Telnet to access the switch CLI. Enter privileged EXEC mode by typing enable and providing the password if required .

  2. Enter Global Configuration Mode Type configure terminal to enter configuration mode where you can modify interface settings .

  3. Select the Interface Identify the port you want to configure (e.g., FastEthernet 0/1 or GigabitEthernet 1/0/1) and enter interface configuration mode:

    interface Fa0/1

    or

    interface Gi1/0/1"' [^1^] [^2^].

  4. Set the Port to Access Mode Configure the port to operate as an access port, which ensures it will carry traffic for only one VLAN:

    switchport mode access"' [^3^] [^2^].

  5. Assign the VLAN Specify the VLAN that the access port should belong to:

    switchport access vlan 10

    Replace 10 with the VLAN ID you want the port to use .

  6. Enable the Port If the port is administratively down, bring it up using:

    no shutdown"' [^1^].

  7. Save the Configuration Make the changes permanent by copying the running configuration to startup configuration:

    copy running-config startup-config"' [^1^].

Verification

  • Check the port status and VLAN assignment:

    show running-configshow interfaces switchport

    These commands display the current mode (access or trunk) and the VLAN assigned to the port .

  • Test connectivity by connecting an end device to the port and pinging another device in the same VLAN .

Key Points

  • Access ports carry traffic for a single VLAN and are typically used for end devices like PCs, printers, or IP phones .
  • Trunk ports carry multiple VLANs and are used for switch-to-switch or switch-to-router connections .
  • A port cannot be configured as both access and trunk simultaneously; the last command executed takes effect .
  • By default, all switch ports are in VLAN 1 unless reassigned .

Following these steps ensures that your switch ports are correctly configured to connect end devices to the appropriate VLAN, maintaining proper network segmentation and traffic flow.

Switch Ports

On the Switching > Monitor > Switch Ports page, administrators can name ports, turn ports

What is Switchport Mode Access? How to Configure Switchport Mode

Switch ports can be set either in trunk or access mode to have more control on switch port behaviour. Using switchport

How to configure the ports of a Cisco switch, whether trunk or access

Read on to learn how. Access ports and trunks: everything you need to know about how they work. When configuring a Cisco switch,

What is an Access Port? | Definition & Configuration!

Learn exactly what the Access port is, which we often hear about in switch network devices. Discover how to set up

Access port config (Huawei)

Design & Configure Access port config (Huawei) Technology: Switching Area: Neighbor Discovery Vendor: Huawei Software: eNSP

What is Access Port in Switch?

We need to configure the Switch interfaces for end-user devices. In this process, we need to set specific ports as

What is Switchport Mode Access? How to Configure Switchport Mode Access

While configuring network switches (layer 2 devices) two types of modes are available to manage VLANs - ''switchport

Easy Ways to Enable a Port on a Cisco Switch: 8 Steps

To activate or enable a port on your Cisco Switch, connect to your Switch and type

Configuring access ports on Cisco switches – IT Networking Skills

In this lesson we begin learning how to configure VLANs (Virtual Local Area Networks) on Cisco switches. More

Basic Cisco Switch Configuration Example in 10 Steps

Unlike other lower class switch vendors (which are plug-and-play), the Cisco switch needs some initial basic configuration in order to

How to configure and assign a Cisco switch access port to a VLAN

When configuring an access port, you also want to define which VLAN the port belongs to. To configure and assign a switch access

Switch Port VLAN Assignment (Trunk & Access Ports)

Switch Port VLAN Assignment (Trunk & Access Ports) Configuring VLANs (Virtual Local Area Networks) on switch ports is essential

Port Configuration – Two Byte Blog

In this section we''ll walk through configuring a number of common port types. Tips Access Port Access Port w/ Voice VLAN Trunk

Easy Ways to Enable a Port on a Cisco Switch: 8 Steps

This wikiHow teaches you how to turn on any port on your Cisco switch. In most cases,

Access port configuration (Cisco)

How to configure an access port on Cisco switch? An access port transmits packets on only one VLAN (traffic is not tagged on this

How to Configure a Cisco Switch in 10 Steps

The process of configuring a Cisco switch involves several key steps, including setting up basic switch parameters,

Assign an Interface VLAN as an Access or Trunk Port on a Switch

Trunk port — A port that is capable of carrying traffic for any or all the VLANs that are accessible by a specific switch.

Configuring Ports on a Cisco Switch

I already bought a second hand switch and put the switch in factory default configuration by deleting all the files in flash

How to Configure Access and Trunk Ports for Beginners on Cisco

In this Cisco Tech Talk, we provide a beginner-friendly guide on how to configure access and trunk ports on Cisco

What is the Access Port? How to Configure Access Port on

In this video tutorial, I will show you what access and trunk ports are. And how to configure the Cisco switch port. The switch port is

Configuring VLANs on Cisco Switches

Master configuring VLANs on Cisco switches. Learn to configure Access and Trunk ports, and Native VLANs and Allowed VLAN

Configuring Access and Trunk Interfaces

To optimize the performance on access ports, you can configure the port as a host port. Once the port is configured as a host port, it

How to configure all other ports as access ports?

How to configure all other ports as access ports? I want to assign all other port in a switch as an access port what should be the

Port Basic Configuration

Entering interface configuration mode: Interface configuration mode is supported only on Ethernet ports. Enabling a port: By default,

How to Configure Access Ports on Cisco Switch Packet Tracer

The following step-by-step guide outlines the process to configure access ports on a Cisco switch using Packet Tracer.

Configuring Access and Trunk Interfaces

Configuring Access and Trunk Interfaces Ethernet interfaces can be configured either as access ports or trunk ports.

Configuring access & trunk ports

This article describes how to configure access and trunk ports on a Cisco switch. How to verify the commands is also shown in the

Related Resources

Ready to Power Your Telecom Sites?

Request a free quote for hybrid solar systems, lithium battery cabinets, site EMS, off-grid packages, or complete microgrid solutions. EU‑owned German factory – reliable, efficient, and cost‑effective energy for Africa.