liveBook · Manning

Vlan id

As explained in Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

A VLAN ID is the numeric identifier, represented in the 802.1Q VLAN Identifier field, that specifies the VLAN associated with an Ethernet frame.

A VLAN ID is the number that identifies the VLAN associated with an Ethernet frame. In an IEEE 802.1Q tag, the VLAN Identifier (VID) is a 12-bit field, allowing 4,096 values in total. VLANs divide one physical switch into separate Layer 2 broadcast domains, so frames in one VLAN are not forwarded or flooded to another VLAN. section 12.3.1 section 12.5

Apply the VLAN ID in these common switch and router roles:

  • Create a VLAN with vlan vlan-id, optionally name it, and verify it with show vlan brief. section 12.2.1
  • Assign an access port to one VLAN with switchport access vlan vlan-id; access ports send and receive untagged frames. section 12.5
  • Carry multiple VLANs across a trunk using IEEE 802.1Q tags; the VID identifies each frame's VLAN. section 12.3.1 section 12.5
  • Configure a router-on-a-stick subinterface with encapsulation dot1q vlan-id. The subinterface number does not determine the VLAN; the encapsulation command does. section 12.4.1

Assigning VLAN 10

SW1(config)# vlan 10 SW1(config-vlan)# name Engineering SW1(config)# interface g0/1 SW1(config-if)# switchport mode access SW1(config-if)# switchport access vlan 10 The port becomes an access port in VLAN 10. On a router, the equivalent VLAN association would be encapsulation dot1q 10 under a subinterface. section 12.2.1 section 12.5 section 12.4.1

Figure 12.6 The 802.1Q tag’s position in an Ethernet frame and the field of the tag. The fields are TPID (Tag Protocol Identifier) and TCI (Tag Control Information). TCI contains three subfields: PCP (Priority Code Point), DEI (Drop Eligible Indicator), and VID (VLAN Identifier).

Use the frame diagram to locate the 802.1Q tag and distinguish its TPID and TCI fields, including the VID. section 12.3.1

How Acing the CCNA Exam: Volume 1 Fundamentals and Protocols covers it

How deep it goes
Explains the 12-bit VID and configuration roles, but defers detailed 802.1Q subfields and advanced reserved-value purposes.
Examples
Uses VLANs 10, 20, and 30, Engineering, HR, and Sales names, trunk commands, and router-on-a-stick subinterfaces.
What you can do after
Apply VLAN IDs through Cisco IOS commands and verify VLAN existence, port membership, and router subinterface associations.
How it connects
Connects VLAN IDs with IEEE 802.1Q tags, VLANs, access ports, trunk ports, subinterfaces, and router-on-a-stick routing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols. The section links point to the parts of the book it draws on.