Study guide

Access, Trunk, and Hybrid Link Types

Huawei Certified ICT Associate - Datacom HCIA-Datacom H12-811 V1.0

Track your progress as you read

Finished sections get a check mark.

1 Introduction

About HCIA-Datacom H12-811 V1.0 Study Strategies and Exam Logistics

2 Chapter 1: Network Models and Ethernet Fundamentals

OSI and TCP/IP Models Ethernet Technology and MAC Addressing Data Forwarding and Campus Network Lifecycle

3 Chapter 2: IPv4 Addressing and Transport Protocols

IPv4 Addressing and Subnetting ARP and ICMP TCP and UDP Principles Common Ports and Application Protocols

4 Chapter 3: Huawei VRP Basics and Device Management

VRP CLI Views and Core Commands Configuration Save, Reset, and File System SSH, Telnet, and Console Access Display Commands and Basic Troubleshooting

5 Chapter 4: Ethernet Switching and VLANs

Switch Forwarding and MAC Address Tables VLAN Concepts and Segmentation Access, Trunk, and Hybrid Link Types VLANIF and Inter-VLAN Routing

6 Chapter 5: STP, RSTP/MSTP, and Link Aggregation

STP Concepts and Election RSTP and MSTP Eth-Trunk Static and LACP Stacking Basics for Campus Switches

7 Chapter 6: IP Routing Fundamentals

RIB, FIB, and Forwarding Decisions Static and Default Routes on VRP Route Preference and Longest Match Floating Static Routes and Blackhole Routes

8 Chapter 7: OSPF Fundamentals

OSPF Areas and Router Types Neighbor States and Adjacency LSA Types and LSDB DR/BDR Election and VRP OSPF Configuration

9 Chapter 8: ACLs and AAA

Basic and Advanced ACLs traffic-filter Application and Matching Order AAA with Local, RADIUS, and HWTACACS

10 Chapter 9: DHCP, NAT, and Network Services

DHCP Server, Relay, and Snooping NAT, Easy IP, and NAT Server FTP, TFTP, DNS, NTP, HTTP Basics

11 Chapter 10: WLAN Basics

WLAN Architecture: AC, AP, and Fit Mode CAPWAP Tunnels and Forwarding Modes WPA2, WPA3, and WLAN Security Basics Basic WLAN Configuration Concepts

12 Chapter 11: WAN Basics

WAN Concepts and Encapsulation PPP Authentication: PAP and CHAP PPPoE Basics and Client Configuration

13 Chapter 12: IPv6 Fundamentals

IPv6 Address Types and Format Neighbor Discovery and ICMPv6 Stateful and Stateless DHCPv6 IPv6 Static Routes on VRP

14 Chapter 13: SDN and NFV Fundamentals

SDN and NFV Fundamentals

15 Chapter 14: Network Management and O&M

Network Management, O&M, and Automation Basics

Access, Trunk, and Hybrid Link Types

Key Takeaways Explain This Topic AI

Huawei ports use link types access, trunk, or hybrid via port link-type; hybrid is a Huawei-critical option beyond simple access/trunk thinking.

Access ports belong to one VLAN: traffic is untagged on the wire; port default vlan sets the PVID.

Trunk ports carry multiple VLANs with 802.1Q tags; port trunk allow-pass vlan must explicitly permit those VLANs.

Hybrid ports can send some VLANs tagged and others untagged, enabling flexible multi-service edge designs.

Exam traps include forgetting allow-pass on trunks, mismatched PVIDs, and confusing hybrid untagged lists with access-only ports.

Last updated: July 2026

Port link type decides how tags are handled

Creating VLANs is useless until ports know which VLAN a frame belongs to and whether to tag it on the wire . Huawei VRP exposes three exam-critical link types :

  • Link type Typical use Tagging behavior (conceptual)
  • access End hosts, single VLAN Untagged on wire; one VLAN (PVID)
  • trunk Switch-to-switch, switch-to-router subinterfaces Multiple VLANs tagged (PVID may be untagged)
  • hybrid Flexible edge: phone+PC, selective untagging Per-VLAN choose tagged or untagged egress

Set the type before detailed VLAN membership commands (order can matter if the device rejects commands in the wrong type): [Huawei] interface GigabitEthernet0/0/1

[Huawei-GigabitEthernet0/0/1] port link-type access

Replace access with trunk or hybrid as required. Changing type may clear previous VLAN membership—reapply VLAN commands after a type change.

PVID and port default vlan

PVID (Port VLAN ID) is the VLAN assigned to untagged frames arriving on the port. On access ports, PVID is the VLAN of the attached host. Command: [Huawei-GigabitEthernet0/0/1] port default vlan 10

Behavior summary:

Ingress untagged frame → classified into the PVID .

Egress for that VLAN on an access port → tag stripped; host sees ordinary Ethernet.

Hosts almost never send 802.1Q tags; access ports keep life simple for PCs.

If two access ports need to communicate at Layer 2, both must share the same PVID/VLAN (and any intermediate trunks must allow that VLAN).

  • Access port complete mini-config [Huawei] vlan batch 10
  • [Huawei] interface GigabitEthernet0/0/1
  • [Huawei-GigabitEthernet0/0/1] port link-type access
  • [Huawei-GigabitEthernet0/0/1] port default vlan 10
  • [Huawei-GigabitEthernet0/0/1] quit

Verify with display vlan 10 and display port vlan (or platform-equivalent) so the port shows as untagged member of VLAN 10.

Trunk ports and allow-pass

