Packet Tracer VLAN Configuration Example

packet-tracer-vlan-topology

Packet Tracer VLAN Configuration

As an example, you can see a VLAN topology below. In this topology, 2 Cisco Catalyst 2950-24 switches and 6 PCs are used.

packet tracer vlan topology example
 

Packet Tracer VLAN Topology Example

You can DOWNLOAD the Cisco Packet Tracer example with .pkt format at the end of the lesson.

PC Configurations

PC 1 --> 192.168.1.2 VLAN 2
PC 2 --> 192.168.1.3 VLAN 2
PC 3 --> 192.168.1.4 VLAN 3
PC 4 --> 192.168.1.6 VLAN 3
PC 5 --> 192.168.1.7 VLAN 3
PC 6 --> 192.168.1.8 VLAN 2


VLAN Configuration on Switch 1

Switch 1(config)# interface fastEthernet 0/2 
Switch 1(config-if)# switchport mode access 
Switch 1(config-if)# switchport access vlan 2
Switch 1(config)# interface fastEthernet 0/3
Switch 1(config-if)# switchport mode access 
Switch 1(config-if)# switchport access vlan 2
Switch 1(config)# interface fastEthernet 0/4
Switch 1(config-if)# switchport mode access 
Switch 1(config-if)# switchport access vlan 3
Switch 1(config)# interface fastEthernet 0/1
Switch 1(config-if)# switchport mode trunk
Switch 1(config-if)# switchport nonegotiate 
Switch 1(config-if)# switchport trunk allowed vlan 2-4
Switch 1# copy running-config startup-config

VLAN Configuration on Switch 2

Switch 2(config)# interface fastEthernet 0/2
Switch 2(config-if)# switchport mode access 
Switch 2(config-if)# switchport access vlan 3

To learn mode about VLAN(Virtual Local Area Network)s, continue with the following posts ;)

VLAN – Part 1
VLAN – Part 2 (VLAN Assignments and VLAN Port Types)
VLAN – Part 3 (VLAN Frame Tagging Protocols, ISL and Dot1.q)
VLAN – Part 4 (How to Configure Cisco VLANs)
VLAN – Part 5 (Packet Tracer VLAN Configuration Example)
VLAN Configuration on Huawei Switches

Private VLANs
Private VLAN Cisco Configuration

What is Protected Port?



You can check the other Packet Tracer Examples below:

Common Cisco Router Configuration Example on Packet Tracer
Router DHCP Configuration Example on Packet Tracer
VTP Configuration Example on Packet Tracer
VLAN Configuration Example on Packet Tracer
STP Configuration Example on Packet Tracer
BGP Configuration Example on Packet Tracer
Port Security Configuration Example on Packet Tracer
RIP Configuration Example on Packet Tracer
CDP Configuration Example on Packet Tracer
OSPF Area Types Example on Packet Tracer (Standard and Backbone Areas)
OSPF External Routes Example on Packet Tracer
OSPF Area Types Example on Packet Tracer (Stub, NSSA, Totally Stubby, Totally NSSA Areas)

 

3 Responses to “Packet Tracer VLAN Configuration Example”


Leave a Reply