Atcivity 1. Switching Concepts and Configuration
Atcivity 1. Switching Concepts and Configuration
Name:
Date/Time:
Objectives:
Configure Devices and Verify Connectivity
Gather Information with Show Commands
Topology:
Addressing Table:
Interfac
Device e IP Address Subnet Mask Default Gateway
G0/0/0 10.10.10.1 255.255.255.0 N/A
Router
G0/0/1 10.10.20.1 255.255.255.0 N/A
SW1 VLAN1 10.10.10.2 255.255.255.0 10.10.10.1
SW2 VLAN1 10.10.20.2 255.255.255.0 10.10.20.1
PC1 NIC 10.10.10.10 255.255.255.0 10.10.10.1
PC2 NIC 10.10.20.10 255.255.255.0 10.10.20.1
Background:
In this activity, you will configure SW1, SW2, and Router with basic settings, including IP addressing. Once you
have successfully verified connectivity, you will use show commands to gather information about the network.
Figure 2 PC UI
For PC2:
1. Click on the PC2 icon.
2. Click on the “Desktop” tab.
3. Click on “IP Configuration” to open the UI shown in figure 3.
4. In the “IP Address” field, enter the IP address for PC2 from the Addressing table.
5. In the “Subnet Mask” field, enter the subnet mask for PC2 from the Addressing table.
6. In the “Default Gateway” field, enter the default gateway for PC2 from the Addressing table.
7. Your changes are automatically saved. You may close the UI.
Figure 3 PC2 UI
The privileged EXEC command set includes those commands contained in user EXEC mode, as
well as the configure command through which access to the remaining command modes are
gained.
1. Click SW1 and then the CLI tab. Press Enter.
Switch>enable
Switch#
Switch#show running-config
SW1>enable
SW1#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#enable password cict
SW1(config)#exit
SW1#
%SYS-5-CONFIG_I: Configured from console by console
9. Secure privileged mode access. Set the enable password to “cict”. This password protects
access to privileged mode.
SW1>enable
SW1#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#enable password cict
SW1(config)#exit
SW1#
%SYS-5-CONFIG_I: Configured from console by console
Password:
iii. The first password is the console password you configured for line con 0. Enter this
password to return to user EXEC mode.
iv. Enter the command to access privileged mode.
v. Enter the second password you configured to protect privileged EXEC mode.
vi. Verify your configurations by examining the contents of the running-configuration file:
SW1#show running-config
Notice how the console and enable passwords are both in plain text. This could pose a
security risk if someone is looking over your shoulder.
11. Configure an encrypted password to secure access to privileged mode.
The enable password should be replaced with the newer encrypted secret password using the
enable secret command. Set the enable secret password to “itp831”.
SW1#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#enable secret itp831
SW1(config)#exit
SW1#
%SYS-5-CONFIG_I: Configured from console by console
The enable secret password overrides the enable password. If both are configured on the
switch, you must enter the enable secret password to enter privileged EXEC mode.
12. Verify that the enable secret password is added to the configuration file.
i. Enter the show running-configuration command again to verify the new enable secret
password is configured.
13. Answer the questions.
vii. What is displayed for the enable secret password?
viii. Why is the enable secret password displayed differently from what we configured?
14. Encrypt the enable and console passwords.
As you noticed, the enable secret password was encrypted, but the enable and console
passwords were still in plain text. We will now encrypt these plain text passwords using the
service password-encryption command.
SW1#config t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#service password-encryption
SW1(config)#exit
SW1#
%SYS-5-CONFIG_I: Configured from console by console
R(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up
R(config-if)#int g0/0/1
R(config-if)#ip address 10.10.20.1 255.255.255.0
R(config-if)#no shut
R(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up
R(config-if)#exit
R(config)#exit
R#
%SYS-5-CONFIG_I: Configured from console by console
R#copy ru st
Destination filename [startup-config]?
Building configuration...
[OK]
R#