Here are some hands-on lab exercises for configuring basic switch settings using Cisco IOS commands. These exercises assume you have access to Cisco switches and are familiar with basic switch configuration concepts:
1. Accessing the Switch:
2. Setting Hostname and Banner:
```
switch# configure terminal switch(config)# hostname SW1 SW1(config)# ``` - Configure a message-of-the-day (MOTD) banner: ``` SW1(config)# banner motd # Enter TEXT message. End with the character '#'. Unauthorized access is prohibited.# ```
3. Configuring IP Address:
```
SW1(config)# interface vlan 1 SW1(config-if)# ip address 192.168.1.2 255.255.255.0 SW1(config-if)# no shutdown ```
4. Setting Passwords:
```
SW1(config)# line console 0 SW1(config-line)# password cisco SW1(config-line)# login SW1(config-line)# exit SW1(config)# enable secret class ```
5. Creating VLANs:
```
SW1(config)# vlan 10 SW1(config-vlan)# name SALES SW1(config)# vlan 20 SW1(config-vlan)# name MARKETING ```
6. Assigning Access Ports to VLANs:
```
SW1(config)# interface fastethernet 0/1 SW1(config-if)# switchport mode access SW1(config-if)# switchport access vlan 10 SW1(config-if)# exit SW1(config)# interface fastethernet 0/2 SW1(config-if)# switchport mode access SW1(config-if)# switchport access vlan 20 ```
7. Verifying Configuration:
```
SW1# show running-config SW1# show vlan brief SW1# show interfaces status SW1# show ip interface brief ```
8. Saving Configuration:
```
SW1# copy running-config startup-config ```
These exercises cover basic switch configuration tasks such as setting the hostname, configuring IP addressing, setting passwords, creating VLANs, assigning ports to VLANs, verifying configurations, and saving configurations. You can modify the commands and parameters as needed for your specific environment.