56
Figure 21 Network diagram
360B
Requirements analysis
•
To ensure that the LSRs establish IPv6 LSPs automatically, enable IPv6 LDP on each LSR.
•
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 Switch A—Switch B—Switch C,
configure IPv6 label acceptance policies as follows:
{
Switch A accepts only the label mapping for FEC 21::0/64 received from Switch B. Switch A
denies the label mapping for FEC 21::0/64 received from Switch D.
{
Switch C accepts only the label mapping for FEC 11::0/64 received from Switch B. Switch C
denies the label mapping for FEC 11::0/64 received from Switch D.
361B
Configuration procedure
Before configuration, disable the spanning tree feature globally or map each VLAN to an MSTI. For
more information, see
Layer 2—LAN Switching Configuration Guide
.
1.
Configure IPv6 addresses and masks for interfaces, including the loopback interfaces, as
shown in
701H
Figure 21
. (Details not shown.)
2.
Configure OSPFv3 on each switch to ensure IP connectivity between them. (Details not
shown.)
3.
Enable MPLS and IPv6 LDP:
# Configure Switch A.
<SwitchA> system-view
[SwitchA] mpls lsr-id 1.1.1.9
[SwitchA] mpls ldp
[SwitchA-ldp] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] mpls enable
[SwitchA-Vlan-interface2] mpls ldp ipv6 enable
[SwitchA-Vlan-interface2] mpls ldp transport-address 10::1
[SwitchA-Vlan-interface2] quit
Switch A
Switch B
Switch C
Loop0
1.1.1.9/32
100::1/128
Loop0
3.3.3.9/32
100::3/128
Vlan-int2
10::1/64
Vlan-int3
20::1/64
Vlan-int2
10::2/64
Vlan-int3
20::2/64
11::0/64
21::0/64
Vlan-int4
11::1/64
Vlan-int5
21::1/64
Switch D
Loop0
4.4.4.9/32
100::4/128
Loop0
2.2.2.9/32
100::2/128
Vlan-int6
30::1/64
Vlan-int7
40::2/64
Vlan-int6
30::2/64
Vlan-int7
40::1/64