1.1.7 Lab - Basic Switch Configuration

7 min read

Imagine you’re sitting in front of a lab rack, the console cable plugged into a Cisco switch, and the instructor just said, “Let’s walk through 1.On the flip side, 1. ” You feel a mix of excitement and nerves because you know the next few minutes will set the tone for everything you’ll do with switches later on. 7 lab – basic switch configuration.The goal isn’t just to type a few commands; it’s to understand why each setting matters and how it shapes the way the device behaves in a real network.

What Is 1.1.7 Lab - Basic Switch Configuration

The 1.1.Because of that, 7 lab is a staple in many CCNA‑style courses. It’s a hands‑on exercise where you take a fresh switch—often a Cisco Catalyst 2960 or similar—and bring it from factory defaults to a minimally functional, securely managed device. Which means you’ll set a hostname, configure passwords, assign an IP address to the switch’s management interface, enable remote access, and verify that everything works as expected. Think of it as the networking equivalent of learning to tune a car before you hit the road: you’re not racing yet, but you’re making sure the engine, brakes, and steering are all in good shape.

Why the Lab Exists

Instructors use this lab to reinforce a few core ideas:

  • Device identity – A hostname helps you tell one switch from another when you’re looking at logs or diagrams.
  • Access control – Passwords and encryption keep unauthorized folks from reconfiguring your gear.
  • Management reachability – An IP address on a switch virtual interface (SVI) lets you ping, SSH, or SNMP‑poll the device from anywhere in the network.
  • Baseline security – Turning off unnecessary services and enabling features like SSH a first line hardening the lab is the lab matters

You might wonder why you’d spend time on something that looks so simple. If you forget to set a password, anyone who plugs into the console can change the VLAN map or shut down ports. 1.That said, the truth is, many network issues trace back to sloppy switch basics. In short, mastering 1.Which means if you neglect to configure an SVI, you lose the ability to manage the switch remotely, which means you’ll have to physically visit the closet every time you need to tweak something. 7 lab builds the habits that keep a network stable, secure, and easy to troubleshoot.

How It Works (or How to Do It)

Below is a walkthrough that mirrors what you’ll see in the lab guide, but with a bit of extra context so you understand the “why” behind each step. Feel free to adapt the commands to your specific switch model or IOS version; the concepts stay the same That alone is useful..

Step 1: Access the Switch Console

Plug the rollover cable into the switch’s console port and open your terminal emulator (PuTTY, Tera Term, or even the built‑in console in Packet Tracer). If you don’t, hit Enter a few times until the prompt appears. Because of that, you should see a prompt that looks like Switch>. This is your direct line to the device’s operating system, bypassing any network configuration.

This is the bit that actually matters in practice.

Step 2: Set Hostname and Passwords

First, give the switch a name that makes sense in your topology. In the lab, you might use Switch1 or SW‑LAB‑01. Then protect privileged EXEC mode with a strong enable secret and set a console password so nobody can just walk up and start typing Surprisingly effective..

Switch> enable
Switch# configure terminal
Switch(config)# hostname Switch1
Switch1(config)# enable secret cisco123
Switch1(config)# line console 0
Switch1(config-line)# password consolepass
Switch1(config-line)# login
Switch1(config-line)# exit

Notice the use of enable secret rather than the older enable password. The secret is stored using a stronger MD5 hash, which is a small but important security win Most people skip this — try not to..

Step 3: Configure Management IP (SVI)

Switches don’t have IP addresses on their physical ports by default; instead, you assign an address to a virtual interface tied to a VLAN. The lab usually uses VLAN 1 for management, though best practice is to move management to a dedicated VLAN later on.

You'll probably want to bookmark this section.

Switch1(config)# interface vlan 1
Switch1(config-if)# ip address 10.0.0.10 255.255.255.0
Switch1(config-if)# no shutdown
Switch1(config-if)# exit

Now the switch can respond to pings from any device on the 10.That said, 0/24 subnet. 0.0.You’ll also want to set a default gateway so the switch can reach networks beyond its local segment.

Switch1(config)# ip default-gateway 10.0.0.1

Step 4: Enable

Step 4: Enable SSH for Secure Remote Management

To securely manage the switch over the network, enable SSH instead of the outdated Telnet protocol. This ensures encrypted communication between your management station and the switch.

