The H3C GB0-382 exam (Advanced Routing & Switching Technology 2) is the routing exam of the H3CSE-RS+ certification. It tests how you design and run routing in large networks: route selection and the FIB, load sharing and backup, route aggregation, OSPF, IS-IS, route filtering and route-policy, route import, policy-based routing, BGP and IPv6 routing, including SRv6. The exam has 50 questions in 60 minutes, and you need 600 out of 1000 points to pass. This GB0-382 study guide walks through every section of the official syllabus with Comware configuration snippets. Each section also has a short Python script that works through the decision the exam asks you to make.
GB0-382 at a glance
| Item | Detail |
|---|---|
| Exam code | GB0-382 |
| Exam name | Advanced Routing & Switching Technology 2 |
| Certification | H3CSE-RS+ (H3C Certified Senior Engineer for Routing & Switching Plus) |
| Questions | 50: single choice, multiple choice, true/false and fill-in-the-blank |
| Duration | 60 minutes |
| Passing score | 600 / 1000 |
| Price | US $135 (confirm the local price when you book) |
| Registration | Prometric, per the exam syllabus; H3C also handles bookings through certification@h3c.com and local offices |
| Prerequisite for the certificate | A valid H3CNE-RS+ certificate (anyone can sit the exam itself) |
| Other H3CSE-RS+ exams | GB0-372 Advanced Routing & Switching Technology 1, GB0-392 Network Security Optimization |
| Validity | 3 years, then retake the H3CSE-RS+ exams |
The official H3CSE-RS+ certification page explains the three-course path, the prerequisite and the recertification rule, and links a free GB0-382 mock exam. The official GB0-382 exam syllabus (PDF) lists every knowledge point. It also says that a few questions may go beyond the course material. The GB0-382 syllabus shows the same objectives next to the exam details in one table, which works well as a checklist.
The seven sections
| Section | What it covers |
|---|---|
| Large-scale routing overview | Enterprise network models (IToIP, SOA, hierarchical), and the reliability, scalability, manageability and fast-recovery requirements of large routed networks |
| Routing basics | Control and forwarding planes; routing table, FIB and fast forwarding table; static routes; distance-vector, link-state and path-vector protocols; load sharing and backup; floating static routes; aggregation and CIDR |
| OSPF | SPF, areas, network types, router ID, neighbor states, LSDB sync, DR election, cost and timers, default routes, LSA types, virtual links, stub/NSSA, summarization, authentication, filtering |
| IS-IS | NSAP and NET, Level-1/Level-2 routers, PDUs and TLVs (CLVs), DIS, LSDB sync, multi-area, route leaking, comparison with OSPF |
| IGP route control | Silent interfaces, prefix lists, filter-policy, route-policy, one-way and two-way route import, policy-based routing |
| BGP | Messages and state machine, attributes, route selection, preferred-value, LOCAL_PREF, MED, next-hop-local, AS path filters, peer groups, communities, aggregation, route reflection, confederation, route dampening, multi-homing |
| IPv6 | Neighbor Discovery, stateless autoconfiguration, OSPFv3, IPv6 IS-IS, BGP4+, 6to4 and ISATAP tunnels, NAT-PT, SRv6 basics |
H3C does not publish section weights. OSPF, IS-IS and BGP make up most of the syllabus text, so they deserve most of your time. IGP route control appears in almost every scenario question.
Routing basics: how a route is chosen
Every exam scenario comes back to one decision. The router finds every route that matches the destination and keeps the longest prefix. If several protocols offer that same prefix, the lowest preference wins. If one protocol offers several paths, the lowest cost wins, and equal costs become load sharing. The routing table is the control plane's view. The FIB is what the forwarding plane actually uses.
Comware default preferences you should know by heart:
| Route source | Default preference |
|---|---|
| Direct | 0 |
| OSPF (intra-area and inter-area) | 10 |
| IS-IS | 15 |
| Static | 60 |
| RIP | 100 |
| OSPF ASE and OSPF NSSA | 150 |
| IBGP and EBGP | 255 |
A floating static route is a static route with its preference set higher than the primary route's, so it only enters the FIB when the primary disappears:
ip route-static 0.0.0.0 0 10.0.99.9 preference 70
display ip routing-table 0.0.0.0 0 verbose
# Route selection: longest prefix match first, then preference (Comware defaults), then cost
import ipaddress
PREF = {"Direct": 0, "OSPF": 10, "IS-IS": 15, "Static": 60, "RIP": 100,
"O_ASE": 150, "O_NSSA": 150, "IBGP": 255, "EBGP": 255}
rib = [ # prefix, protocol, preference override (None = default), cost, next hop
("10.1.0.0/16", "OSPF", None, 20, "10.0.12.2"),
("10.1.0.0/16", "Static", None, 0, "10.0.13.3"),
("10.1.20.0/24", "IS-IS", None, 30, "10.0.14.4"),
("0.0.0.0/0", "OSPF", None, 1, "10.0.12.2"),
("0.0.0.0/0", "Static", 70, 0, "10.0.99.9"), # floating static backup
]
def lookup(dst, routes):
dst = ipaddress.ip_address(dst)
hits = [r for r in routes if dst in ipaddress.ip_network(r[0])]
longest = max(ipaddress.ip_network(r[0]).prefixlen for r in hits)
hits = [r for r in hits if ipaddress.ip_network(r[0]).prefixlen == longest]
return min(hits, key=lambda r: (r[2] if r[2] is not None else PREF[r[1]], r[3]))
for d in ["10.1.20.7", "10.1.5.9", "8.8.8.8"]:
p, proto, pref, cost, nh = lookup(d, rib)
print(f"{d:10} -> {p:13} via {nh:10} ({proto}, pref {pref or PREF[proto]}, cost {cost})")
# OSPF default route fails: only the floating static is left
backup = [r for r in rib if not (r[0] == "0.0.0.0/0" and r[1] == "OSPF")]
print("after OSPF default lost:", lookup("8.8.8.8", backup)[4])
Output:
10.1.20.7 -> 10.1.20.0/24 via 10.0.14.4 (IS-IS, pref 15, cost 30)
10.1.5.9 -> 10.1.0.0/16 via 10.0.12.2 (OSPF, pref 10, cost 20)
8.8.8.8 -> 0.0.0.0/0 via 10.0.12.2 (OSPF, pref 10, cost 1)
after OSPF default lost: 10.0.99.9
The first line is the classic trap. The IS-IS route has a worse preference than OSPF, but it still wins because its /24 is more specific than the /16.
Route aggregation and CIDR
Aggregation makes routing tables smaller and hides flapping subnets. The risk is that a summary can claim address space the router does not actually reach. Traffic to those addresses is then sent toward the summary and dropped, or it loops if a default route points back. That is why a summarizing router normally installs a discard (NULL0) route for the summary.
# Route aggregation: smallest summary that covers a set of prefixes, and what it over-claims
import ipaddress
nets = [ipaddress.ip_network(n) for n in
["172.16.16.0/24", "172.16.17.0/24", "172.16.18.0/24", "172.16.19.0/24", "172.16.21.0/24"]]
def summary(nets):
s = nets[0]
while not all(n.subnet_of(s) for n in nets):
s = s.supernet()
return s
s = summary(nets)
print("summary:", s)
covered = set(nets)
extra = [n for n in s.subnets(new_prefix=24) if n not in covered]
print("not really behind this router:", ", ".join(map(str, extra)))
print("exact list:", ", ".join(map(str, ipaddress.collapse_addresses(nets))))
Output:
summary: 172.16.16.0/21
not really behind this router: 172.16.20.0/24, 172.16.22.0/24, 172.16.23.0/24
exact list: 172.16.16.0/22, 172.16.21.0/24
Exam questions usually give four to eight subnets and ask for the best summary, or ask which address a summary wrongly covers. Doing the binary by hand for the octet that changes is the fastest method in the exam room.
OSPF
OSPF is the largest section. You need the following:
- Neighbor states: Down, Init, 2-Way, ExStart, Exchange, Loading, Full.
- DR and BDR election: highest priority, then highest router ID. Election is not preemptive. Priority 0 means the router never becomes DR.
- Network types: broadcast, NBMA, P2P and P2MP, and which ones elect a DR.
- Area design rules, LSA types and special areas, covered below.
| LSA | Name | Generated by | Flooding scope |
|---|---|---|---|
| Type 1 | Router LSA | Every router | Its area |
| Type 2 | Network LSA | DR | Its area |
| Type 3 | Network Summary LSA | ABR | Areas other than the source area |
| Type 4 | ASBR Summary LSA | ABR | Areas other than the ASBR's area |
| Type 5 | AS External LSA | ASBR | Whole AS except stub, totally stub and NSSA areas |
| Type 7 | NSSA External LSA | ASBR inside an NSSA | The NSSA only; the ABR translates it to Type 5 |
| Area type | Type 3 | Type 4/5 | Type 7 | Default route |
|---|---|---|---|---|
| Normal | Yes | Yes | No | Only if configured |
| Stub | Yes | No | No | Type 3 default from ABR |
Totally stub (stub no-summary) |
Default only | No | No | Type 3 default from ABR |
| NSSA | Yes | No | Yes | Optional (nssa default-route-advertise) |
Totally NSSA (nssa no-summary) |
Default only | No | Yes | Type 3 default from ABR |
A basic multi-area configuration on an ABR:
ospf 1 router-id 2.2.2.2
bandwidth-reference 10000
area 0.0.0.0
network 10.0.12.0 0.0.0.3
area 0.0.0.1
network 10.1.0.0 0.0.255.255
abr-summary 10.1.0.0 255.255.0.0
stub
display ospf peer
display ospf lsdb
The cost of an interface is the bandwidth-reference divided by the interface bandwidth, with a minimum of 1. With the default reference of 100 Mbps, a 100 Mbps link and a 10 GE link both cost 1, so OSPF cannot tell them apart:
# OSPF cost = bandwidth-reference / interface bandwidth (minimum 1), then SPF from R1
import heapq
links = [("R1", "R2", 1000), ("R2", "R4", 1000), # 1 GE path
("R1", "R3", 100), ("R3", "R4", 100)] # 100 M path
def spf(ref_mbps, src="R1"):
graph = {}
for a, b, bw in links:
c = max(1, ref_mbps // bw)
graph.setdefault(a, []).append((b, c))
graph.setdefault(b, []).append((a, c))
dist, paths, pq = {src: 0}, {src: [[src]]}, [(0, src)]
while pq:
d, n = heapq.heappop(pq)
if d > dist[n]:
continue
for m, c in graph[n]:
nd = d + c
if nd < dist.get(m, 1e9):
dist[m], paths[m] = nd, [p + [m] for p in paths[n]]
heapq.heappush(pq, (nd, m))
elif nd == dist[m]: # equal cost: keep both (ECMP)
paths[m] += [p + [m] for p in paths[n]]
return dist, paths
for ref in (100, 10000): # Comware default is 100 Mbps
dist, paths = spf(ref)
via = " and ".join("-".join(p) for p in paths["R4"])
print(f"bandwidth-reference {ref:5}: R1->R4 cost {dist['R4']:3} via {via}")
Output:
bandwidth-reference 100: R1->R4 cost 2 via R1-R2-R4 and R1-R3-R4
bandwidth-reference 10000: R1->R4 cost 20 via R1-R2-R4
With the default reference, OSPF load-shares between a gigabit path and a 100 Mbps path. Raising the reference on every router fixes that. If you change it on only some routers, the costs in the network become inconsistent.
Other OSPF points that come up often:
- A virtual link always passes through a transit area, and the transit area cannot be a stub area.
- External routes compare Type 1 before Type 2. Type 2 metrics ignore the internal cost.
-
filter-policy importonly filters what enters the local routing table; the LSAs are still flooded.filteron an ABR blocks Type 3 LSAs. - Area authentication must match on every router in the area.
IS-IS
IS-IS runs directly over the data link layer rather than over IP, and uses a NET to identify the router. The NET has three parts: an area ID, a 6-byte system ID that is unique in the domain, and an NSEL of 00. A common convention builds the system ID from the loopback address:
# IS-IS NET from a loopback address: area + system ID + NSEL
def net_from_ip(area, ip):
digits = "".join(f"{int(o):03d}" for o in ip.split(".")) # 192.168.0.1 -> 192168000001
system_id = ".".join(digits[i:i + 4] for i in range(0, 12, 4))
return f"{area}.{system_id}.00"
for rid in ["1.1.1.1", "192.168.0.1", "10.0.0.254"]:
print(f"{rid:12} -> network-entity {net_from_ip('49.0001', rid)}")
Output:
1.1.1.1 -> network-entity 49.0001.0010.0100.1001.00
192.168.0.1 -> network-entity 49.0001.1921.6800.0001.00
10.0.0.254 -> network-entity 49.0001.0100.0000.0254.00
isis 1
is-level level-1-2
network-entity 49.0001.0010.0100.1001.00
cost-style wide
import-route isis level-2 into level-1
#
interface GigabitEthernet1/0/1
isis enable 1
display isis peer
display isis lsdb
| Topic | OSPF | IS-IS |
|---|---|---|
| Runs over | IP (protocol 89) | Data link layer (CLNP PDUs) |
| Area boundary | On a router (ABR) | On a link; each router sits in one area |
| Backbone | Area 0 | Contiguous chain of Level-2 capable routers |
| Designated router | DR and BDR, non-preemptive | DIS only, preemptive, no backup |
| Broadcast hellos | 10 s by default | 10 s by default, 3.3 s on the DIS |
| Default route into area | Stub or NSSA settings | ATT bit from a Level-1-2 router |
| Extensibility | New LSA types | New TLVs (CLVs) |
Level-1 routers only know their own area and send other traffic to the nearest Level-1-2 router, which can cause suboptimal routing. Route leaking (import-route isis level-2 into level-1) fixes that. Use cost-style wide when you need costs above 63 or traffic engineering.
IGP route control
This section is about controlling which routes are advertised, accepted and imported.
- Silent interface (
silent-interface): advertises the subnet but sends no hellos. - Prefix list: matches the prefix and a length range with
greater-equalandless-equal. Every list ends with an implicit deny. - Filter-policy: filters routes as they are advertised or received. With link-state protocols, it does not stop LSAs from being flooded.
- Route-policy: an ordered list of nodes, each either
permitordeny. Within a node, allif-matchclauses must match, which is a logical AND. A route that matches no node is denied. - Route import: in a two-way import, routes can loop back into the protocol they came from. Tag the routes when you import them and deny that tag on the way back, or raise the preference of the external routes.
- PBR: forwards traffic by source, application or other criteria before the normal routing lookup, and only on the interface where it is applied.
ip prefix-list PL-BRANCH index 10 permit 172.16.0.0 16 greater-equal 24 less-equal 24
#
route-policy RIP-TO-OSPF deny node 10
if-match tag 100
route-policy RIP-TO-OSPF permit node 20
if-match ip address prefix-list PL-BRANCH
apply tag 200
#
ospf 1
import-route rip 1 route-policy RIP-TO-OSPF
BGP
BGP is a path-vector protocol that runs over TCP port 179. Learn the following:
- The five message types: Open, Update, Notification, Keepalive and Route-refresh.
- The state machine: Idle, Connect, Active, OpenSent, OpenConfirm, Established.
- The IBGP split-horizon rule, which is why route reflectors and confederations exist.
- Selection order: Comware checks attributes in a fixed sequence, and the first difference decides.
| Order | Attribute | Better | Scope |
|---|---|---|---|
| 1 | Preferred-value (H3C-specific) | Higher | Local to the router |
| 2 | LOCAL_PREF | Higher | Inside the AS |
| 3 | Route origin (locally generated first) | Locally generated | Local |
| 4 | AS_PATH | Shorter | Global |
| 5 | ORIGIN | IGP, then EGP, then incomplete | Global |
| 6 | MED | Lower (compared between routes from the same AS by default) | Between neighboring ASs |
| 7 | Peer type | EBGP over IBGP | Local |
| 8 | IGP metric to next hop | Lower | Local |
| 9 | Router ID | Lower | Local |
# Simplified BGP best-path selection in Comware order
routes = [
dict(peer="ISP-A", pv=0, lp=100, as_path=[65010, 65020], origin="igp", med=50, ebgp=True, igp=0, rid="2.2.2.2"),
dict(peer="ISP-B", pv=0, lp=100, as_path=[65030], origin="igp", med=80, ebgp=True, igp=0, rid="3.3.3.3"),
dict(peer="RR-1", pv=0, lp=100, as_path=[65030], origin="igp", med=20, ebgp=False, igp=10, rid="1.1.1.9"),
]
ORIGIN = {"igp": 0, "egp": 1, "incomplete": 2}
def key(r):
rid = tuple(int(x) for x in r["rid"].split("."))
return (-r["pv"], -r["lp"], len(r["as_path"]), ORIGIN[r["origin"]],
r["med"], 0 if r["ebgp"] else 1, r["igp"], rid)
def best(routes):
return min(routes, key=key)["peer"]
print("default:", best(routes)) # shorter AS_PATH, then lower MED
routes[0]["lp"] = 200 # route-policy: apply local-preference 200
print("LOCAL_PREF 200 on ISP-A:", best(routes))
routes[1]["pv"] = 10 # peer ISP-B preferred-value 10
print("preferred-value 10 on ISP-B:", best(routes))
Output:
default: RR-1
LOCAL_PREF 200 on ISP-A: ISP-A
preferred-value 10 on ISP-B: ISP-B
The first result surprises many candidates. RR-1 is an IBGP route, but its MED of 20 beats ISP-B's 80. Both routes come from AS 65030, and MED is checked before the EBGP-over-IBGP rule. The last line shows that preferred-value overrides even a higher LOCAL_PREF. Preferred-value is local to one router, so the change does not affect anyone else.
bgp 65001
router-id 1.1.1.1
group IBGP internal
peer IBGP connect-interface LoopBack0
peer 2.2.2.2 group IBGP
peer 10.1.1.2 as-number 65010
#
address-family ipv4 unicast
network 192.168.0.0 255.255.0.0
peer IBGP enable
peer IBGP next-hop-local
peer IBGP reflect-client
peer 10.1.1.2 enable
peer 10.1.1.2 route-policy SET-LP import
#
route-policy SET-LP permit node 10
apply local-preference 200
display bgp peer ipv4
display bgp routing-table ipv4
For large BGP networks, know what each tool solves:
- Peer groups: one configuration for many peers.
- Communities: tag routes so that policies can match many prefixes at once. The well-known communities are no-export, no-advertise and no-export-subconfed.
- Aggregation:
aggregatewithdetail-suppressedadvertises only the summary. - Route reflectors: remove the need for a full IBGP mesh. Clusters are identified by cluster ID, and the ORIGINATOR_ID and CLUSTER_LIST attributes prevent loops.
- Confederations: split one AS into sub-ASs.
- Dampening: suppresses flapping EBGP routes.
IPv6 technologies
IPv6 Neighbor Discovery uses ICMPv6 messages and replaces ARP:
- Neighbor Solicitation (NS) and Neighbor Advertisement (NA) handle address resolution and duplicate address detection.
- Router Solicitation (RS) and Router Advertisement (RA) handle stateless autoconfiguration.
- Redirect messages point a host at a better first hop.
The routing protocols map one to one:
- OSPFv3 runs per link and uses the router ID, not addresses, to identify neighbors.
- IPv6 IS-IS adds new TLVs to the same protocol.
- BGP4+ carries IPv6 in the MP-BGP address family.
# IPv6: EUI-64 interface ID (SLAAC), 6to4 prefix and ISATAP address
import ipaddress
def eui64(prefix, mac):
b = bytearray(int(x, 16) for x in mac.split(":"))
b[0] ^= 0x02 # flip the universal/local bit
iid = bytes(b[:3]) + b"\xff\xfe" + bytes(b[3:])
net = ipaddress.IPv6Network(prefix)
return ipaddress.IPv6Address(int(net.network_address) | int.from_bytes(iid, "big"))
print("SLAAC :", eui64("2001:db8:10:1::/64", "00:e0:fc:12:34:56"))
v4 = ipaddress.IPv4Address("203.0.113.5")
sixto4 = ipaddress.IPv6Network(((0x2002 << 112) | (int(v4) << 80), 48))
print("6to4 :", sixto4)
isatap = ipaddress.IPv6Address((int(ipaddress.IPv6Address("2001:db8:20::")) | (0x5efe << 32) | int(v4)))
print("ISATAP:", isatap)
Output:
SLAAC : 2001:db8:10:1:2e0:fcff:fe12:3456
6to4 : 2002:cb00:7105::/48
ISATAP: 2001:db8:20::5efe:cb00:7105
| Transition method | How it works | Typical use |
|---|---|---|
| 6to4 tunnel | Automatic; the site prefix 2002:IPv4::/48 embeds the tunnel endpoint | Connect IPv6 sites over an IPv4 network |
| ISATAP tunnel | Automatic; interface ID ::5efe:IPv4 embeds the host's IPv4 address | IPv6 hosts inside an IPv4 campus |
| NAT-PT | Translates between IPv6 and IPv4 headers | IPv6-only hosts reaching IPv4-only servers |
| SRv6 | The source puts a list of IPv6 segment IDs (SIDs) in the Segment Routing Header | Traffic engineering and VPN over a native IPv6 underlay |
Study plan for GB0-382
| Week | Focus | Practice |
|---|---|---|
| 1 | Routing basics, aggregation, OSPF principles and LSAs | Summarize subnet sets by hand; draw which LSA reaches which area type |
| 2 | OSPF configuration and optimization, IS-IS | Multi-area OSPF lab with stub and NSSA; IS-IS Level-1/2 lab with route leaking |
| 3 | IGP route control and route import | Two-way import between RIP and OSPF with tags; find the loop without tags |
| 4 | BGP and IPv6, then review | Change one BGP attribute at a time and predict the best path; OSPFv3 and 6to4 lab |
Use HCL, H3C's free network simulator, or real Comware devices for the labs, and read the display output after every change. H3C's GB0-382 mock exam on the certification page is a good first test of your progress. When you can explain every objective, try the GB0-382 sample questions on NWExam to get used to the question style. Then go back to any section where you hesitated.
Common traps
- Mixing up preference and cost: preference compares protocols, cost compares paths inside one protocol. Longest prefix match happens before both.
- Thinking a filter-policy on an OSPF internal router stops LSAs: it only filters routes from the local routing table.
- Expecting the DR to change when a router with a higher priority joins: OSPF DR election is not preemptive. The IS-IS DIS is.
- Forgetting that neither a stub area nor an NSSA can be a virtual link's transit area, and that only an NSSA (not a stub area) can contain an ASBR.
- Comparing MED between routes from different ASs: by default it is only compared between routes from the same neighboring AS.
- Missing
next-hop-localtoward IBGP peers: the EBGP next hop is kept, and IBGP routes stay unusable if that next hop is unreachable. - Forgetting the implicit deny at the end of a prefix list or route-policy.
FAQ
How hard is the GB0-382 exam?
It is a senior-level exam with 50 questions in 60 minutes, so you have just over a minute per question. Many questions are scenarios that combine two topics, such as route import with route-policy, or OSPF area types with default routes. Hands-on lab practice matters more than memorizing definitions.
Do I need H3CNE-RS+ before taking GB0-382?
Not to sit the exam: the syllabus says there are no special requirements for candidates. To receive the H3CSE-RS+ certificate, though, you need a valid H3CNE-RS+ certificate and passes in GB0-372, GB0-382 and GB0-392.
Which order should I take the three H3CSE-RS+ exams in?
H3C recommends the courses in the order GB0-372, GB0-382, GB0-392. GB0-382 builds on the switching and campus topics of GB0-372. GB0-392 then adds VPN, QoS, VXLAN and EVPN on top of the routing covered here.
Is SRv6 tested in depth?
The syllabus asks only for SRv6 protocol principles and basic configuration. Know what a SID is, what the Segment Routing Header carries, and how SRv6 differs from MPLS-based segment routing. Spend most of your IPv6 time on Neighbor Discovery, OSPFv3, BGP4+ and tunnels.
How long is the H3CSE-RS+ certificate valid?
Three years. When it expires, you must retake the H3CSE-RS+ certification exams.
Exam-day checklist
- Confirm the Prometric or H3C booking, the test center address and the start time
- Bring the ID that matches your registration name
- Recite the Comware default preferences and the BGP selection order once
- Redraw the LSA-versus-area-type table from memory
- Remember the OSPF cost rule: bandwidth-reference / bandwidth, minimum 1
- Practice one route summary by hand to warm up
- Budget about 70 seconds per question and mark long scenarios for review
- Answer every question; check whether multiple-choice items need more than one answer