Computer Networks Questions & Answers – Cisco Lan Switches

This set of Computer Networks Multiple Choice Questions & Answers (MCQs) focuses on “Cisco Lan Switches”.

1. ___________ command is used to enter privileged mode in a switch.
a) enable
b) configure terminal
c) hostname
d) wr
View Answer

Answer: a
Explanation: “enable” command is used to enter a privileged mode in a switch. The privileged mode allows verification, reloading and erasing of the configuration. “configure terminal” is used to enter the global configuration mode, “hostname” is used to change the device name and “wr” is used to save the running configuration.

2. Which command is used to configure telnet for remote access?
a) enable
b) login
c) line vty 0 4
d) interface fastEthernet 0/1
View Answer

Answer: c
Explanation: “line vty 0 4” is used to configure telnet for remote access, “0 4” specifies the number of simultaneous users in this case 5. “login” command is used to specify when the password is to be asked, “enable” is used to access privileged mode and “interface fastEthernet 0/1” is used to access the interface for ethernet port 0/1.

3. How to create a VLAN in a switch?
a) vlan
b) name HR
c) interface vlan
d) no vlan
View Answer

Answer: a
Explanation: “vlan” is the command used to create a VLAN. “name HR” is used to assign a name to a VLAN, “interface vlan” is used to access the interface of a VLAN and “no vlan” command is used to delete a VLAN.
advertisement
advertisement

4. Which command is used to check whether the trunking is configured or not?
a) switchport mode trunk
b) switchport mode access
c) show interface trunk
d) show running configuration
View Answer

Answer: c
Explanation: “show interface trunk” is used to check whether the trunking is configured or not and on which port it is configured. “switchport mode trunk” and “switchport mode access” is to configure trunk and access mode on a switch port, respectively. “show running configuration” is used to check the current running configuration of a switch.

5. Switch CLI is used to configure routing protocols.
a) True
b) False
View Answer

Answer: b
Explanation: Router CLI is used to configure routing protocols. Switch CLI is only used for management purposes and to configure VLANs and ssh.

6. How to enable different ports to access a VLAN?
a) switchport access vlan
b) switchport mode access
c) interface vlan
d) switchport mode trunk
View Answer

Answer: a
Explanation: “switchport access vlan” is used to give different ports access to a VLAN. “switchport mode trunk” and “switchport mode access” is to configure trunk and access mode on a switch port, respectively. “interface vlan” is used to access the interface of a VLAN.

7. Which command is used to change the interface status of a port or VLAN?
a) no auto-summary
b) copy run start
c) interface fastEthernet 0/1
d) no shutdown
View Answer

Answer: d
Explanation: “no shutdown” command is used to change the interface status of a port or VLAN to active or “UP”. “no auto-summary” is a command used to prevent classful summary of IP addresses, “interface fastEthernet 0/1” is used to access the interface for ethernet port 0/1 and “copy run start” is used to copy the running configuration over the start-up configuration.
advertisement

8. The switch requires an IP address for each port in use.
a) True
b) False
View Answer

Answer: b
Explanation: No, it is not required for each port in use to have an IP address. An IP address is assigned only for management, which is otherwise not required.

9. Which command is used to reboot a switch?
a) shutdown
b) copy run start
c) exit
d) reload
View Answer

Answer: d
Explanation: “reload” command is used to reboot a switch. “exit” command is used to exit a interface, “shutdown” command is used to change the interface status of a port or VLAN to “DOWN”, and “copy run start” is used to copy the running configuration over the start-up configuration.
advertisement

Sanfoundry Global Education & Learning Series – Computer Networks.

To practice all areas of Computer Networks, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.