Topic 7D. Lab - Basic Configuration of A CISCO Switch
Topic 7D. Lab - Basic Configuration of A CISCO Switch
Objectives
Part1: Configure PC
Part2: Configure a Basic Switch
Part3: Verify the Connectivity
Topology
Part1: Configure PC
Step 4: Secure access to the vty line. To secure access to the vty line, access line mode and set
the vty password to cisco
Note:
Console 0 is the physical console port on the switch/router you plug into.
Line vty is for remote accessing into the switch/router via telnet or ssh.
The config-line is letting you know you are currently in configuration mode for that
specific line.
Step 6: Configure a message of the day (MOTD) banner. Configure the Banner Message as
Warning
Step 7: Configure Switch Virtual Interface.
Configure VLAN 1 with ip address 192.168.1.254 and subnet mask 255.255.255.0
Bring the VLAN 1 interface state to up
Step 9: Configure the port speed and duplex settings for a Fast Ethernet interface.
Configure the duplex and speed settings on Fast Ethernet 0/8. Use the end command to return
to privileged EXEC mode when finished.
S1#configure terminal
S1(config)#interface fastethernet 0/8
S1(config-if)#speed 100
S1(config-if)#duplex full
S1(config-if)#end
The line protocol for both interface FastEthernet 0/8 and interface VLAN 2 will temporarily go
down.
The default on the Ethernet interface of the switch is auto-sensing, so it automatically
negotiates optimal settings. You should set duplex and speed manually only if a port must
operate at a certain speed and duplex mode. Manually configuring ports can lead to duplex
mismatches, which can significantly degrade performance.
Verify the new duplex and speed settings on the Fast Ethernet interface by typing the below
command;
We are now done with our basic configurations! Next we will verify the connectivity
between the switch and the PC;
From The PC, ping the IP address of the switch which is 192.168.1.254. Ping tests show
that we can successfully reach the switch from the PC end;
Likewise from the switch ping the PC’s IP address which is 192.168.1.10.
The ping results are also Okay. We can therefore conclude that we were able to not only
perform some basic switch configurations but also build a simple network consisting of a
switch and a PC.