Router and Switch Security Flashcards
(70 cards)
Which command is used to enter Global Configuration Mode on a Cisco router?
A) configure terminal
B) config t
C) config
D) configure
Answer: A) configure terminal
What does the service password-encryption command do?
A) Encrypts passwords in the configuration file
B) Sets the password for the enable secret
C) Enables SSH access
D) Configures the console password
Answer: A) Encrypts passwords in the configuration file
Which command will permit only SSH traffic into the VTY lines?
A) transport input ssh
B) transport input telnet
C) transport input all
D) transport input none
Answer: A) transport input ssh
What is the default port number for HTTPS?
A) 21
B) 22
C) 80
D) 443
Answer: D) 443
Which protocol is used for secure remote access to a Cisco router?
A) Telnet
B) HTTP
C) SSH
D) FTP
Answer: C) SSH
Which command is used to configure a password for the console line?
A) line con 0
B) password cisco
C) login
D) All of the above
Answer: D) All of the above
What is the purpose of the login block-for command?
A) To set a timeout for login attempts
B) To block login attempts after a specified number of failed attempts
C) To enable login for a specific user
D) To configure login authentication
Answer: B) To block login attempts after a specified number of failed attempts
Which command disables CDP on a specific interface?
A) no cdp enable
B) cdp run
C) cdp enable
D) no cdp run
Answer: A) no cdp enable
What is the function of the switchport port-security command?
A) To configure the port as a trunk port
B) To enable port security features
C) To set the port to access mode
D) To disable the port
Answer: B) To enable port security features
Which option is a valid violation mode for port security?
A) shutdown
B) restrict
C) protect
D) All of the above
Answer: D) All of the above
What does the switchport port-security maximum command specify?
A) The maximum number of MAC addresses allowed on the port
B) The maximum number of devices allowed to connect
C) The maximum number of VLANs allowed on the port
D) The maximum number of IP addresses allowed
Answer: A) The maximum number of MAC addresses allowed on the port
Which command is used to configure a port to allow only one specific MAC address?
A) switchport port-security mac-address sticky
B) switchport port-security mac-address 0001.2222.3333
C) switchport port-security maximum 1
D) All of the above
Answer: D) All of the above
What is the purpose of the switchport port-security violation restrict command?
A) To shut down the port upon violation
B) To restrict access to the port upon violation
C) To allow all devices to connect
D) To log violations only
Answer: B) To restrict access to the port upon violation
Which command is used to configure a port to allow only VLANs 10 to 20?
A) switchport trunk allowed vlan 10-20
B) switchport access vlan 10-20
C) switchport mode trunk
D) switchport vlan 10-20
Answer: A) switchport trunk allowed vlan 10-20
What is the function of the no shutdown command on a switch port?
A) To disable the port
B) To enable the port
C) To configure the port as a trunk
D) To set the port to access mode
Answer: B) To enable the port
Which command is used to configure a password for the auxiliary line?
A) line aux 0
B) password cisco
C) login
D) All of the above
Answer: D) All of the above
What does the service password-encryption command do?
A) Encrypts passwords in the configuration file
B) Sets the password for the enable secret
C) Enables SSH access
D) Configures the console password
Answer: A) Encrypts passwords in the configuration file
Which command is used to configure a password for the console line?
A) line con 0
B) password cisco
C) login
D) All of the above
Answer: D) All of the above
What is the purpose of the login block-for command?
A) To set a timeout for login attempts
B) To block login attempts after a specified number of failed attempts
C) To enable login for a specific user
D) To configure login authentication
Answer: B) To block login attempts after a specified number of failed attempts
Which command disables CDP on a specific interface?
A) no cdp enable
B) cdp run
C) cdp enable
D) no cdp run
Answer: A) no cdp enable
What is the function of the switchport port-security command?
A) To configure the port as a trunk port
B) To enable port security features
C) To set the port to access mode
D) To disable the port
Answer: B) To enable port security features
Which option is a valid violation mode for port security?
A) shutdown
B) restrict
C) protect
D) All of the above
Answer: D) All of the above
What does the switchport port-security maximum command specify?
A) The maximum number of MAC addresses allowed on the port
B) The maximum number of devices allowed to connect
C) The maximum number of VLANs allowed on the port
D) The maximum number of IP addresses allowed
✅ Answer: A) The maximum number of MAC addresses allowed on the port
What is the primary purpose of a switch’s CAM table?
A) To store IP addresses
B) To map MAC addresses to switch ports
C) To control VLANs
D) To encrypt data
Answer: B) To map MAC addresses to switch ports