Port Security Flashcards

1
Q

What is Port Security in Cisco switches?

A

A Layer 2 security feature that restricts input to an interface by limiting and identifying MAC addresses

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

What command enables Port Security on a switchport?

A

switchport port-security

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

What are the three violation modes in Port Security?

A

Protect; Restrict; Shutdown

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

What does the Protect violation mode do?

A

Drops packets with unknown source MAC addresses

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

What does the Restrict violation mode do?

A

Drops packets and increments the security violation counter

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

What does the Shutdown violation mode do?

A

Err-disables the port upon a violation

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

How do you enable a port as an access port?

A

switchport mode access

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

What command sets the maximum number of MAC addresses on a port?

A

switchport port-security maximum [number]

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

What command sets a specific MAC address for port security?

A

switchport port-security mac-address [mac-address]

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

What command allows dynamically learned MAC addresses to be saved?

A

switchport port-security mac-address sticky

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

What is DHCP Snooping?

A

A security feature that acts like a firewall between untrusted hosts and trusted DHCP servers

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

What does DHCP Snooping prevent?

A

Rogue DHCP servers from assigning IP addresses

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

What is a trusted port in DHCP Snooping?

A

A port that allows DHCP server responses

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

What is an untrusted port in DHCP Snooping?

A

A port that should only receive DHCP requests from clients

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

What table does DHCP Snooping build?

A

The DHCP Snooping Binding Table

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

What command enables DHCP Snooping globally?

A

ip dhcp snooping

17
Q

What command enables DHCP Snooping for a VLAN?

A

ip dhcp snooping vlan <vlan-id></vlan-id>

18
Q

What command marks an interface as trusted for DHCP Snooping?

A

ip dhcp snooping trust

19
Q

What command limits DHCP messages on a port?

A

ip dhcp snooping limit rate <rate></rate>

20
Q

What is Dynamic ARP Inspection (DAI)?

A

A security feature that validates ARP packets in a network

21
Q

What attack does DAI prevent?

A

ARP Spoofing/Poisoning

22
Q

What does DAI use to validate ARP packets?

A

The DHCP Snooping Binding Table

23
Q

Which ports are trusted in DAI?

A

Ports where ARP replies are not validated (usually connected to other switches or DHCP servers)

24
Q

Which ports are untrusted in DAI?

A

Ports that must have ARP replies validated (usually connected to clients)

25
What command enables DAI globally?
ip arp inspection vlan
26
What command marks a port as trusted for DAI?
ip arp inspection trust
27
What happens if an invalid ARP packet is detected by DAI?
The switch drops the packet and can log the violation