zNetLaB › Guided labs › Service Provider
Huawei VRP: OSPF and LDP between two AR routers
Service Provider Advanced 2 devices 3 checked tasks 100 points Plan lab
Two Huawei AR routers share one link. Run OSPF for the loopbacks and LDP on the link so each loopback is reached on a label. You build it in a browser, type real commands at each device, and every task below is
checked against the running configuration — so you find out it is wrong before anybody else does.
Open this lab in the simulator
The simulator runs in your browser with nothing to install. This lab is part of the full simulator: open it free for 7 days with a new account, then with a plan. It needs an account, which keeps your progress.
The scenario
Two Huawei AR routers share one link. Run OSPF for the loopbacks and LDP on the link so each loopback is reached on a label.
Your role: an engineer in the provider’s network operations centre. Level: Advanced Done when: all 3 goals show as passed (100 points).
Network status
Devices: 2 routers, cabled as drawn. No Layer 1 or Layer 2 faults: every link is connected and up. A, B start with an empty configuration.
Known problems
None: nothing is misconfigured. The network is simply not finished: what the goals list is what you have to build or secure.
Goals
A learns B loopback over OSPF (30 pts) A has an LDP LSP to B loopback (40 pts) A reaches B loopback (30 pts)
The activity, in order
A learns B loopback over OSPF LoopBack0 with a /32, the link in 10.1.0.0/24, and ospf 1 area 0 with network statements for both.Why: Each goal is a state the lab can check on the running device. Verify with: display ip routing-table A has an LDP LSP to B loopback mpls lsr-id, then mpls and mpls ldp in system view, then mpls and mpls ldp on GigabitEthernet0/0/0.Why: Each goal is a state the lab can check on the running device. Verify with: display mpls ldp lsp A reaches B loopback Ping 2.2.2.2 from A.Why: Each goal is a state the lab can check on the running device. Verify with: ping -a 1.1.1.1 2.2.2.2
Tips
Work in the order given: later goals depend on the earlier ones. After every change, run the verify command before moving on; do not guess. Stuck? Read the verify output first. It names the interface, neighbour or route that is wrong.
Why this matters
Two Huawei AR routers share one link. Run OSPF for the loopbacks and LDP on the link so each loopback is reached on a label.
What you will be able to do
A learns B loopback over OSPF
A has an LDP LSP to B loopback
A reaches B loopback
The network
Huawei AR2220 — 2 devices in all, already cabled.
Gi0/0/0 Gi0/0/0 A B Drawn from this lab: devices, cables, ports and the addresses already set.
Device Model Address already set
A Huawei AR2220 configure it
B Huawei AR2220 configure it
Cabling
A Gi0/0/0 ↔ B Gi0/0/0
What is configured at the start
Nothing is configured to start with beyond the addresses above: you build the configuration from a clean start.
Tasks, and how each one is checked
Every task is decided by reading the live network — a neighbour in FULL, a ping that succeeds, a line in the running configuration — not by looking for a keyword you typed. The same command shows you what the lab sees.
# Task Pts How to verify it yourself
1 A learns B loopback over OSPF 30 On A: show ip route lists 2.2.2.2/32.
2 A has an LDP LSP to B loopback 40 On A: display mpls ldp lsp output matches 2\.2\.2\.2/32.
3 A reaches B loopback 30 On A: ping 2.2.2.2 must succeed.
Stuck? Ask the coach
Tell the coach what you see or what you tried. It gives you a hint, not the answer, the way a senior engineer would. Included with a free trial or any plan.
Ask the coach
Reference solution
Try it yourself first — the lab checks your work either way. This is one configuration that makes every task pass, device by device:
A system-view
interface LoopBack0
ip address 1.1.1.1 32
quit
mpls lsr-id 1.1.1.1
mpls
quit
mpls ldp
quit
interface GigabitEthernet0/0/0
ip address 10.1.0.1 24
mpls
mpls ldp
undo shutdown
quit
ospf 1
area 0
network 10.1.0.1 0.0.0.255
network 1.1.1.1 0.0.0.0
quit
quit
return
B system-view
interface LoopBack0
ip address 2.2.2.2 32
quit
mpls lsr-id 2.2.2.2
mpls
quit
mpls ldp
quit
interface GigabitEthernet0/0/0
ip address 10.1.0.2 24
mpls
mpls ldp
undo shutdown
quit
ospf 1
area 0
network 10.1.0.2 0.0.0.255
network 2.2.2.2 0.0.0.0
quit
quit
return
Related labs
Where to start
The lessons are open to everyone, all guided labs are listed by track, and
plans explains what is free and what is not.
CCNA®, CCNP® and Cisco® are trademarks of Cisco Systems, Inc. zNetLaB is not affiliated with or endorsed by Cisco.
Try the simulator in your browser, no sign-up