44
Figure 19 Network diagram
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 Router A—Router B—Router C,
configure IPv4 label acceptance policies 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 received from Router B.
Router C denies the label mapping for FEC 11.1.1.0/24 received from Router D.
Configuration procedure
1.
Configure IP addresses and masks for interfaces, including the loopback interfaces, as shown
in
. (Details not shown.)
2.
Configure OSPF on each router to ensure IP connectivity between them. (Details not shown.)
3.
Enable MPLS and IPv4 LDP:
# Configure Router A.
<RouterA> system-view
[RouterA] mpls lsr-id 1.1.1.9
[RouterA] mpls ldp
[RouterA-ldp] quit
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] mpls enable
[RouterA-Serial2/1/0] mpls ldp enable
[RouterA-Serial2/1/0] quit
[RouterA] interface serial 2/1/1
[RouterA-Serial2/1/1] mpls enable
[RouterA-Serial2/1/1] mpls ldp enable
[RouterA-Serial2/1/1] quit
Router A
Router B
Router C
Loop0
1.1.1.9/32
Loop0
3.3.3.9/32
Ser2/1/0
10.1.1.1/24
Ser2/1/1
20.1.1.1/24
Ser2/1/0
10.1.1.2/24
Ser2/1/0
20.1.1.2/24
11.1.1.0/24
21.1.1.0/24
GE2/0/1
11.1.1.1/24
GE2/0/1
21.1.1.1/24
Router D
Loop0
4.4.4.9/32
Loop0
2.2.2.9/32
Ser2/1/1
30.1.1.1/24
Ser2/1/1
40.1.1.2/24
Ser2/1/0
30.1.1.2/24
Ser2/1/1
40.1.1.1/24
Содержание HPE FlexNetwork MSR Router Series
Страница 10: ...viii Index 540 ...