A trunk carries multiple VLANs between switches (or to a router-on-a-stick). Frames for allowed VLANs are sent tagged with the VLAN ID (except often the PVID/native-like untagged VLAN, depending on config).

  • Core commands: [Huawei] interface GigabitEthernet0/0/24
  • [Huawei-GigabitEthernet0/0/24] port link-type trunk
  • [Huawei-GigabitEthernet0/0/24] port trunk allow-pass vlan 10 20 30
  • Allow all VLANs (convenient but less secure): [Huawei-GigabitEthernet0/0/24] port trunk allow-pass vlan all
  • Or add/remove selectively: [Huawei-GigabitEthernet0/0/24] port trunk allow-pass vlan 40
  • [Huawei-GigabitEthernet0/0/24] undo port trunk allow-pass vlan 40
  • The #1 trunk exam trap: forgetting allow-pass

You create VLAN 20 on both switches, put servers in VLAN 20, and configure port link-type trunk on the uplink—but you never add VLAN 20 to port trunk allow-pass vlan . Result: VLAN 20 traffic does not cross the trunk. Symptoms look like “hosts can’t reach gateway” or “MAC of server never appears on the far switch.” Fix: allow the VLAN on both ends of the trunk and confirm with display port vlan / display trunkmembership style outputs available on the platform.

PVID on trunks

Trunks still have a default VLAN / PVID . Untagged frames on a trunk are mapped to that PVID. Mismatched PVIDs on two ends of a trunk can cause subtle VLAN hopping-style confusion or management issues. For HCIA, remember: tagged data VLANs must be allowed ; treat PVID consistency as a professional habit.

Optional trunk PVID example: [Huawei-GigabitEthernet0/0/24] port trunk pvid vlan 1

(Exact keyword may appear as port trunk pvid vlan depending on software; labs reinforce the concept of trunk native/default VLAN.)

Hybrid ports: Huawei-specific power tool

Hybrid ports combine flexibility that pure access and pure trunk lack: you can specify, per VLAN , whether egress frames are tagged or untagged .

Typical pattern—PC + IP phone on one cable:

Data VLAN 10 untagged (PC expects no tag).

Voice VLAN 30 tagged (phone understands 802.1Q).

  • Conceptual configuration shape: [Huawei] interface GigabitEthernet0/0/5
  • [Huawei-GigabitEthernet0/0/5] port link-type hybrid
  • [Huawei-GigabitEthernet0/0/5] port hybrid pvid vlan 10
  • [Huawei-GigabitEthernet0/0/5] port hybrid untagged vlan 10
  • [Huawei-GigabitEthernet0/0/5] port hybrid tagged vlan 30

Interpretation:

Untagged frames from the PC → PVID 10.

Egress VLAN 10 → untagged toward the PC.

Egress VLAN 30 → tagged toward the phone.

Hybrid is also used when a device must receive one VLAN untagged while a switch uplink still needs other VLANs tagged—edge cases where “access” is too narrow and “trunk” would tag everything the host cannot parse.

Hybrid vs trunk (exam comparison)

  • Topic Trunk Hybrid
  • Multi-VLAN Yes Yes
  • Per-VLAN untag control Limited (mainly PVID/native idea) Explicit tagged vs untagged lists
  • Common peer Another switch/router Host multi-service, special edge
  • allow-pass analog port trunk allow-pass vlan hybrid tagged/untagged membership

Do not claim hybrid is “just like Cisco trunk.” The exam rewards Huawei wording: hybrid can untag multiple VLANs’ egress according to configuration, which is the operational distinction students must articulate.

Tagging rules cheat sheet

  • Scenario What happens
  • Access port, host → switch Untagged; switch assigns PVID
  • Access port, switch → host Strip tag; host sees untagged
  • Trunk, allowed VLAN Tag with VLAN ID (except untagged PVID case)
  • Trunk, VLAN not allowed Frame not forwarded on that trunk for that VLAN
  • Hybrid untagged VLAN Egress without tag
  • Hybrid tagged VLAN Egress with 802.1Q tag
  • End-to-end path example

Access SW1 G0/0/1: access, PVID 10, PC-A.

Access SW1 G0/0/24: trunk, allow 10,20.

Aggregation SW2 G0/0/24: trunk, allow 10,20.

SW2 G0/0/2: access, PVID 10, PC-B.

PC-A to PC-B:

PC-A sends untagged frames → SW1 classifies VLAN 10.

SW1 tags VLAN 10 on the trunk toward SW2.

SW2 accepts tag 10 (allowed), strips on access toward PC-B.

MAC learning of A and B occurs in VLAN 10 on both switches.

  • If either trunk omits VLAN 10 from allow-pass, the path breaks even though both access ports are “in VLAN 10.”
  • Verification and troubleshooting order

display vlan — VLAN exists.

display port vlan / interface config — link-type and membership correct.

Confirm allow-pass (trunk) or hybrid tagged/untagged lists on every hop.

display mac-address vlan 10 — does the remote MAC appear?

Check physical up/up and STP forwarding (next chapter domain).

Common misconfigurations

Access port left in VLAN 1 while addressing assumes VLAN 10.

Trunk configured but allow-pass still default-only subset.

Hybrid PVID not included in untagged list (or mismatched).

One side access, other side trunk without understanding tags—host may not process tagged frames.

Assuming port link-type trunk alone allows every VLAN forever without checking actual allow lists after VLAN creation.

Transition to routing

Access, trunk, and hybrid keep traffic inside the correct VLANs. Users in VLAN 10 still cannot reach VLAN 20 until a Layer 3 device routes between those subnets. Huawei campus designs usually use VLANIF interfaces on a multilayer switch; classic router-on-a-stick uses trunked sub-interfaces. That is the next section.