CCNA1 Packet Tracer - Midterm Flashcards
How to assign a name to a switch
Switch> enable
Switch# configure terminal
Switch(config)# hostname S1
S1(config)# exit
Secure access to the console line.
S1> enable
S1# configure terminal
S1(config)# line console 0
S1(config-line)# password class
S1(config-line)# login
S1(config-line)# exit
S1(config)# exit
Secure privileged mode access.
S1> enable
S1# configure terminal
S1(config)# enable password c1$c0
Configure an encrypted password to secure access to privileged mode.
S1> en
S1# config t
S1(config)# enable secret itsasecret
S1(config)# exit
Encrypt the enable and console passwords
S1> en
S1# config t
S1(config)# service password-encryption
S1(config)# exit
Configure a MOTD banner
S1> en
S1# config t
S1(config)# banner motd “This is a secure system. Authorized Access Only!”
S1(config)# exit
Save and Verify Configuration Files to NVRAM
S1> en
S1# copy running-config startup-config
Destination filename [startup-config]?[Enter]
Configure S1 with an IP address.
S1> en
S1# config t
S1(config)# interface vlan 1
S1(config-if)# ip address 192.168.1.253 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# exit
Verify the IP address configuration on S1
S1> en
S1# show ip interface brief
Secure access to the line vty
Switch> en
Switch# config t
Switch(config)#line vty 0 15
Switch(config-line)#password cisco
Switch(config-line) #login
Configure IP address and default gateway for the switch
Switch> en
Switch# config t
Switch(config)#int vlan 1
Switch(config-if)#ip add 192.168.5.2 255.255.255.0
Switch(config-if)#no shut
(Type exit to go back to global configuration mode)
Switch(config-if)# exit
Switch(config)#ip default-gateway 192.168.5.1
Configure default gateway on the router
(Note: Would you like to enter the initial configuration dialog? n)
Router> en
Rouoter# config t
Router(config)#int gig0/0
Router(config-if)#ip add 192.168.5.1 255.255.255.0
Router(config-if)#no shut
(Press enter twice to get the prompt back)
Router(config-if)# exit
Router (config)#int gig0/1
Router (config-if)#ip add 192.168.6.1 255.255.255.0
Router(config-if)#no shut
Accessing the switch through telnet using PC2
PC2 -> command prompt
C:> telnet 192.168.5.2
Enter password
Switch> exit
PC0 pinging PC1
C:> ping 192.168.5.11
PC0 pinging PC2
C:> ping 192.168.6.5
PC1 pinging PC0
C:> ping 192.168.5.10
Configure the clock
S1> show clock
*0:9:45.901 UTC Mon Mar 1 1993
S1> enable
S1# clock set 1:40:00 22 September 2021
S1# exit