41
100 bytes from 10.1.1.1: Sequence=1 time=1 ms
100 bytes from 10.1.1.1: Sequence=2 time=1 ms
100 bytes from 10.1.1.1: Sequence=3 time=1 ms
100 bytes from 10.1.1.1: Sequence=4 time=1 ms
100 bytes from 10.1.1.1: Sequence=5 time=1 ms
--- FEC: 11.1.1.0/24 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max = 1/1/1 ms
159B
Label acceptance control configuration example
347B
Network requirements
Two links, Switch A—Switch B—Switch C and Switch A—Switch D—Switch C, exist between
subnets 11.1.1.0/24 and 21.1.1.0/24.
Configure LDP to establish LSPs only for routes to subnets 11.1.1.0/24 and 21.1.1.0/24.
Configure LDP to establish LSPs only on the link Switch A—Switch B—Switch C to forward traffic
between subnets 11.1.1.0/24 and 21.1.1.0/24.
Figure 18 Network diagram
348B
Requirements analysis
•
To ensure that the LSRs establish IPv4 LSPs automatically, enable IPv4 LDP on each LSR.
•
To establish IPv4 LDP LSPs, configure an IPv4 routing protocol to ensure IP connectivity
between the LSRs. This example uses OSPF.
•
To ensure that LDP establishes IPv4 LSPs only for the routes 11.1.1.0/24 and 21.1.1.0/24,
configure IPv4 LSP generation policies on each LSR.
•
To ensure that LDP establishes IPv4 LSPs only over the link Switch A—Switch B—Switch C,
configure IPv4 label acceptance policies as follows:
{
Switch A accepts only the label mapping for FEC 21.1.1.0/24 received from Switch B.
Switch A denies the label mapping for FEC 21.1.1.0/24 received from Switch D.
{
Switch C accepts only the label mapping for FEC 11.1.1.0/24 received from Switch B.
Switch C denies the label mapping for FEC 11.1.1.0/24 received from Switch D.