Spanning tree protocol interview question

11.

Which of the following is a layer 2 protocol used to maintain a loop-free network?
A.     VTP    B.     STP
C.     RIP    D.     CDP
Answer & Explanation

Answer: Option B

Explanation:

The Spanning Tree Protocol is used to stop switching loops in a switched network with redundant paths.
View Answer Workspace Report Discuss in Forum
12.

You need to allow one host to be permitted to attach dynamically to each switch interface. Which two commands must you configure on your catalyst switch to meet this policy?

Switch(config-if)# ip access-group 10
Switch(config-if)# switchport port-security maximum 1
Switch(config)# access-list 10 permit ip host 1
Switch(config-if)# switchport port-security violation shutdown
Switch(config)# mac-address-table secure

A.     1 and 3
B.     2 and 4
C.     2, 3 and 5
D.     4 and 5
Answer & Explanation

Answer: Option B

Explanation:

The switchport port-security is an important command, and it’s super easy with the CNA; however, from the CLI, you can set the maximum number of MAC addresses allowed into the port, and then set the penalty if this maximum has been passed.
View Answer Workspace Report Discuss in Forum
13.

What command will display the forward/filter table?
A.     show mac filter
B.     show run
C.     show mac address-table
D.     show mac filter-table
Answer & Explanation

Answer: Option C

Explanation:

The command show mac address-table displays the forward/filter table on the switch.
View Answer Workspace Report Discuss in Forum
14.

If a switch receives a frame and the source MAC address is not in the MAC address table but the destination address is, what will the switch do with the frame?
A.     Discard it and send an error message back to the originating host
B.     Flood the network with the frame
C.     Add the source address and port to the MAC address table and forward the frame out the destination port
D.     Add the destination to the MAC address table and then forward the frame
Answer & Explanation

Answer: Option C

Explanation:

Since the source MAC address is not in the MAC address table, the switch will add the source address and the port it is connected to into the MAC address table and then forward the frame to the outgoing port.
View Answer Workspace Report Discuss in Forum
15.

What is the result of segmenting a network with a bridge (switch)?

It increases the number of collision domains.
It decreases the number of collision domains.
It increases the number of broadcast domains.
It decreases the number of broadcast domains.
It makes smaller collision domains.
It makes larger collision domains.

A.     1 and 5
B.     2, 3 and 5
C.     3, 4 and 6
D.     1, 3 and 6
Answer & Explanation

Answer: Option A

Explanation:

Bridges break up collision domains, which would increase the number of collision domains in a network and also make smaller collision domains.

Leave a Reply0

Your email address will not be published.