Ads

Cn lab 14

 

Lab Title Basic VLAN Configuration on Cisco Switch

tip: make sure your port is correct or not if your port is not correct according to commands you will see errors

 

 

IP Configuration:

Device

IP Address

Subnet Mask

VLAN

PC0

192.168.2.1

255.255.255.0

2

Laptop0

192.168.2.2

255.255.255.0

2

PC1

192.168.3.1

255.255.255.0

3

PC2

192.168.3.2

255.255.255.0

3

 

Step-by-Step Procedure:

 

  1. Connect All Devices

       Use straight-through cables to connect each PC/Laptop to the switch.

 

2.  Configure IP Address on Each PC/Laptop         Go to: Desktop > IP Configuration         Enter IP as per the table above.

 

3.  Configure VLANs on the Switch

1.       Click on the Switch > CLI

2.       Enter the following commands:

 

Switch> enable

Switch# configure terminal

 

# Create VLANs

Switch(config)# vlan 2

Switch(config-vlan)# name VLAN2

Switch(config-vlan)# exit

 

Switch(config)# vlan 3

Switch(config-vlan)# name VLAN3

Switch(config-vlan)# exit

 

# Assign Ports to VLAN 2

Switch(config)# interface fastethernet 0/1

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 2

Switch(config-if)# exit

 

Switch(config)# interface fastethernet 0/2

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 2

Switch(config-if)# exit

 

# Assign Ports to VLAN 3

Switch(config)# interface fastethernet 0/3

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 3

Switch(config-if)# exit

 

Switch(config)# interface fastethernet 0/4

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 3

Switch(config-if)# exit

 

# Exit Configuration Mode

Switch(config)# exit

Switch# write

 

Post a Comment

0 Comments