14 - Security Services II - Port Security Flashcards

1
Q

How does Port security work?

A

Identifying devices based on their source MAC from Ethernet frames to restrict which devices can be connected either statically or dynamically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are Sticky secure MAC addresses?

A

Port security feature that learns the MAC addresses off each port and adds them to the running-config file so that you do not have to pre-configure them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command is used to enable port security on an interface?

A

Interface subcommand:

switchport port-security

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What switchport configuration command is used to set the maximum number of allowed MACs?

A

switchport port-security maximum 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What switchport configuration command is used to override the default action to take upon violation?

A

switchport port-security violation {protect | restrict | shutdown}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you predefine an allowed source MAC for an interface?

A

switchport port-security mac-address 0200.1111.1111

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you make an interface ‘sticky learn’ MACs for port security?

A

switchport port-security mac-address sticky

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between dynamic and sticky Port security?

A

Sticky saves Port security commands in the running config whereas dynamic does not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do you need to make sure you do if you are configuring port security on voice ports?

A

Make sure you configure it to allow at least 2 MACs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where would you configure Port security for Ether-channels?

A

On the port-channel interface, not the individual interfaces that make up the channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you verify Port security?

A

show port-security interface Ge0/1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you show all MAC addresses that are associated with ports using Port security?

A

show mac address-table secure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you show all MAC addresses that are associated with ports using Port security, and any other statically defined MACs?

A

show mac address-table static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True/False: Sticky learned MACs for Port security show in the output of dynamic MAC addresses (show mac address-table dynamic)

A

False.

Sticky learned addresses are considered to be static entries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you show MAC address table entries just for a specific interface?

A

show mac address-table {secure} interface Ge0/1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you define a Port security violation?

A

Any frame received on a given interface that violates the Port security rules configured for that interface

17
Q

What state would a port be put into after Port security violation and Shutdown mode is configured?

A

Err-disabled state

18
Q

What commands would show err-disabled for an interface state (not port security interface state) that has had a Port security violation Shutdown?

A

show interfaces

show interfaces status

19
Q

How do you recover a port from the err-disabled state?

A

You must shutdown the port then re enable it

shutdown
no shutdown

20
Q

How can you configure a switch to automatically recover interfaces placed into the err-disabled state by Port Security?

A

errdisable recovery cause psecure-violation

21
Q

How can you adjust the time to wait before automatically recovering ports shutdown by Port security (if enabled)?

A

errdisable recovery interval {seconds}

22
Q

How can you show a quick summary of interfaces and Port security?

A

show port-security

23
Q

What does the Last Source Address:Vlan field show in the output of show port-security interface?

A

The MAC and VLAN of the device that caused the violation

24
Q

What do the Protect and Restrict violation modes do differently to Shutdown?

A
  • Interface remains connected in secure-up state

- Only discards offending traffic

25
Q

What does Protect violation mode do when an offending frame arrives?

A

It only discards the frame, but does not increment the violations counter

26
Q

What does Restrict violation mode when an offending frame arrives?

A

It discards the frame, and increments the violation counter and generates syslog messages

27
Q

What will the interface state and interface port security states show for an interface on which a Port security violation has occurred and Shutdown violation mode is configured?

A

Interface state: err-disabled

Port security interface state: secure-down

28
Q

True/False: show mac address-table dynamic lists MAC entries for MAC addresses configured by Port security

A

False

29
Q

Which two show mac address-table commands list MACs for entries configured by port security?

A

show mac address-table

show mac address-table static