Switch1(config)# ip domain-name example.com
Switch1(config)# crypto key generate rsa modulus 2048
Switch1(config)# line vty 0 4
Switch1(config-line)# transport input ssh
Switch1(config-line)# password vtypass
Switch1(config-line)# login
Switch1(config-line)# exit

The ip domain-name command sets the switch’s domain for generating cryptographic keys, while crypto key generate rsa creates the necessary RSA key pair. Restricting VTY lines to SSH only prevents plaintext credential exposure.

Step 5: Configure VLANs and Assign Ports

VLANs segment traffic logically, improving security and performance. Create VLANs and assign switch ports to them based on your lab requirements.

Switch1(config)# vlan 10
Switch1(config-vlan)# name Sales
Switch1(config-vlan)# exit
Switch1(config)# vlan 20
Switch1(config-vlan)# name Engineering
Switch1(config-vlan)# exit
Switch1(config)# interface range fa0/1 - 5
Switch1(config-if-range)# switchport mode access
Switch1(config-if-range)# switchport access vlan 10
Switch1(config-if-range)# exit
Switch1(config)# interface range fa0/6 - 10
Switch1(config-if-range)# switchport mode access
Switch1(config-if-range)# switchport access vlan 20
Switch1(config-if-range)# exit

This example creates two VLANs and assigns the first five Fast Ethernet ports to the Sales VLAN and the next five to Engineering. Use switchport mode access to ensure ports operate in Layer 2 access mode rather than dynamic auto or trunking modes.

Step 6: Verify and Save Configuration

Before concluding, verify all settings to ensure they’re applied correctly. Use commands like show ip interface brief, show vlan brief, and show running-config to check configurations Still holds up..

Switch1# show ip interface brief
Switch1# show vlan brief
Switch1# show running-config

Once confirmed, save the configuration to the startup file to retain settings after reboots:

Switch1# copy running-config startup-config

Conclusion

Properly configuring VLANs, securing remote access, and hardening switch settings are foundational skills for network administrators. 7 lab objectives but also mirror real-world best practices. These steps not only align with CCNA 1.By mastering these tasks, you ensure your network remains resilient against unauthorized access, simplifies troubleshooting, and scales efficiently. 1.Regular practice with these configurations builds muscle memory for more complex scenarios, making you a proficient and confident network engineer.

Step 5: Configure VLANs and Assign Ports

VLANs segment traffic logically, improving security and performance. Create VLANs and assign switch ports to them based on your lab requirements.

Switch1(config)# vlan 10
Switch1(config-vlan)# name Sales
Switch1(config-vlan)# exit
Switch1(config)# vlan 20
Switch1(config-vlan)# name Engineering
Switch1(config-vlan)# exit
Switch1(config)# interface range fa0/1 - 5
Switch1(config-if-range)# switchport mode access
Switch1(config-if-range)# switchport access vlan 10
Switch1(config-if-range)# exit
Switch1(config)# interface range fa0/6 - 10
Switch1(config-if-range)# switchport mode access
Switch1(config-if-range)# switchport access vlan 20
Switch1(config-if-range)# exit

This example creates two VLANs and assigns the first five Fast Ethernet ports to the Sales VLAN and the next five to Engineering. Use switchport mode access to ensure ports operate in Layer 2 access mode rather than dynamic auto or trunking modes.

Easier said than done, but still worth knowing.

Step 6: Verify and Save Configuration

Before concluding, verify all settings to ensure they’re applied correctly. Use commands like show ip interface brief, show vlan brief, and show running-config to check configurations.

Switch1# show ip interface brief
Switch1# show vlan brief
Switch1# show running-config

Once confirmed, save the configuration to the startup file to retain settings after reboots:

Switch1# copy running-config startup-config

Conclusion

Properly configuring VLANs, securing remote access, and hardening switch settings are foundational skills for network administrators. On top of that, by mastering these tasks, you ensure your network remains resilient against unauthorized access, simplifies troubleshooting, and scales efficiently. 1.These steps not only align with CCNA 1.7 lab objectives but also mirror real-world best practices. Regular practice with these configurations builds muscle memory for more complex scenarios, making you a proficient and confident network engineer.

You'll probably want to bookmark this section.

Up Next

Current Reads

You'll Probably Like These

A Bit More for the Road

Thank you for reading about 1.1.7 Lab - Basic Switch Configuration. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home