CCNA Exam QuestionsBrowse all questions from this exam

CCNA Exam - Question 1057


An engineer is configuring a switch port that is connected to a VoIP handset. Which command must the engineer configure to enable port security with a manually assigned MAC address of abcd.abcd.abcd on voice VLAN 4?

Show Answer
Correct Answer: B

To enable port security with a manually assigned MAC address on a voice VLAN, the correct command is switchport port-security mac-address abcd.abcd.abcd vlan voice. This command specifies the MAC address allowed on the port and identifies that it should be associated with a voice VLAN. The other options either lack the correct VLAN specification or include incorrect syntax for this configuration.

Discussion

21 comments
Sign in to comment
Leethy
Apr 7, 2023

C. switchport port-security mac-address abcd.abcd.abcd To enable port security with a manually assigned MAC address, the engineer would use the "switchport port-security mac-address abcd.abcd.abcd" command. This command sets the allowed MAC address for the port. The VLAN assignment for the VoIP handset is separate and not included in the port-security command.

Dutch012
Mar 5, 2023

final question yay!

ac89l
May 13, 2023

not for us ... :)

[Removed]
Jun 15, 2023

1138 questions as of today

JSMM
Apr 6, 2025

1395 questions as of today 6/4/25

ZK23
Nov 27, 2023

1221 as of today. Almost done :)

Boulet_Dude
Dec 8, 2023

im working my way backwards lol

ae9c89a
Apr 28, 2024

1350 as of today i have a long way to go

Boulet_Dude
Dec 8, 2023

im working my way backwards lol

ae9c89a
Apr 28, 2024

1350 as of today i have a long way to go

JSMM
Apr 6, 2025

1395 questions as of today 6/4/25

EXD
Nov 10, 2023

B switchport port-security [mac-address mac-address [vlan {vlan-id | {access | voice}}] Example: Switch(config-if)# switchport port-security mac-address 00:A0:C7:12:C9:25 vlan 3 voice https://www.cisco.com/en/US/docs/switches/lan/catalyst3850/software/release/3.2_0_se/multibook/configuration_guide/b_consolidated_config_guide_3850_chapter_011111.html

squagmire
Mar 9, 2024

this is correct. I tested A in an actual device and the port must be in trunk mode for it to function. I don't think C works as intended as well, and B is just wrong for this

EallamOption: A
Jul 6, 2023

A is correct the command is switchport port-security [mac-address mac-address [vlan {vlan-id | {access | voice}}] Example: Switch(config-if)# switchport port-security mac-address 00:A0:C7:12:C9:25 vlan 3 voice https://www.cisco.com/en/US/docs/switches/lan/catalyst3850/software/release/3.2_0_se/multibook/configuration_guide/b_consolidated_config_guide_3850_chapter_011111.html#ID437 and since in the questionit stated vlan 4 and you can have multiple Voice Vlans , A is more accurate than B

Elmasquentona963
Oct 2, 2023

The "switchport port-security vlan vlan-id" command is applied on trunk ports. So it cannot be applied in this situation, due to the switchport must be configured as an access-port.

nostal
Jun 26, 2023

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-3/configuration_guide/sec/b_173_sec_9300_cg/port_security.html switchport port-security mac-address sticky [mac-address | vlan {vlan-id | {access | voice}}] Example: Device(config-if)# switchport port-security mac-address sticky 00:A0:C7:12:C9:25 vlan voice

[Removed]Option: C
Oct 4, 2023

(Optional) Use the switchport port-security mac-address -mac-address- interface subcommand to predefine any allowed source MAC addresses for this interface. Use the command multiple times to define more than one MAC address.

Rydaz
May 7, 2023

all wrong ending should be vlan voice 4, and no sticky before the mac address, if B had 4 at the end it would be good

Rydaz
May 7, 2023

my bad, C is right

nostal
Jun 26, 2023

B is correct, tested with a lab. C is for data vlan,

Hayk__007Option: B
Sep 24, 2023

Enter one of these options after you enter the vlan keyword: vlan-id—On a trunk port, you can specify the VLAN ID and the MAC address. If you do not specify a VLAN ID, the native VLAN is used. access—On an access port, specifies the VLAN as an access VLAN. voice—On an access port, specifies the VLAN as a voice VLAN. It's more likely that it's access conncection becuase of the Voip, so we need to specify vlan voice as it stated here. *Check the link in 10th step: https://www.cisco.com/en/US/docs/switches/lan/catalyst3850/software/release/3.2_0_se/multibook/configuration_guide/b_consolidated_config_guide_3850_chapter_011111.html#ID437

PyoJHOption: C
Nov 30, 2023

'switchport port-security mac-address abcd.abcd.abcd vlan 4' is possible. However, it is possible when it is a 'trunk' port. The problem is that it is an access port and vlan cannot be configured because it is connected to handset.

a67c04aOption: C
Jan 30, 2024

It´s C - port is an access port, so no vlan command

wazmac
Mar 19, 2024

1357 Questions now, still grinding :(

Net_eng_pogi
Mar 31, 2024

We can do this!

[Removed]Option: C
Apr 8, 2024

C is correct

ac89l
May 8, 2023

PTK-HOS-SRV-SW-L4-11(config-if)#switchport port-security mac-address ? H.H.H 48 bit mac address sticky Configure dynamic secure addresses as sticky I go for C

chianOption: A
Aug 26, 2023

C. Error, only MAC address specified without VLAN or port security enabled

askar430Option: A
Feb 26, 2024

A , can work if you used trunk mode in interface

rodrigocalcaraoOption: B
Apr 28, 2024

https://www.cisco.com/en/US/docs/switches/lan/catalyst3850/software/release/3.2_0_se/multibook/configuration_guide/b_consolidated_config_guide_3850_chapter_011111.html#:~:text=Switch(config%2Dif)%23%20switchport%20port%2Dsecurity%20mac%2Daddress%200000.0000.0004%20vlan%20voice

ShanRamu
Jun 25, 2024

Answer is C

adrianspaOption: C
Aug 27, 2024

C tested successfully in PT. NB: switchport has to be in Access mode. Switch(config-if)#switchport port-security Switch(config-if)#switchport port-security mac-address 0040.0bbd.37b2 Switch(config-if)#

MimonOption: B
Apr 10, 2025

https://www.cisco.com/en/US/docs/switches/lan/catalyst3850/software/release/3.2_0_se/multibook/configuration_guide/b_consolidated_config_guide_3850_chapter_011111.html#:~:text=Switch(config%2Dif)%23%20switchport%20port%2Dsecurity%20mac%2Daddress%200000.0000.0004%20vlan%20voice

Ismail Shiwani
May 20, 2025

C