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.

Description of Switchport Mode Access vs Trunk Modes on Cisco Switches

Access ports receive un-tagged frames without any VLAN information from hosts. What is “switchport mode trunk” This is the

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

Configuring VLANs on Cisco Switches

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

How to Configure a Cisco Switch (step by step)

If you''re looking to configure a switch for the first time, this post is for you. Learn step-by-step configuration commands

Port Basic Configuration

How to Configure Basic Port Settings The following sections provide configuration information for basic port settings.

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

Activating a Port To activate or enable a port on your Cisco Switch, connect to your

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

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

In this tutorial, you''ll learn how to configure Cisco switch ports in both trunk and access mode, allowing you to optimize network

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

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

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

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,

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

Cisco Switch Port Guide: Types, Speeds & CLI Config

A switchport can be configured logically as an access port for a single VLAN, a trunk port utilizing 802.1Q

7-3 Types of Switch Ports

7-3 Types of Switch Ports A switch port can be in one of two modes: access and trunk. There are two ways a switch port can settle

VLAN Access Ports

VLAN Access Ports – Cisco CCNA Tutorial In this Cisco CCNA training tutorial, you''ll learn about VLAN Access ports and how to

Configuring access ports on Cisco switches – IT Networking Skills

More specifically, we look at how to configure and verify default VLANs and access ports. We look at the processes

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

Mastering Switch Port Configuration: Avoiding Common Pitfalls in

Recognizing common configuration pitfalls and proactively addressing them is crucial for ensuring seamless and

Configure Port to VLAN Interface Settings on a Switch through the CLI

This article provides instructions on how to configure an interface VLAN as an access or trunk port on your switch

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,

How to Configure Switchport Modes on Dell Networking N Series Switch

You can configure each port on a Dell Networking N series switch running OS6 to be in one of the following switchport

Configuring Access and Trunk Interfaces

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

Switch Ports

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

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.