What the exam expects
About a third of HCIA-Datacom is foundations: the OSI and TCP/IP models, how a frame becomes a packet becomes a segment, what ARP, TCP and UDP do, IPv4 addressing and subnetting, and the basics of operating a Huawei device. You need to read a VRP prompt and know which commands belong in which view.
Layers and encapsulation
Each layer adds its own header: TCP or UDP add ports, IP adds source and destination addresses, Ethernet adds MAC addresses. A switch reads the Ethernet header, a router the IP header. When a host sends to another subnet, it puts the gateway’s MAC in the frame and the far host’s IP in the packet; ARP finds the MAC for an IP on the local segment. TCP is connection-oriented (three-way handshake, acknowledgements, retransmission); UDP sends without either.
IPv4 and subnetting
A mask splits an address into network and host parts. A /26 has 64 addresses and 62 usable hosts; the first is the network, the last the broadcast. VRP accepts either a dotted mask or a length: ip address 10.1.12.1 24. Practise until you can name the network, broadcast and host range of any address and mask without a calculator.
Working in the VRP
The user view <R1> is for display commands and saving; system-view enters [R1], and each configuration object has its own view such as [R1-GigabitEthernet0/0/1]. quit goes up one view, return goes straight back to the user view. To remove a setting, put undo in front of it. display this shows the current view’s configuration; display current-configuration the whole running configuration; save writes it to the startup file. Any unique abbreviation works (dis ip int br), ? lists the next words, and Tab completes them.
Commands at a glance
<R1> system-view
[R1] sysname R1
[R1] interface GigabitEthernet0/0/1
[R1-GigabitEthernet0/0/1] ip address 10.1.12.1 24
[R1-GigabitEthernet0/0/1] display this
[R1-GigabitEthernet0/0/1] return
<R1> save
Not modelled in the simulator: Remote Telnet/STelnet logins are stored but not simulated; TCP sessions, FTP and TFTP are not modelled.