TechNetBuddy

What the exam expects

IP routing is the largest HCIA-Datacom area: how a router chooses a route (longest match first, then preference, then cost), static routes and their backups, and OSPF in one area, including how neighbours form and how the DR is elected.

The routing table

display ip routing-table lists each destination with its protocol (Direct, Static, OSPF, O_ASE…), preference and cost. The most specific route wins; among equally specific routes from different sources the lowest preference wins (Huawei defaults: direct 0, OSPF 10, static 60, RIP 100, OSPF external 150, BGP 255). Equal routes from one source share the load.

Static and floating static routes

ip route-static 192.168.2.0 24 10.0.12.2 sends a network to a next hop; ip route-static 0.0.0.0 0 … is a default route. Add preference 100 to a second route and it waits behind the first, taking over when the first next hop becomes unreachable: a floating static route. Every path needs a route back, so troubleshoot both directions.

OSPF in one area

ospf 1 router-id 1.1.1.1, then area 0 and network 10.0.12.0 0.0.0.3 (a wildcard, not a mask) enable OSPF on matching interfaces. Neighbours exchange hellos and must agree on area, hello/dead timers, mask, area type and authentication. On a broadcast segment the highest ospf dr-priority (then router ID) becomes DR, the next BDR; priority 0 never takes part. Cost is reference bandwidth (100 Mbit/s by default) divided by interface bandwidth, or set with ospf cost. default-route-advertise sends a default route into the area.

Troubleshooting OSPF

Start with display ospf peer brief. A neighbour that never reaches Full usually disagrees on a hello parameter: display ospf error counts the reasons. Check both ends with display ospf interface and display this.

Commands at a glance

[R1] ip route-static 192.168.2.0 24 10.0.12.2
[R1] ip route-static 192.168.2.0 24 10.0.13.3 preference 100
[R1] ospf 1 router-id 1.1.1.1
[R1-ospf-1] area 0
[R1-ospf-1-area-0.0.0.0] network 10.0.12.0 0.0.0.3
<R1> display ospf peer brief

Not modelled in the simulator: OSPF timers and the neighbour state machine are not run in real time: adjacencies form or fail at once.