Soru

Zorluk: OrtaInterswitch Connectivity and Trunking (802.1Q)

A Cisco switch receives an Ethernet frame on a port configured as an 802.1Q trunk link. In what sequential order does the switch process this incoming frame from initial ingress parsing to its final forwarding decision?

  1. 1Inspect the Ethernet header to detect the presence of an IEEE 802.1Q tag (EtherType 0x8100).
  2. 2Determine the VLAN association by extracting the 12-bit VLAN ID if tagged, or assigning the port's native VLAN ID if untagged.
  3. 3Evaluate the assigned VLAN ID against the interface's configured allowed VLAN list.
  4. 4Forward the frame to appropriate destination ports in that VLAN across the switch fabric, or drop it if the VLAN is disallowed.

Cevap

The correct sequence begins with inspecting the ingress frame header for an 802.1Q tag, assigning the VLAN ID based on tag presence or native VLAN configuration, checking the VLAN against the allowed VLAN list, and finally forwarding or dropping the frame.
When a frame arrives on an 802.1Q trunk interface, the switch performs ingress processing in a strict order: First, it examines the Ethernet header to detect whether an 802.1Q tag (EtherType 0x8100) is present. Second, it determines the internal VLAN ID—reading the 12-bit VLAN ID for tagged frames or mapping untagged frames to the interface's configured native VLAN. Third, it checks whether that VLAN ID is included in the interface's allowed VLAN list. Fourth, if the VLAN is permitted, the switch looks up the MAC table and forwards the frame to destination ports in that VLAN; if the VLAN is disallowed, the frame is dropped.

Adım Adım Çözüm

1
Parse frame header for 802.1Q tag
Determines if an 802.1Q EtherType (0x8100) and 4-byte tag exist within the frame.
The switch must identify encapsulation formatting before reading VLAN metadata.
2
Assign internal VLAN ID
Tagged frames are assigned the 12-bit VLAN ID from the tag; untagged frames are assigned to the port's native VLAN.
All ingress frames inside an 802.1Q switch must be mapped to a specific internal VLAN context.
3
Verify allowed VLAN status
The target VLAN ID is checked against the list defined by 'switchport trunk allowed vlan'.
Filtering rules must confirm that the trunk interface allows traffic for that specific VLAN.
4
Execute switching decision
The frame is switched toward matching destination interfaces or dropped if the VLAN is pruned.
The MAC address table lookup and allowed VLAN check dictate final egress behavior.

Anahtar Kavram

802.1Q Ingress Frame Processing Logic
Tahmini Süre:1m 30s
Bu soruyu puanla