HP MSR2000/3000/4000 Router Series MPLS Configuration Guide
33
Label acceptance control configuration example
Network requirements
Two links, Router A—Router B—Router C and Router A—Router D—Router C, exist between subnets
11.1.1. 0 / 24 a n d 21.1.1.0 / 24 .
Configure label acceptance control, so LDP sets up LSPs only on the link Router A—Router B—Router C
to forward traffic between subnets 11.1.1. 0 /24 a n d 21.1.1. 0 / 24 .
Figure 17 Network diagram
Configuration considerations
1. Configure a routing protocol on each router to make sure that the routers can reach each other.
This example uses OSPF.
2. Enable LDP on each router.
3. Configure LSP generation policies, so LDP establishes LSPs only for the routes 11.1.1.0/24 and
21.1.1.0/24.
4. Configure label acceptance policies, so LDP sets up LSPs only over the link Router A—Router
B—Router C, as follows:
{ Router A accepts only the label mapping for FEC 21.1.1.0/24 received from Router B. Router A
denies the label mapping for FEC 21.1.1.0/24 received from Router D.
{ Router C accepts only the label mapping for FEC 11.1.1. 0 / 24 re c e iv e d f ro m R o ut e r B . R o u t er C
denies the label mapping for FEC 11.1.1.0 / 24 re c e iv e d f ro m R o ut e r D.
Configuration procedure
1. Configure IP addresses and masks for interfaces, including the loopback interfaces, as shown
in Figure 17. (Details not
shown.)
2. Configure OSPF on each router to ensure IP connectivity between them. (Details not shown.)
3. Enable MPLS and LDP:
# Configure Router A.
<RouterA> system-view
[RouterA] mpls lsr-id 1.1.1.9