TechNetBuddy

What the exam expects

Switching is the other large HCIA-Datacom area: how a switch learns and forwards frames, VLANs and port types, STP and RSTP, link aggregation, and stacking or modular switches.

VLANs and port types

vlan batch 10 20 creates VLANs. An access port belongs to one VLAN (port link-type access, port default vlan 10); a trunk carries several, tagged (port link-type trunk, port trunk allow-pass vlan 10 20). Both ends of a trunk must allow a VLAN, or it stops there. Huawei also has hybrid ports, which tag some VLANs and untag others. display port vlan shows each port’s type, PVID and allowed VLANs.

Inter-VLAN routing

A Layer 3 switch routes between VLANs with a Vlanif interface per VLAN, which is the hosts’ gateway. A router can do the same on one trunk link with dot1q termination sub-interfaces (router-on-a-stick); on Huawei these also need arp broadcast enable.

Spanning tree

STP elects a root bridge (lowest priority, then MAC), picks one root port per switch and one designated port per segment, and blocks the rest. Huawei switches run MSTP by default; stp mode rstp selects RSTP, which converges fast with proposal/agreement. stp root primary or stp priority 4096 chooses the root; stp edged-port enable lets a host port forward at once.

Eth-Trunk

An Eth-Trunk bundles links into one logical link, so spanning tree does not block them and traffic is shared. interface Eth-Trunk1, mode lacp (or manual), then trunkport GigabitEthernet0/0/1 to 0/0/2; VLAN settings go on the Eth-Trunk, not the members.

Modular switches: control, fabric and forwarding

Large campus and data-centre switches are chassis with slots. The control plane runs on main control boards (Huawei calls them MPUs; on the CloudEngine S8700 they are SRUs): the CLI, routing protocols and configuration. The switch fabric carries packets from one slot to another; some chassis have separate fabric boards (SFUs), while on the S8700 the fabric sits on the SRU. The forwarding plane is on the line cards (LPUs), which hold the ports and forward packets in hardware. Two main control boards run as master and slave, so the chassis survives losing either. Interface names include the slot: 10GE1/0/1 is slot 1, sub-card 0, port 1. display device lists every board and whether it is registered. A stack (several fixed switches acting as one) or a CSS (two chassis) gives the same single-device view across boxes.

Commands at a glance

[SW1] vlan batch 10 20
[SW1] interface GigabitEthernet0/0/1
[SW1-GigabitEthernet0/0/1] port link-type access
[SW1-GigabitEthernet0/0/1] port default vlan 10
[SW1] interface Vlanif10
[SW1-Vlanif10] ip address 192.168.10.1 24
[SW1] stp mode rstp
<CORE> display device

Not modelled in the simulator: Hybrid ports, MSTP instances, stacking and CSS are not modelled; spanning tree is one tree for all VLANs. The S8700-6, SFU boards of other families and fan/power failures are not modelled.