User Tools

Site Tools


products:ict:communications:courses:cisco:ccna:hands_on_lab_exercises_on_configuring_basic_switch_settings

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:

  1. Connect to the switch using a terminal emulation software (e.g., PuTTY) 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`.

2. Setting Hostname and Banner:

  1. Configure the switch hostname:

```

   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:

  1. Assign an IP address to the management VLAN interface:

```

   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:

  1. Configure console and enable 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:

  1. Create VLANs and assign names:

```

   SW1(config)# vlan 10
   SW1(config-vlan)# name SALES
   
   SW1(config)# vlan 20
   SW1(config-vlan)# name MARKETING
   ```

6. Assigning Access Ports to VLANs:

  1. Configure access ports and assign them 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:

  1. Verify the switch configuration:

```

   SW1# show running-config
   SW1# show vlan brief
   SW1# show interfaces status
   SW1# show ip interface brief
   ```

8. Saving Configuration:

  1. Save the configuration to the startup-config file:

```

   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.

products/ict/communications/courses/cisco/ccna/hands_on_lab_exercises_on_configuring_basic_switch_settings.txt · Last modified: 2024/03/31 23:06 by wikiadmin