Start here for anything between two devices in the same VLAN: a host that cannot reach its gateway, a VLAN that does not cross a trunk, or reading frame fields in a capture.
Ethernet & VLANs
Ethernet frames, VLAN tags and trunks: a switch learns MAC addresses per VLAN, keeps VLANs apart, and carries several VLANs over one link by tagging frames with 802.1Q.
1. show interfaces <interface> switchport — access port in the right VLAN?
2. show vlan brief — does the VLAN exist and is it active?
3. show interfaces trunk — VLAN allowed and forwarding on every trunk on the path?
4. Native VLAN the same on both ends of each trunk?
5. show mac address-table vlan <id> — is the host's address learned where expected?
access port in the VLAN → VLAN exists on every switch on the path → allowed and forwarding on each trunk → native VLAN matches → MAC address learned → frame delivered
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Subtopics
Go one level deeper into this subject.
Ethernet frames carry Layer-2 payloads between interfaces in the same broadcast domain; MTU controls the maximum Layer-3 payload accepted on a path.
Subtopic VLAN & 802.1Q Trunk Reference802.1Q trunks carry multiple VLANs over one Ethernet link by tagging frames with a VLAN ID; the native VLAN is commonly sent untagged.
Subtopic DTP ReferenceDynamic Trunking Protocol is a Cisco Layer-2 negotiation protocol that can influence whether a switchport becomes a trunk.
Subtopic MAC Address Table ReferenceEthernet switches learn source MAC addresses and associate them with VLAN/port entries used for Layer-2 forwarding.
Subtopic LLDP & CDP ReferenceLLDP and CDP advertise neighboring device identity, port and capability information on directly connected links.
Subtopic Ethernet Frame Field ReferenceEthernet frame fields identify destination/source MAC, EtherType/length and payload boundary.
Subtopic 802.1Q Tag Field ReferenceThe 802.1Q tag carries PCP, DEI and a 12-bit VLAN ID between source MAC and encapsulated EtherType.
Subtopic LLDP & CDP TLV ReferenceLLDP and CDP advertise neighbor identity, port and capabilities through TLV-encoded control messages.
Check in order: port in the right VLAN, VLAN exists, trunk carries it, native VLAN the same on both ends, MAC address learned. A VLAN missing from the trunk's allowed list fails silently.
show vlan brief— VLANs and their access ports.show interfaces trunk— trunks, native VLAN, allowed and forwarding VLANs.show interfaces <interface> switchport— mode, access VLAN, native VLAN.show mac address-table vlan <id>— addresses learned in the VLAN.show cdp neighbors— a native VLAN mismatch is also logged by CDP.
ReferenceWhat it is1 section · depth on demand
What this group covers
Frame formats (Ethernet, MTU, 802.1Q tag), VLAN trunking and DTP, MAC address table behaviour, and LLDP/CDP TLVs. Use these references when a capture or show output needs field-level interpretation; the Switching section covers configuration and design.
ReferenceImportant terms & boundaries3 sections · depth on demand
Where to look
| Question | Reference |
|---|---|
| What is the largest frame on this link? | *Ethernet Frame & MTU Reference* |
| Why is a VLAN missing across a trunk? | *VLAN & 802.1Q Trunk Reference* |
| Is DTP still negotiating trunks? | *DTP Reference* |
| Where did this MAC address learn? | *MAC Address Table Reference* |
| Which neighbour is on this port? | *LLDP & CDP Reference* |
| What does this field in the capture mean? | *Ethernet Frame Field Reference / 802.1Q Tag Field Reference* |
Ethernet carries almost all traffic in a LAN, and VLANs divide one physical switch network into separate logical networks. A switch learns where each MAC address lives, keeps VLANs apart, and carries several VLANs between switches over tagged trunk links. Most everyday Layer 2 faults come down to a VLAN that is missing somewhere along the path or a port in the wrong VLAN, so the checks below follow a host's traffic from its access port to the trunk.
Ethernet and VLAN quick reference:
show vlan brief
show interfaces trunk
show mac address-table interface Gi1/0/5
show interfaces Gi1/0/5 switchport
Key facts: VLAN IDs 1–4094 (1002–1005 reserved legacy), 802.1Q adds a 4-byte tag, native VLAN is untagged on trunks and must match on both ends, unused ports belong in a shutdown parking VLAN. Most faults are VLAN not allowed on a trunk, native VLAN mismatch or wrong access VLAN.
Key numbers
| Item | Value |
|---|---|
| Standard MTU | 1500 bytes |
| Max frame (untagged) | 1518 bytes |
| 802.1Q tag | 4 bytes |
| VLAN IDs | 1–4094 |
| Default MAC aging | 300 s (Cisco) |
In depth
Ethernet and VLANs are the foundation of every campus and data centre LAN. Ethernet frames carry data between devices on a segment using MAC addresses; switches learn where each MAC lives and forward frames only where needed. VLANs split one physical switch infrastructure into separate broadcast domains, each normally its own IP subnet.
| Concept | In short |
|---|---|
| MAC learning | Source MAC + port recorded per VLAN |
| Flooding | Unknown unicast, broadcast, multicast |
| Access port | One untagged VLAN |
| Trunk | Several VLANs tagged with 802.1Q |
| Inter-VLAN routing | SVI or router-on-a-stick |
Most Layer 2 problems come down to a VLAN missing somewhere along the path, or a MAC learned on an unexpected port.