Here are some lab exercises for setting up VLANs on a basic switch:

Topology: You will need at least one Cisco switch for these exercises.

Exercise 1: Creating VLANs

1. Access the switch's CLI using a terminal emulator or console cable. 2. Enter privileged EXEC mode by typing `enable` and providing the enable password if configured. 3. Enter global configuration mode by typing `configure terminal`. 4. Create VLANs using the `vlan` command followed by the VLAN number:

 ```
 switch# configure terminal
 switch(config)# vlan 10
 switch(config-vlan)# name SALES
 switch(config-vlan)# exit
 switch(config)# vlan 20
 switch(config-vlan)# name MARKETING
 switch(config-vlan)# exit
 ```

Exercise 2: Assigning Access Ports to VLANs

1. Configure access ports and assign them to VLANs using the `interface` and `switchport access vlan` commands:

 ```
 switch(config)# interface fastethernet 0/1
 switch(config-if)# switchport mode access
 switch(config-if)# switchport access vlan 10
 switch(config-if)# exit
 switch(config)# interface fastethernet 0/2
 switch(config-if)# switchport mode access
 switch(config-if)# switchport access vlan 20
 switch(config-if)# exit
 ```

Exercise 3: Verifying VLAN Configuration

1. Verify the VLAN configuration using the `show vlan brief` command:

 ```
 switch# show vlan brief
 ```

Exercise 4: Saving Configuration

1. Save the configuration to the startup-config file using the `copy running-config startup-config` command:

 ```
 switch# copy running-config startup-config
 ```

Exercise 5: Testing VLAN Configuration

1. Connect devices to the configured access ports (e.g., computers or other switches). 2. Verify connectivity between devices within the same VLAN by attempting to ping each other.

These lab exercises cover the basics of setting up VLANs on a Cisco switch, including creating VLANs, assigning access ports to VLANs, verifying VLAN configuration, and saving the configuration. You can modify the VLAN numbers, names, and port assignments as needed for your specific environment.