Lab 07 — VLAN Configuration and Inter-VLAN Connectivity
Mission Information
Section titled “Mission Information”| Item | Details |
|---|---|
| Lab | 07 |
| Lab Name | VLAN Configuration and Inter-VLAN Connectivity |
| Track | CompTIA Network+ |
| Difficulty | Intermediate |
| Estimated Time | 120–150 minutes |
| Primary Role | Network Technician / Junior Network Administrator |
| Environment | Network+ Switching and Routing Lab |
| Primary Systems | NETPLUS-ADMIN, NETPLUS-CLIENT01, NETPLUS-SERVER01, NETPLUS-SW01, NETPLUS-RTR01 |
| Primary Tools | Managed Switch CLI, Router CLI, Wireshark, ping, traceroute, ARP tools |
| Skills | VLANs, Access Ports, 802.1Q Trunking, Broadcast Domains, Router-on-a-Stick, Default Gateways, Inter-VLAN Routing, VLAN Troubleshooting |
Mission Objective: Segment a switched Ethernet network into multiple VLANs, configure access and trunk ports, implement inter-VLAN routing, verify end-to-end connectivity, and troubleshoot common VLAN and trunking problems.
Mission Scenario
Section titled “Mission Scenario”You are working as a Junior Network Technician at GHC Enterprise.
The existing network uses one switched LAN:
ADMINCLIENT01SERVER01 ↓NETPLUS-SW01 ↓One Broadcast DomainThe networking team now wants better separation between user, server, management, and guest systems.
The target design is:
VLAN 10 — Users
VLAN 20 — Servers
VLAN 30 — Management
VLAN 40 — GuestThe requirement is:
Separate Layer 2 Broadcast Domains ↓Maintain Controlled Layer 3 ConnectivityYou must configure VLANs, assign switch ports, create a trunk, configure a router for inter-VLAN routing, and validate communication.
Mission Objectives
Section titled “Mission Objectives”By completing this lab, you will be able to:
-
explain why VLANs are used
-
understand VLAN IDs
-
create VLANs
-
configure access ports
-
assign ports to VLANs
-
understand broadcast-domain separation
-
explain 802.1Q tagging
-
configure trunk links
-
understand native VLAN concepts
-
verify allowed VLANs on trunks
-
configure router-on-a-stick
-
configure router subinterfaces
-
assign default gateways
-
verify same-VLAN connectivity
-
verify inter-VLAN connectivity
-
inspect ARP across VLANs
-
analyze tagged Ethernet frames
-
troubleshoot VLAN mismatches
-
troubleshoot trunk failures
-
troubleshoot incorrect gateways
-
document a segmented enterprise network
1. Build the Target Topology
Section titled “1. Build the Target Topology”Use:
NETPLUS-RTR01 | | TRUNK | NETPLUS-SW01 +--------+--------+ | | | | | | Port 1 Port 2 Port 3 | | | | | | CLIENT01 SERVER01 ADMINLogical VLAN design:
CLIENT01VLAN 10 — Users
SERVER01VLAN 20 — Servers
ADMINVLAN 30 — ManagementReserve:
VLAN 40 — Guestfor later use.
2. Define the VLAN Addressing Plan
Section titled “2. Define the VLAN Addressing Plan”Use:
| VLAN | Purpose | IPv4 Network | Default Gateway |
|---|---|---|---|
| 10 | Users | 10.10.10.0/24 | 10.10.10.1 |
| 20 | Servers | 10.10.20.0/24 | 10.10.20.1 |
| 30 | Management | 10.10.30.0/24 | 10.10.30.1 |
| 40 | Guest | 10.10.40.0/24 | 10.10.40.1 |
Host addressing:
NETPLUS-CLIENT0110.10.10.20/24
NETPLUS-SERVER0110.10.20.30/24
NETPLUS-ADMIN10.10.30.10/243. Understand Why VLANs Are Used
Section titled “3. Understand Why VLANs Are Used”Without VLANs:
One Switch ↓One Broadcast DomainWith VLANs:
One Physical Switch ↓Multiple Logical NetworksConceptually:
VLAN 10=Broadcast Domain 1
VLAN 20=Broadcast Domain 2
VLAN 30=Broadcast Domain 34. Understand VLAN IDs
Section titled “4. Understand VLAN IDs”IEEE 802.1Q VLAN IDs use a 12-bit VLAN field.
Operationally, common usable VLAN IDs are:
1–4094with some values reserved or platform-specific.
For this lab:
10203040are used because they are easy to identify.
5. Understand VLAN 1
Section titled “5. Understand VLAN 1”Many switches place ports in:
VLAN 1by default.
For enterprise designs, user and server traffic should generally not remain dependent on the default VLAN.
In this lab, you will explicitly assign required access VLANs.
6. Access the Switch CLI
Section titled “6. Access the Switch CLI”On NETPLUS-SW01, verify basic status.
Cisco-like example:
show interfaces statusThen:
show vlan briefInitially, most interfaces may appear in:
VLAN 17. Create VLAN 10
Section titled “7. Create VLAN 10”Cisco-like configuration:
configure terminal
vlan 10 name USERSexit8. Create VLAN 20
Section titled “8. Create VLAN 20”vlan 20 name SERVERSexit9. Create VLAN 30
Section titled “9. Create VLAN 30”vlan 30 name MANAGEMENTexit10. Create VLAN 40
Section titled “10. Create VLAN 40”vlan 40 name GUESTexit11. Verify VLAN Creation
Section titled “11. Verify VLAN Creation”Run:
show vlan briefExpected entries:
10 USERS
20 SERVERS
30 MANAGEMENT
40 GUEST12. Understand Access Ports
Section titled “12. Understand Access Ports”An access port normally belongs to:
One VLANand connects to an endpoint.
Conceptually:
Endpoint ↓Access Port ↓Single VLANThe endpoint typically does not need to understand 802.1Q tagging.
13. Configure CLIENT01 Access Port
Section titled “13. Configure CLIENT01 Access Port”Assume CLIENT01 is connected to:
Port 1Configure:
interface <port1> switchport mode access switchport access vlan 10 no shutdownexit14. Configure SERVER01 Access Port
Section titled “14. Configure SERVER01 Access Port”Assume SERVER01 uses:
Port 2Configure:
interface <port2> switchport mode access switchport access vlan 20 no shutdownexit15. Configure ADMIN Access Port
Section titled “15. Configure ADMIN Access Port”Assume ADMIN uses:
Port 3Configure:
interface <port3> switchport mode access switchport access vlan 30 no shutdownexit16. Verify Access Port Membership
Section titled “16. Verify Access Port Membership”Run:
show vlan briefExpected:
VLAN 10Port 1
VLAN 20Port 2
VLAN 30Port 317. Reconfigure Host IPv4 Addresses
Section titled “17. Reconfigure Host IPv4 Addresses”Configure CLIENT01:
IP:10.10.10.20
Mask:255.255.255.0
Gateway:10.10.10.1Configure SERVER01:
IP:10.10.20.30
Mask:255.255.255.0
Gateway:10.10.20.1Configure ADMIN:
IP:10.10.30.10
Mask:255.255.255.0
Gateway:10.10.30.118. Test Same-VLAN Logic
Section titled “18. Test Same-VLAN Logic”At this stage, if each VLAN has only one host, there may be no peer host in the same VLAN.
The important point is:
CLIENT0110.10.10.20belongs to:
VLAN 10and should only receive broadcasts from VLAN 10.
SERVER01 belongs to a different broadcast domain.
19. Test Cross-VLAN Connectivity Before Routing
Section titled “19. Test Cross-VLAN Connectivity Before Routing”From CLIENT01:
ping 10.10.20.30Expected:
FailureFrom ADMIN:
ping 10.10.20.30Expected:
FailureThis is normal.
20. Explain Why the Ping Fails
Section titled “20. Explain Why the Ping Fails”CLIENT01 determines:
10.10.20.30=Remote NetworkTherefore it sends traffic to:
10.10.10.1But the gateway has not yet been configured.
Thus:
VLAN Segmentation ↓Layer 3 Routing Required21. Understand VLAN Separation
Section titled “21. Understand VLAN Separation”A switch does not normally forward Layer 2 broadcasts between VLANs.
Conceptually:
ARP Broadcastfrom VLAN 10
↓
NETPLUS-SW01
X
VLAN 20This is why VLANs create separate broadcast domains.
22. Understand Trunk Ports
Section titled “22. Understand Trunk Ports”A trunk carries:
Multiple VLANsover one physical or virtual link.
Conceptually:
VLAN 10 \VLAN 20 \VLAN 30 > 802.1Q TrunkVLAN 40 /23. Understand 802.1Q Tagging
Section titled “23. Understand 802.1Q Tagging”802.1Q inserts VLAN information into Ethernet frames.
Conceptually:
Ethernet Header ↓802.1Q VLAN Tag ↓PayloadThe VLAN tag tells trunk devices:
Which VLAN does this frame belong to?24. Configure the Router Trunk Port on the Switch
Section titled “24. Configure the Router Trunk Port on the Switch”Assume the router connects to:
Port 24Configure:
interface <port24> switchport mode trunk no shutdownexit25. Limit Allowed VLANs
Section titled “25. Limit Allowed VLANs”Where supported:
interface <port24> switchport trunk allowed vlan 10,20,30,40exitThis means only these VLANs should traverse the trunk.
26. Verify the Trunk
Section titled “26. Verify the Trunk”Run:
show interfaces trunkVerify:
Trunk Status:Up
Allowed VLANs:10,20,30,4027. Understand Access vs Trunk Ports
Section titled “27. Understand Access vs Trunk Ports”| Feature | Access | Trunk |
|---|---|---|
| Typical device | Endpoint | Switch/Router/AP |
| VLANs carried | Usually one | Multiple |
| 802.1Q tagging | Usually hidden from endpoint | Yes |
| Common use | PC/server | Infrastructure link |
28. Understand Native VLAN
Section titled “28. Understand Native VLAN”On an 802.1Q trunk, the:
Native VLANis traditionally the VLAN whose frames may cross the trunk untagged, depending on platform configuration.
For this lab, keep the default unless the platform requires otherwise.
In production, ensure native VLAN configuration matches on both sides.
29. Understand Native VLAN Mismatch
Section titled “29. Understand Native VLAN Mismatch”If:
Switch Side:Native VLAN 10and:
Other Side:Native VLAN 20traffic can be placed into the wrong logical network.
This is a configuration error.
30. Introduce Router-on-a-Stick
Section titled “30. Introduce Router-on-a-Stick”You now need a Layer 3 device to route between:
VLAN 10
VLAN 20
VLAN 30
VLAN 40One router physical interface can carry all VLANs using:
802.1Q SubinterfacesThis design is known as:
Router-on-a-Stick31. Router-on-a-Stick Topology
Section titled “31. Router-on-a-Stick Topology” NETPLUS-RTR01 | Physical Interface | +------------+------------+ | | | Subinterface Subinterface Subinterface .10 .20 .30 | | | VLAN 10 VLAN 20 VLAN 3032. Configure Router Physical Interface
Section titled “32. Configure Router Physical Interface”Cisco-like example:
configure terminal
interface <router-interface> no shutdownexitDo not assign the VLAN gateway address directly to the parent physical interface in this router-on-a-stick design.
33. Configure VLAN 10 Router Subinterface
Section titled “33. Configure VLAN 10 Router Subinterface”interface <router-interface>.10 encapsulation dot1Q 10 ip address 10.10.10.1 255.255.255.0exitThis becomes the default gateway for VLAN 10.
34. Configure VLAN 20 Router Subinterface
Section titled “34. Configure VLAN 20 Router Subinterface”interface <router-interface>.20 encapsulation dot1Q 20 ip address 10.10.20.1 255.255.255.0exit35. Configure VLAN 30 Router Subinterface
Section titled “35. Configure VLAN 30 Router Subinterface”interface <router-interface>.30 encapsulation dot1Q 30 ip address 10.10.30.1 255.255.255.0exit36. Configure VLAN 40 Router Subinterface
Section titled “36. Configure VLAN 40 Router Subinterface”interface <router-interface>.40 encapsulation dot1Q 40 ip address 10.10.40.1 255.255.255.0exit37. Verify Router Interfaces
Section titled “37. Verify Router Interfaces”Run:
show ip interface briefExpected:
<interface>.1010.10.10.1
<interface>.2010.10.20.1
<interface>.3010.10.30.1
<interface>.4010.10.40.1All relevant interfaces should be:
up/up38. Verify Directly Connected Routes
Section titled “38. Verify Directly Connected Routes”Run:
show ip routeYou should see connected routes for:
10.10.10.0/24
10.10.20.0/24
10.10.30.0/24
10.10.40.0/2439. Test Default Gateway from CLIENT01
Section titled “39. Test Default Gateway from CLIENT01”Run:
ping 10.10.10.1Expected:
Success40. Test Default Gateway from SERVER01
Section titled “40. Test Default Gateway from SERVER01”Run:
ping -c 3 10.10.20.1Expected:
Success41. Test Default Gateway from ADMIN
Section titled “41. Test Default Gateway from ADMIN”Run:
ping -c 3 10.10.30.1Expected:
Success42. Test Inter-VLAN Connectivity
Section titled “42. Test Inter-VLAN Connectivity”From CLIENT01:
ping 10.10.20.30Expected:
SuccessThen:
ping 10.10.30.10Expected:
Successprovided no firewall blocks ICMP.
43. Test SERVER01 to ADMIN
Section titled “43. Test SERVER01 to ADMIN”On SERVER01:
ping -c 3 10.10.30.10This validates:
VLAN 20 ↓Router ↓VLAN 3044. Understand the Inter-VLAN Packet Path
Section titled “44. Understand the Inter-VLAN Packet Path”CLIENT01 wants to reach:
10.10.20.30CLIENT01 belongs to:
10.10.10.0/24It determines the destination is remote.
The sequence is:
CLIENT0110.10.10.20 ↓Default Gateway10.10.10.1 ↓Router ↓10.10.20.1 ↓SERVER0110.10.20.3045. Understand the Layer 2 Path
Section titled “45. Understand the Layer 2 Path”CLIENT01 does not ARP for:
10.10.20.30Instead it ARPs for:
10.10.10.1The router then resolves:
10.10.20.30inside VLAN 20.
46. Inspect CLIENT01 ARP Table
Section titled “46. Inspect CLIENT01 ARP Table”Run:
arp -aYou should see an entry for:
10.10.10.1You should not normally see:
10.10.20.30as a directly resolved local MAC because it belongs to a different subnet.
47. Inspect SERVER01 Neighbor Table
Section titled “47. Inspect SERVER01 Neighbor Table”Run:
ip neighYou should see:
10.10.20.1as the router/gateway neighbor.
48. Understand MAC Rewriting Across Routers
Section titled “48. Understand MAC Rewriting Across Routers”For a routed packet:
Source IP:10.10.10.20
Destination IP:10.10.20.30the IP addresses remain conceptually end-to-end.
But Ethernet MAC addresses change at each routed segment.
First segment:
Source MAC:CLIENT01
Destination MAC:Router VLAN 10 MACSecond segment:
Source MAC:Router VLAN 20 MAC
Destination MAC:SERVER0149. Capture Inter-VLAN Traffic
Section titled “49. Capture Inter-VLAN Traffic”Start Wireshark on a suitable interface.
Generate:
CLIENT01 → SERVER01traffic.
If using a mirrored trunk capture or simulator, inspect:
802.1Qtagging.
50. Wireshark VLAN Filter
Section titled “50. Wireshark VLAN Filter”Use:
vlanor:
eth.type == 0x8100where applicable.
You may observe:
802.1Q Virtual LANinside the frame.
51. Identify VLAN ID in Wireshark
Section titled “51. Identify VLAN ID in Wireshark”Expand:
802.1Q Virtual LANRecord:
VLAN ID:
Priority:
EtherType:Observe frames from:
VLAN 10and:
VLAN 20where your capture position allows it.
52. Understand Why Endpoint Captures May Not Show Tags
Section titled “52. Understand Why Endpoint Captures May Not Show Tags”On an access port, the endpoint normally receives:
Untagged Ethernet FrameThe switch handles VLAN membership internally.
Therefore:
Endpoint Wiresharkmay not display an 802.1Q tag.
To observe tags, capture on:
Trunk Linkor use:
SPAN / Port Mirroror a simulator’s packet inspection mode.
53. Verify Switch MAC Table by VLAN
Section titled “53. Verify Switch MAC Table by VLAN”Run:
show mac address-tableYou should see MAC entries associated with VLANs.
Example concept:
| VLAN | MAC | Port |
|---|---|---|
| 10 | CLIENT MAC | Port 1 |
| 20 | SERVER MAC | Port 2 |
| 30 | ADMIN MAC | Port 3 |
This demonstrates that MAC learning occurs within VLAN context.
54. Understand Same MAC Table, Separate VLAN Context
Section titled “54. Understand Same MAC Table, Separate VLAN Context”Switch forwarding logic effectively evaluates:
VLAN+Destination MACA MAC entry belongs to a VLAN context.
This keeps Layer 2 forwarding separated between VLANs.
55. Verify VLAN Broadcast Isolation
Section titled “55. Verify VLAN Broadcast Isolation”Generate an ARP request in VLAN 10.
Conceptually:
ARP Broadcast ↓VLAN 10It should not appear as a Layer 2 broadcast in VLAN 20.
This confirms:
VLAN=Broadcast Domain56. Troubleshooting Scenario 1 — Wrong Access VLAN
Section titled “56. Troubleshooting Scenario 1 — Wrong Access VLAN”Move CLIENT01’s switch port accidentally to:
VLAN 20while CLIENT01 still uses:
10.10.10.20/24Test:
ping 10.10.10.1Expected:
Failure57. Investigate Wrong VLAN Membership
Section titled “57. Investigate Wrong VLAN Membership”Check:
show vlan briefYou should discover:
CLIENT01 Port=VLAN 20but:
CLIENT01 IP=VLAN 10 subnetRoot cause:
Layer 2 VLANandLayer 3 AddressingDo Not Match58. Correct the Access VLAN
Section titled “58. Correct the Access VLAN”Restore:
switchport access vlan 10Then verify:
show vlan briefand:
ping 10.10.10.159. Troubleshooting Scenario 2 — Missing VLAN on Trunk
Section titled “59. Troubleshooting Scenario 2 — Missing VLAN on Trunk”Remove VLAN 20 from the trunk’s allowed list.
Example:
switchport trunk allowed vlan 10,30,40Now SERVER01 may lose communication with the router.
Test:
ping -c 3 10.10.20.160. Investigate the Trunk
Section titled “60. Investigate the Trunk”Run:
show interfaces trunkYou should discover:
VLAN 20Not AllowedRoot cause:
Access Port Correct+Host IP Correct+Trunk Does Not Carry VLAN61. Restore VLAN 20 to Trunk
Section titled “61. Restore VLAN 20 to Trunk”Configure:
switchport trunk allowed vlan 10,20,30,40Verify:
show interfaces trunkThen retest connectivity.
62. Troubleshooting Scenario 3 — Trunk Configured as Access
Section titled “62. Troubleshooting Scenario 3 — Trunk Configured as Access”Change the router-facing switch port into access mode temporarily.
Expected effect:
Multiple VLANs ↓Cannot Traverse Link CorrectlyInvestigate:
show interfaces switchportor equivalent.
Restore trunk mode afterward.
63. Troubleshooting Scenario 4 — Wrong Router VLAN Tag
Section titled “63. Troubleshooting Scenario 4 — Wrong Router VLAN Tag”Suppose router subinterface:
<interface>.20is mistakenly configured:
encapsulation dot1Q 30instead of:
20SERVER01 will be unable to communicate correctly with its gateway.
Investigate:
show running-config interface <interface>.2064. Correct the Router Tag
Section titled “64. Correct the Router Tag”Configure the subinterface with:
encapsulation dot1Q 20Verify again.
65. Troubleshooting Scenario 5 — Wrong Default Gateway
Section titled “65. Troubleshooting Scenario 5 — Wrong Default Gateway”Configure SERVER01 temporarily:
IP:10.10.20.30/24
Gateway:10.10.10.1This gateway is outside SERVER01’s local subnet.
Test:
ping 10.10.10.20Expected:
Failure66. Correct the Default Gateway
Section titled “66. Correct the Default Gateway”Restore:
10.10.20.1Then:
ping -c 3 10.10.10.2067. Troubleshooting Scenario 6 — Wrong Host IP
Section titled “67. Troubleshooting Scenario 6 — Wrong Host IP”Suppose ADMIN is:
VLAN 30but configured:
10.10.20.10/24It now uses an address from the server subnet while physically/logically attached to VLAN 30.
Symptoms:
Gateway Failure
ARP Problems
No Routed ConnectivityCorrect:
10.10.30.10/2468. Troubleshooting Scenario 7 — Native VLAN Mismatch
Section titled “68. Troubleshooting Scenario 7 — Native VLAN Mismatch”Conceptually configure inconsistent native VLAN values on each end of a trunk.
Observe any switch warning generated by your platform.
Root cause:
Trunk EndsDisagree About Untagged TrafficRestore matching native VLAN configuration.
69. Troubleshooting Scenario 8 — VLAN Does Not Exist
Section titled “69. Troubleshooting Scenario 8 — VLAN Does Not Exist”Assign an access port to a VLAN that has not been created or activated, depending on platform behavior.
Observe:
Port VLAN Assignment
VLAN State
ConnectivityCorrect by creating and enabling the required VLAN.
70. Build the VLAN Troubleshooting Workflow
Section titled “70. Build the VLAN Troubleshooting Workflow”Use:
Host Interface Up? ↓Correct IP Address? ↓Correct Prefix? ↓Correct Default Gateway? ↓Switch Port Up? ↓Correct Access VLAN? ↓VLAN Exists? ↓MAC Learned in Correct VLAN? ↓Trunk Up? ↓Required VLAN Allowed? ↓802.1Q Tag Correct? ↓Router Subinterface Up? ↓Gateway Address Correct? ↓Routing Table Correct?71. Understand Layer 3 Switches
Section titled “71. Understand Layer 3 Switches”Instead of router-on-a-stick, enterprise switches may perform routing directly using:
Switch Virtual Interfacesor:
SVIsConceptually:
VLAN 10 ↓SVI 1010.10.10.1
VLAN 20 ↓SVI 2010.10.20.1The Layer 3 switch then routes between VLANs.
72. Router-on-a-Stick vs Layer 3 Switch
Section titled “72. Router-on-a-Stick vs Layer 3 Switch”| Feature | Router-on-a-Stick | Layer 3 Switch |
|---|---|---|
| VLAN routing | Router subinterfaces | SVIs |
| Trunk required | Yes | Often internal switching/routing |
| Performance | Limited by router link | Usually higher |
| Good for lab/small network | Yes | Yes |
| Common enterprise use | Smaller designs | Large campus networks |
73. Understand VLAN Security Value
Section titled “73. Understand VLAN Security Value”VLANs help provide:
Segmentationbut VLANs alone are not complete security controls.
To control communication between VLANs, organizations commonly use:
ACLs
Firewalls
Routing Policies
Zero Trust ControlsWithout filtering, inter-VLAN routing may allow broad communication.
74. Build the Final Logical Topology
Section titled “74. Build the Final Logical Topology” NETPLUS-RTR01 | 802.1Q Trunk | NETPLUS-SW01 +----------------+----------------+ | | | | | | VLAN 10 VLAN 20 VLAN 30 USERS SERVERS MANAGEMENT | | | CLIENT01 SERVER01 ADMIN 10.10.10.20 10.10.20.30 10.10.30.10 | | | GW 10.10.10.1 GW 10.10.20.1 GW 10.10.30.175. Mission Challenge — Verify VLAN Membership
Section titled “75. Mission Challenge — Verify VLAN Membership”Document:
VLAN 10:Ports:
VLAN 20:Ports:
VLAN 30:Ports:
VLAN 40:Ports:76. Mission Challenge — Verify the Trunk
Section titled “76. Mission Challenge — Verify the Trunk”Document:
Trunk Interface:
Mode:
Allowed VLANs:
Active VLANs:
Native VLAN:
Status:77. Mission Challenge — Verify Inter-VLAN Routing
Section titled “77. Mission Challenge — Verify Inter-VLAN Routing”Complete:
| Source | Destination | Expected | Result |
|---|---|---|---|
| CLIENT01 | 10.10.10.1 | Pass | |
| SERVER01 | 10.10.20.1 | Pass | |
| ADMIN | 10.10.30.1 | Pass | |
| CLIENT01 | SERVER01 | Pass | |
| CLIENT01 | ADMIN | Pass | |
| SERVER01 | ADMIN | Pass |
78. Mission Challenge — Trace a Packet
Section titled “78. Mission Challenge — Trace a Packet”Explain the packet journey:
CLIENT0110.10.10.20to:
SERVER0110.10.20.30Your answer should include:
Destination is remote ↓CLIENT01 ARPs for 10.10.10.1 ↓Frame sent to router MAC ↓Switch associates frame with VLAN 10 ↓802.1Q trunk carries VLAN 10 ↓Router receives on VLAN 10 subinterface ↓Router checks routing table ↓Routes toward VLAN 20 ↓Router resolves SERVER01 MAC ↓Frame returns over trunk tagged for VLAN 20 ↓Switch forwards to SERVER01 access port ↓SERVER01 receives packet79. Mission Challenge — Diagnose the Fault
Section titled “79. Mission Challenge — Diagnose the Fault”The network reports:
CLIENT01 can reach 10.10.10.1
SERVER01 can reach 10.10.20.1
CLIENT01 cannot reach SERVER01Investigate:
Router Routes
Host Firewalls
Inter-VLAN Policy
IP AddressingSince both hosts can reach their gateways, access-port and trunk basics are probably working.
80. Create the Lab Workspace
Section titled “80. Create the Lab Workspace”On NETPLUS-ADMIN:
mkdir -p ~/NetworkPlus-Labs/LAB07/{Captures,Screenshots,Configs,Notes}Create:
touch ~/NetworkPlus-Labs/LAB07/Notes/lab07-notes.md81. Save Switch Configuration Evidence
Section titled “81. Save Switch Configuration Evidence”Capture outputs such as:
show vlan brief
show interfaces trunk
show interfaces status
show mac address-tableStore under:
~/NetworkPlus-Labs/LAB07/Configs/82. Save Router Configuration Evidence
Section titled “82. Save Router Configuration Evidence”Capture:
show ip interface brief
show ip route
show running-configStore relevant outputs safely.
83. Save Packet Captures
Section titled “83. Save Packet Captures”Where your lab platform supports trunk capture, save:
LAB07-VLAN10.pcapng
LAB07-VLAN20.pcapng
LAB07-8021Q-TRUNK.pcapng
LAB07-INTERVLAN.pcapng84. Document Your Findings
Section titled “84. Document Your Findings”Use:
# LAB07 — VLAN Configuration and Inter-VLAN Connectivity
## VLAN Design
### VLAN 10 — Users
Network:10.10.10.0/24
Gateway:10.10.10.1
Ports:
### VLAN 20 — Servers
Network:10.10.20.0/24
Gateway:10.10.20.1
Ports:
### VLAN 30 — Management
Network:10.10.30.0/24
Gateway:10.10.30.1
Ports:
### VLAN 40 — Guest
Network:10.10.40.0/24
Gateway:10.10.40.1
Ports:
## Host Configuration
### CLIENT01
IP:Gateway:VLAN:
### SERVER01
IP:Gateway:VLAN:
### ADMIN
IP:Gateway:VLAN:
## Trunk
Interface:
Allowed VLANs:
Native VLAN:
Status:
## Router Subinterfaces
VLAN 10:
VLAN 20:
VLAN 30:
VLAN 40:
## Same-VLAN Testing
Document findings.
## Inter-VLAN Testing
CLIENT → SERVER:
CLIENT → ADMIN:
SERVER → ADMIN:
## ARP Analysis
CLIENT Gateway MAC:
SERVER Gateway MAC:
## 802.1Q Capture
Observed VLAN IDs:
## Troubleshooting
### Wrong Access VLAN
Problem:
Root Cause:
Fix:
### Missing VLAN on Trunk
Problem:
Root Cause:
Fix:
### Wrong Default Gateway
Problem:
Root Cause:
Fix:
## Final Assessment
Summarize how VLAN segmentation and inter-VLAN routing were implemented.85. Evidence to Capture
Section titled “85. Evidence to Capture”Capture:
01-vlan-topology.png
02-vlan-database.png
03-vlan10-access-port.png
04-vlan20-access-port.png
05-vlan30-access-port.png
06-host-ip-configurations.png
07-cross-vlan-failure-before-routing.png
08-trunk-configuration.png
09-trunk-verification.png
10-router-subinterfaces.png
11-router-interface-status.png
12-router-connected-routes.png
13-client-gateway-ping.png
14-server-gateway-ping.png
15-admin-gateway-ping.png
16-inter-vlan-client-server.png
17-inter-vlan-client-admin.png
18-mac-table-by-vlan.png
19-arp-gateway-entry.png
20-8021q-tag.png
21-wrong-access-vlan.png
22-missing-trunk-vlan.png
23-wrong-default-gateway.png
24-restored-connectivity.png
25-final-vlan-topology.png86. Validation Checklist
Section titled “86. Validation Checklist”VLAN Configuration
Section titled “VLAN Configuration”-
VLAN 10 created
-
VLAN 20 created
-
VLAN 30 created
-
VLAN 40 created
-
VLAN names assigned
-
VLAN database verified
Access Ports
Section titled “Access Ports”-
CLIENT01 assigned to VLAN 10
-
SERVER01 assigned to VLAN 20
-
ADMIN assigned to VLAN 30
-
Access mode verified
-
Port status verified
Addressing
Section titled “Addressing”-
CLIENT01 configured in
10.10.10.0/24 -
SERVER01 configured in
10.10.20.0/24 -
ADMIN configured in
10.10.30.0/24 -
Correct default gateways configured
VLAN Isolation
Section titled “VLAN Isolation”-
Cross-VLAN failure observed before routing
-
Broadcast-domain separation understood
-
ARP isolation between VLANs understood
Trunking
Section titled “Trunking”-
Router-facing port configured as trunk
-
VLANs 10,20,30,40 allowed
-
Trunk status verified
-
802.1Q tagging understood
-
Native VLAN concept understood
-
Native VLAN mismatch understood
Inter-VLAN Routing
Section titled “Inter-VLAN Routing”-
Router physical interface enabled
-
VLAN 10 subinterface configured
-
VLAN 20 subinterface configured
-
VLAN 30 subinterface configured
-
VLAN 40 subinterface configured
-
Connected routes verified
-
All default gateways reachable
-
Inter-VLAN connectivity verified
Packet Analysis
Section titled “Packet Analysis”-
Gateway ARP entries reviewed
-
VLAN-aware MAC table reviewed
-
802.1Q frame observed where supported
-
VLAN ID identified
-
Routed MAC-address changes understood
Troubleshooting
Section titled “Troubleshooting”-
Wrong access VLAN scenario completed
-
Missing VLAN on trunk scenario completed
-
Trunk-as-access problem understood
-
Incorrect router VLAN tag investigated
-
Wrong default gateway investigated
-
Wrong host subnet investigated
-
Native VLAN mismatch understood
-
VLAN existence checked
Documentation
Section titled “Documentation”-
VLAN addressing plan documented
-
Port map documented
-
Trunk configuration documented
-
Router subinterfaces documented
-
Connectivity matrix completed
-
Screenshots captured
-
Lab notes completed
87. Mission Review
Section titled “87. Mission Review”In this mission, you transformed:
One Switch ↓One Broadcast Domaininto:
One Physical Switch ↓Multiple VLANs ↓Multiple Broadcast DomainsThe Layer 2 design became:
VLAN 10 — Users
VLAN 20 — Servers
VLAN 30 — Management
VLAN 40 — GuestYou then connected those Layer 2 networks using:
802.1Q Trunk ↓Router Subinterfaces ↓Layer 3 RoutingThe complete communication flow is:
Endpoint ↓Access VLAN ↓Switch ↓802.1Q Trunk ↓Router ↓Routing Decision ↓802.1Q Trunk ↓Destination VLAN ↓Destination EndpointThe key lesson is:
VLANs create logical Layer 2 boundaries, while inter-VLAN routing provides Layer 3 connectivity between those boundaries. A working design requires the VLAN assignment, IP subnet, trunk configuration, and default gateway to agree with one another.
Skills Developed
Section titled “Skills Developed”After completing this mission, you should be able to:
-
explain VLAN segmentation
-
create VLANs
-
configure access ports
-
assign switch ports to VLANs
-
understand VLAN broadcast domains
-
explain 802.1Q tagging
-
configure and verify trunk ports
-
understand allowed VLAN lists
-
understand native VLANs
-
explain router-on-a-stick
-
configure router subinterfaces
-
assign VLAN default gateways
-
verify inter-VLAN routing
-
inspect VLAN-aware MAC tables
-
analyze gateway ARP behavior
-
explain MAC rewriting across routed networks
-
identify tagged frames in Wireshark
-
troubleshoot wrong VLAN assignments
-
troubleshoot trunk failures
-
troubleshoot incorrect VLAN tags
-
troubleshoot incorrect default gateways
-
understand Layer 3 switch alternatives
What’s Next?
Section titled “What’s Next?”Lab 08 — Spanning Tree and Layer 2 Redundancy
Section titled “Lab 08 — Spanning Tree and Layer 2 Redundancy”Your network now contains multiple VLANs and trunk links.
The next challenge is redundancy.
Adding multiple switch links improves resilience, but it can also create dangerous Layer 2 loops.
In the next mission, you will investigate:
-
redundant switch links
-
Layer 2 loops
-
broadcast storms
-
MAC-table instability
-
Spanning Tree Protocol
-
root bridge selection
-
bridge IDs
-
root ports
-
designated ports
-
alternate/blocked paths
-
STP path cost
-
topology changes
-
link failure
-
reconvergence
-
Rapid Spanning Tree concepts
-
STP troubleshooting
The progression becomes:
Single Switch ↓VLANs ↓Multiple Switches ↓Redundant Links ↓Layer 2 Loop Risk ↓Spanning Tree ↓Loop-Free Redundancy➡️ Next: Lab 08 — Spanning Tree and Layer 2 Redundancy