๐Ÿ”ง Lab 3.1: VLAN Segmentation & Access Port Configuration

Cisco CCNP 350-401 (ENCOR) & 300-410 (ENARSI) Enterprise Layer 2 Switching

Multi-Department Network Segmentation | Password Protected

๐Ÿ”’ Protected

๐Ÿ“‹ Lab Overview

This laboratory focuses on implementing VLAN segmentation and configuring access ports in a multi-department enterprise network. You will create multiple Virtual Local Area Networks (VLANs) to establish logical broadcast domains, segment network traffic, and configure access ports for end-user devices.

๐ŸŽฏ Lab Objectives

๐Ÿข Real-World Scenario

ABC Corporation requires network segmentation across three departments: Human Resources, Information Technology, and Finance. Each department operates in a different VLAN to enforce security policies, improve performance, and maintain compliance with organizational standards. You will design and implement this segmentation using Cisco Catalyst switches.

๐Ÿ“ฆ Equipment & Prerequisites

Hardware Requirements

Equipment Quantity Model/Specification Purpose
Cisco Catalyst Switch 1 Catalyst 2960, 3560, or higher Primary switching platform
Network Cable (Ethernet) 6+ Cat5e or Cat6 patch cables Device connectivity
End User Devices 5 PC, Laptop, or Virtual Machines Simulate departments
Console Cable 1 RJ-45 to RS-232 or USB CLI access to switch
Terminal Emulation Software 1 PuTTY, SecureCRT, or Cisco NETLAB Console session management

Software & Knowledge Requirements

๐ŸŒ Network Topology & Lab Picture

Lab 3.1: VLAN Segmentation & Access Port Configuration

Figure 1: Lab 3.1 - Multi-Department VLAN Segmentation with ABC Corporation Network Setup

VLAN Configuration Summary

VLAN ID VLAN Name Department Assigned Ports IP Subnet End Devices
10 HR-Department Human Resources Gi0/0, Gi0/1 192.168.10.0/24 2 (PC-HR1, PC-HR2)
20 IT-Department Information Technology Gi0/2 192.168.20.0/24 1 (PC-IT1)
30 Finance-Department Finance Gi0/3, Gi1/0 192.168.30.0/24 2 (PC-FIN1, PC-FIN2)

โš™๏ธ Step-by-Step Configuration Guide

1Initial Switch Configuration & Access

Step 1.1: Enter Console Session

Press Enter to establish connection
Switch>

Step 1.2: Enter Privileged EXEC Mode

Switch> enable
Password: (enter enable password)
Switch#

Step 1.3: Enter Global Configuration Mode

Switch# configure terminal
Switch(config)#

Step 1.4: Set Device Hostname

Switch(config)# hostname ABC-SW1
ABC-SW1(config)#

2Create Virtual LANs (VLANs)

Step 2.1: Create VLAN 10 (HR Department)

ABC-SW1(config)# vlan 10
ABC-SW1(config-vlan)# name HR-Department
ABC-SW1(config-vlan)# exit

Step 2.2: Create VLAN 20 (IT Department)

ABC-SW1(config)# vlan 20
ABC-SW1(config-vlan)# name IT-Department
ABC-SW1(config-vlan)# exit

Step 2.3: Create VLAN 30 (Finance Department)

ABC-SW1(config)# vlan 30
ABC-SW1(config-vlan)# name Finance-Department
ABC-SW1(config-vlan)# exit
โš ๏ธ Important: VLAN 1 is the default VLAN and cannot be deleted. For security best practices, avoid using VLAN 1 for user traffic.

3Configure Access Ports for End Devices

Step 3.1: Configure HR Access Ports (Gi0/0 & Gi0/1)

ABC-SW1(config)# interface range GigabitEthernet 0/0 - 1
ABC-SW1(config-if-range)# switchport mode access
ABC-SW1(config-if-range)# switchport access vlan 10
ABC-SW1(config-if-range)# description HR-Workstation
ABC-SW1(config-if-range)# exit

Step 3.2: Configure IT Access Port (Gi0/2)

ABC-SW1(config)# interface GigabitEthernet 0/2
ABC-SW1(config-if)# switchport mode access
ABC-SW1(config-if)# switchport access vlan 20
ABC-SW1(config-if)# description IT-Workstation
ABC-SW1(config-if)# exit

Step 3.3: Configure Finance Access Ports (Gi0/3 & Gi1/0)

ABC-SW1(config)# interface range GigabitEthernet 0/3
ABC-SW1(config-if-range)# switchport mode access
ABC-SW1(config-if-range)# switchport access vlan 30
ABC-SW1(config-if-range)# description Finance-Workstation
ABC-SW1(config-if-range)# exit
ABC-SW1(config)# interface range GigabitEthernet 1/0
ABC-SW1(config-if-range)# switchport mode access
ABC-SW1(config-if-range)# switchport access vlan 30
ABC-SW1(config-if-range)# description Finance-Workstation
ABC-SW1(config-if-range)# exit

4Implement Port Security on Access Ports

Step 4.1: Enable Port Security on HR Ports

ABC-SW1(config)# interface range GigabitEthernet 0/0 - 1
ABC-SW1(config-if-range)# switchport port-security
ABC-SW1(config-if-range)# switchport port-security maximum 1
ABC-SW1(config-if-range)# switchport port-security violation shutdown
ABC-SW1(config-if-range)# exit

Step 4.2: Enable Port Security on IT Port

ABC-SW1(config)# interface GigabitEthernet 0/2
ABC-SW1(config-if)# switchport port-security
ABC-SW1(config-if)# switchport port-security maximum 2
ABC-SW1(config-if)# switchport port-security violation shutdown
ABC-SW1(config-if)# exit

Step 4.3: Enable Port Security on Finance Ports

ABC-SW1(config)# interface range GigabitEthernet 0/3
ABC-SW1(config-if-range)# switchport port-security
ABC-SW1(config-if-range)# switchport port-security maximum 1
ABC-SW1(config-if-range)# switchport port-security violation shutdown
ABC-SW1(config-if-range)# exit
ABC-SW1(config)# interface range GigabitEthernet 1/0
ABC-SW1(config-if-range)# switchport port-security
ABC-SW1(config-if-range)# switchport port-security maximum 1
ABC-SW1(config-if-range)# switchport port-security violation shutdown
ABC-SW1(config-if-range)# exit

5Save Configuration to NVRAM

Step 5.1: Exit Configuration Mode

ABC-SW1(config)# exit
ABC-SW1#

Step 5.2: Save Running Configuration

ABC-SW1# copy running-config startup-config
Destination filename [startup-config]? (press Enter)
1234 bytes copied in 1.234 secs
โœ“ Success: Configuration saved successfully!

โœ… Configuration Verification & Testing

Verification Commands

Command: show vlan brief

ABC-SW1# show vlan brief

VLAN Name Status Ports
---- -------------------------------- --------- ----------------------------
1 default active Gi0/6, Gi0/7, Gi0/8, Gi0/9
10 HR-Department active Gi0/0, Gi0/1
20 IT-Department active Gi0/2
30 Finance-Department active Gi0/3, Gi1/0

Command: show interfaces switchport

ABC-SW1# show interfaces switchport

Name: Gi0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Access Mode VLAN: 10 (HR-Department)

Command: show interface status

ABC-SW1# show interface status

Port Name Status VLAN Duplex Speed Type
--------- ---------------------- ------------ ---------- ------ ----- -----
Gi0/0 HR-Workstation connected 10 a-full a-100
Gi0/1 HR-Workstation connected 10 a-full a-100
Gi0/2 IT-Workstation connected 20 a-full a-100
Gi0/3 Finance-Workstation connected 30 a-full a-100
Gi1/0 Finance-Workstation connected 30 a-full a-100

Command: show port-security

ABC-SW1# show port-security

Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
----------- -------------- ----------- ----------------- ---------------
Gi0/0 1 1 0 Shutdown
Gi0/1 1 1 0 Shutdown
Gi0/2 2 1 0 Shutdown
Gi0/3 1 1 0 Shutdown
Gi1/0 1 1 0 Shutdown

๐Ÿงช Connectivity Testing & Validation

Test Intra-VLAN Communication

Test Case 1.1: HR-to-HR Communication

C:\> ping 192.168.10.11
Pinging 192.168.10.11 with 32 bytes of data:
Reply from 192.168.10.11: bytes=32 time=2ms TTL=64
Reply from 192.168.10.11: bytes=32 time=1ms TTL=64
โœ“ Expected Result: Successful ping replies indicate VLAN 10 connectivity

Test Inter-VLAN Isolation

Test Case 2.1: HR-to-IT Communication (Should Fail)

C:\> ping 192.168.20.10
Pinging 192.168.20.10 with 32 bytes of data:
Request timed out
Request timed out
โœ“ Expected Result: Timeout confirms VLAN isolation

๐Ÿ“‹ Lab Completion Checklist

Configuration Verification

Connectivity Testing

๐Ÿ’ก Key Takeaways & Learning Outcomes

๐Ÿ† Best Practices & Security Recommendations

VLAN Configuration Best Practices

Port Security Best Practices

Layer 2 Security Best Practices

๐Ÿ”ง Troubleshooting Guide

Issue Cause Solution
Port remains in shutdown state Port security violation or manual shutdown ABC-SW1(config-if)# no shutdown
Device cannot ping others in same VLAN Port VLAN mismatch or cable issue Verify with show interfaces switchport and check physical connection
VLAN not appearing in show vlan output VLAN created but no active ports assigned VLAN only appears active when at least one port is assigned
Port security violation repeatedly Unauthorized or multiple devices connecting Check violation count and ensure only authorized device is connected
โœ“ Lab Completion Indicator: You have successfully completed Lab 3.1 when you can create VLANs, configure access ports, implement port security, and verify VLAN isolation while understanding Layer 2 broadcast domain segmentation.