Layer 2 Forwarding Flashcards

(36 cards)

1
Q

What is Layer 2 forwarding?

A

The process of switching frames based on MAC addresses.

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

What table is used in Layer 2 forwarding?

A

MAC address table (or CAM table).

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

How does a switch learn MAC addresses?

A

By examining the source MAC address of incoming frames.

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

What happens when a frame with an unknown destination MAC is received?

A

The switch floods the frame out all ports in the same VLAN except the one it came in on.

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

What happens when a frame is destined for a known MAC address?

A

The switch forwards the frame only out the associated port.

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

What is MAC address aging?

A

The process of removing inactive MAC addresses from the MAC table after a timeout.

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

What is flooding in Layer 2?

A

Sending frames out all ports except the source port when the destination MAC is unknown.

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

What is the purpose of VLANs in Layer 2 forwarding?

A

To segment broadcast domains and contain Layer 2 traffic within VLANs.

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

What is the role of the FIB in Layer 2 switching?

A

Layer 2 switches do not use a FIB; they use a MAC address table.

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

What is frame flooding used for?

A

To reach unknown unicast, broadcast, or multicast destinations.

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

What is the default MAC aging time on Cisco switches?

A

300 seconds.

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

What is a unicast frame?

A

A frame intended for a single MAC address.

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

What is a broadcast frame?

A

A frame intended for all hosts in the broadcast domain (FF:FF:FF:FF:FF:FF).

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

What is a multicast frame?

A

A frame intended for a group of hosts identified by a specific MAC address range.

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

How does Layer 2 forwarding differ from Layer 3 routing?

A

Layer 2 uses MAC addresses and does not decrement TTL; Layer 3 uses IP addresses and decrements TTL.

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

What is the result of a MAC address table overflow?

A

The switch may flood all frames, similar to a hub.

17
Q

What is store-and-forward switching?

A

The switch reads the entire frame before forwarding.

18
Q

What is cut-through switching?

A

The switch starts forwarding the frame after reading the destination MAC address.

19
Q

What is fragment-free switching?

A

The switch reads the first 64 bytes before forwarding to avoid collision fragments.

20
Q

What is the switch’s behavior when the source MAC address is already in the MAC table on a different port?

A

The switch updates the entry with the new port.

22
Q

A switch receives a frame with a known destination MAC on the same port as the source. What does it do?

A

It drops the frame because it would be forwarding it back out the same port it was received on.

23
Q

You see excessive flooding on a switch port. What could be a likely cause at Layer 2?

A

A full or unlearned MAC address table, or a topology loop without STP.

24
Q

A frame enters a switch with a source MAC not in the CAM table. What does the switch do first?

A

It adds the source MAC and its incoming port to the CAM table.

25
What happens if a frame is destined for a MAC that is in the CAM table on the same port it arrived?
The switch filters (drops) the frame and does not forward it.
26
Which conditions cause a switch to flood a unicast frame?
If the destination MAC is unknown, if the MAC address table is full, or if the entry is aged out.
27
A MAC address entry keeps aging out quickly even though the host is active. What might be wrong?
Unidirectional communication or traffic is not passing in both directions; check the link or host NIC.
28
You connect a hub to a switch port, and see MAC flapping errors. Why?
Multiple MACs are learned on a single port as they move between devices on the hub.
29
Which type of traffic is always flooded in a VLAN?
Broadcast and unknown unicast traffic.
30
How can you view MAC learning on a specific interface?
Use the command `show mac address-table interface `.
31
What command clears the dynamic MAC address entries from a switch?
`clear mac address-table dynamic`
32
What is the impact of setting the MAC address aging time too low?
The switch may constantly flood frames due to frequent aging out of MAC entries.
33
How does Layer 2 forwarding behave differently from Layer 3 routing in terms of TTL?
Layer 2 forwarding does not decrement TTL; Layer 3 routing does.
34
A host changes its NIC. What must happen for the switch to forward correctly to it?
The switch must relearn the new MAC address on the correct port.
35
In a switched network, what causes MAC address flapping?
MAC addresses being learned on multiple ports intermittently, usually due to loops or redundancy misconfigurations.
36
Why would a switch have the same MAC address mapped to two different ports?
Potential Layer 2 loop or MAC spoofing.