Considerations when using ldp route injection, Ldp route injection example – Brocade Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide (Supporting R05.6.00) User Manual
Page 615
Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide
591
53-1003031-02
LDP route injection
5
The LDP route injection feature allows the user to make routes available from the customer
network through LSPs that have been created by LDP. The user can filter routes that the user wants
to allow through the MPLS network using an ACL, and then apply that ACL to the advertise-labels for
command. The routes injected are then accessible over the MPLS network.
To direct the device to inject non-loopback routes into LDP while restricting the routes injected
through reference to an ACL, enter the following command.
Brocade(config)# router mpls
Brocade(config-mpls)# ldp
Brocade(config-mpls-ldp)# advertise-labels for 30
Syntax: advertise-labels for access-list
The access-list variable refers to the number of the access list that filters for the routes the user
wants to use for label binding.
Considerations when using LDP route injection
1. The user can directly change the LDP route injection filter without deleting a previously
configured one. The change automatically applies and triggers LDP route re-injections.
2. Any change to a referenced ACL automatically applies to LDP route injection filtering and
triggers LDP route re-injection.
3. When no LDP route injection filter is configured, by default LDP acquires all local loopback
addresses.
4. When the ACL referenced by the LDP route injection filter is not configured, it is an implicit
deny. All local routes are denied.
5. Both number-based and name-based ACLs can be used. Because only prefix-based filtering is
applied, use of a standard ACL is preferred.
6. The LDP route injection filter is only applied on local route injection. Learned remote binding is
not filtered.
LDP route injection example
This example describes how to use LDP route injection to inject routes 10.2.2.2/32 and
10.5.5.2/32 into the LDP label information database.
1. The show ip interface command displays IP addresses of loopback interfaces in Router 1.
Brocade# show ip interface
Interface IP-Address OK? Method Status Protocol VRF
eth 1/1 10.0.0.1 YES NVRAM up up default
eth 1/2 10.0.1.1 YES NVRAM up up default
loopback 3 10.3.3.3 YES NVRAM up up default
loopback 5 10.5.5.5 YES manual up up default
2. By default, the LDP label information database only contains labels learned for IP addresses of
loopback interfaces, as demonstrated in this example, where only prefixes 10.3.3.3/32 and
10.5.5.5/32 are displayed by the show mpls ldp database command.