61
•
To establish IPv6 LDP LSPs, configure an IPv6 routing protocol to ensure IP connectivity
between the LSRs. This example uses OSPFv3.
•
To ensure that LDP establishes IPv6 LSPs only for the routes 11::0/64 and 21::0/64, configure
IPv6 LSP generation policies on each LSR.
•
To ensure that LDP establishes IPv6 LSPs only over the link Router A—Router B—Router C,
configure IPv6 label acceptance policies as follows:
{
Router A accepts only the label mapping for FEC 21::0/64 received from Router B. Router A
denies the label mapping for FEC 21::0/64 received from Router D.
{
Router C accepts only the label mapping for FEC 11::0/64 received from Router B. Router C
denies the label mapping for FEC 11::0/64 received from Router D.
Configuration procedure
1.
Configure IPv6 addresses and masks for interfaces, including the loopback interfaces, as
shown in
. (Details not shown.)
2.
Configure OSPFv3 on each router to ensure IP connectivity between them. (Details not shown.)
3.
Enable MPLS and IPv6 LDP:
# Configure Router A.
<RouterA> system-view
[RouterA] mpls lsr-id 1.1.1.9
[RouterA] mpls ldp
[RouterA-ldp] quit
[RouterA] interface serial 1/1/0
[RouterA-Serial1/1/0] mpls enable
[RouterA-Serial1/1/0] mpls ldp ipv6 enable
[RouterA-Serial1/1/0] mpls ldp transport-address 10::1
[RouterA-Serial1/1/0] quit
[RouterA] interface serial 1/1/1
[RouterA-Serial1/1/1] mpls enable
[RouterA-Serial1/1/1] mpls ldp ipv6 enable
[RouterA-Serial1/1/1] mpls ldp transport-address 30::1
[RouterA-Serial1/1/1] quit
# Configure Router B.
<RouterB> system-view
[RouterB] mpls lsr-id 2.2.2.9
[RouterB] mpls ldp
[RouterB-ldp] quit
[RouterB] interface serial 1/1/0
[RouterB-Serial1/1/0] mpls enable
[RouterB-Serial1/1/0] mpls ldp ipv6 enable
[RouterB-Serial1/1/0] mpls ldp transport-address 10::2
[RouterB-Serial1/1/0] quit
[RouterB] interface serial 1/1/1
[RouterB-Serial1/1/1] mpls enable
[RouterB-Serial1/1/1] mpls ldp ipv6 enable
[RouterB-Serial1/1/1] mpls ldp transport-address 20::1
[RouterB-Serial1/1/1] quit
# Configure Router C.
<RouterC> system-view
[RouterC] mpls lsr-id 3.3.3.9