Setting Up LDP Forwarding
SUMMARY STEPS
1. configure
2. mpls ldp
3. [vrf vrf-name] address-family {ipv4 }
4. label local advertise explicit-null
5. Use the commit or end command.
6. (Optional) show mpls ldp forwarding
7. (Optional) show mpls ldp vrf all forwarding
8. (Optional) show mpls ldp vrf all forwarding summary
9. (Optional) show mpls ldp vrf vrf-name ipv4 forwarding
10. (Optional) show mpls ldp forwarding summary all
11. (Optional) clear mpls ldp vrf vrf-name ipv4 forwarding
12. (Optional) show mpls forwarding
13. (Optional) ping ip-address
DETAILED STEPS
Command or Action
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Step 2
mpls ldp
Example:
RP/0/RP0/CPU0:router(config)# mpls ldp
Step 3
[vrf vrf-name] address-family {ipv4 }
Example:
RP/0/RP0/CPU0:router(config-ldp)#
address-family ipv4
or
Step 4
label local advertise explicit-null
Example:
RP/0/RP0/CPU0:router(config-ldp-af)# label
local advertise explicit-null
Step 5
Use the commit or end command.
Cisco IOS XR MPLS Configuration Guide for the Cisco CRS Router, Release 5.1.x
40
Implementing MPLS Label Distribution Protocol
Purpose
Enters global configuration mode.
Enters MPLS LDP configuration mode.
(Optional) Specifies a non-default VRF.
Enables the LDP IPv4 address family.
Causes a router to advertise an explicit null label in situations
where it normally advertises an implicit null label (for example,
to enable an ultimate-hop disposition instead of PHOP).
commit—Saves the configuration changes and remains within
the configuration session.
end—Prompts user to take one of these actions: