Two ways to mark a VLAN
On a trunk, frames from many VLANs share one cable, so every frame has to say which VLAN it belongs to. There have been two methods on Cisco gear. Both do the job; they differ in how they add the VLAN information.
802.1Q: insert a tag
IEEE 802.1Q adds a 4-byte tag between the source MAC address and the EtherType. It contains a 16-bit tag protocol identifier (0x8100), a 3-bit priority field, a drop-eligible bit and a 12-bit VLAN ID. Because the frame has changed, the switch recalculates the frame check sequence. The maximum frame size goes from 1518 to 1522 bytes. Frames of the native VLAN are sent without a tag.
ISL: wrap the frame
Inter-Switch Link was Cisco's earlier method. It left the original frame alone and put it inside a new one: a 26-byte ISL header in front and a 4-byte CRC after, 30 bytes in all. Every VLAN, including VLAN 1, was encapsulated, so ISL had no native VLAN. It supported normal-range VLANs only, and it worked only between Cisco devices.
Comparison
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Configuring and verifying the encapsulation
Commands are based on Cisco IOS documentation and have not been run on a lab device here.
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunkOn platforms that support both methods, choose the encapsulation first, then set trunk mode. On current switches that only support 802.1Q this encapsulation command is not accepted and is not needed.
SW1#show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 1-4094
802.1q (or isl on older gear). A mode of on means a static trunk; with DTP it would show desirable or auto.Where mismatches show up
- One side ISL, the other 802.1Q: no working trunk, with no useful error beyond missing connectivity.
- One side trunk, the other access: tagged frames arrive at a port that expects untagged ones.
- Native VLAN differs: 802.1Q frames land in the wrong VLAN; see the native VLAN lesson.
ISL vs 802.1Q in short
- 802.1Q inserts a 4-byte tag and leaves the native VLAN untagged; it is the standard.
- ISL encapsulated the whole frame (30 bytes) and tagged every VLAN; it is Cisco-only and obsolete.
- Verify with
show interfaces trunk.
Test yourself
How many bytes does 802.1Q add to a frame?
Which method has no native VLAN?
Which trunking method works with non-Cisco switches?
What does the 12-bit VLAN ID field allow?
Which command shows the encapsulation of operational trunks?