Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Ethernet & VLANs

Direct answer

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.

When to use this

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.

First 30 seconds

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?

Operational verification

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
Platform / version applicability
Protocol behaviour per standard; Cisco IOS / IOS XE command examples.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol behaviour per standard; Cisco IOS / IOS XE command examples.
Scope / prerequisiteStart here for anything between two devices in the same VLAN: a host that cannot reach its gateway, a VLAN that does no…
What next?1 suggested next step
Child topics (this level)8
Evidence0
On this pageJump to a specific section
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key checks
  • 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

QuestionReference
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

ItemValue
Standard MTU1500 bytes
Max frame (untagged)1518 bytes
802.1Q tag4 bytes
VLAN IDs1–4094
Default MAC aging300 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.

ConceptIn short
MAC learningSource MAC + port recorded per VLAN
FloodingUnknown unicast, broadcast, multicast
Access portOne untagged VLAN
TrunkSeveral VLANs tagged with 802.1Q
Inter-VLAN routingSVI 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.

Confirmation

Confirm action

Continue?