Buffl

Day18: VLANs Part 3

as
von abdullah S.

📚 MAIN CONCEPTS


Native VLAN Configuration on Routers

When using Router-on-a-Stick (ROAS), you can configure the router to participate in native VLAN functionality. Native VLAN frames are not tagged with 802.1Q headers, making transmission slightly more efficient because frames are smaller.

Two methods to configure native VLAN on a router:

  1. Subinterface Method: Use the command encapsulation dot1q [vlan-id] native on the subinterface

  2. Physical Interface Method: Configure the IP address directly on the physical interface (no subinterface needed, no encapsulation command needed)

802.1Q Tag Structure (Wireshark View)

The dot1q tag is inserted after the source MAC address field and contains:

  • TPID (Tag Protocol Identifier): 0x8100 - identifies frame as 802.1Q tagged

  • PCP (Priority Code Point): 3 bits for QoS priority (0-7)

  • DEI (Drop Eligible Indicator): 1 bit indicating if frame can be dropped during congestion

  • VLAN ID: 12 bits identifying the VLAN (1-4094)

Layer 3 (Multilayer) Switching

A multilayer switch can perform both Layer 2 switching AND Layer 3 routing. This is the preferred method for inter-VLAN routing in large networks.

Capabilities of Layer 3 switches:

  • Switching and routing in one device

  • IP address assignment to interfaces

  • Routed ports (interfaces that act like router interfaces)

  • Switch Virtual Interfaces (SVIs) for each VLAN

  • Routing table with static/dynamic routes

Switch Virtual Interfaces (SVIs)

SVIs are virtual interfaces created in software that can be assigned IP addresses and used as default gateways for VLANs. They enable inter-VLAN routing without sending traffic to an external router.

Author

abdullah S.

Informationen

Zuletzt geändert