311
Figure 74
Network diagram
Configuration procedure
1.
Configure IPv6 addresses and IPv4 addresses for interfaces. (Details not shown.)
2.
Configure PE 1:
# Enable LDP globally, and configure the LSP generation policy.
<PE1> system-view
[PE1] mpls lsr-id 2.2.2.2
[PE1] mpls ldp
[PE1-ldp] lsp-trigger all
[PE1-ldp] quit
# Enable MPLS and LDP on GigabitEthernet 2/0.
[PE1] interface gigabitethernet 2/0
[PE1-GigabitEthernet2/0] mpls enable
[PE1-GigabitEthernet2/0] mpls ldp enable
[PE1-GigabitEthernet2/0] quit
# Configure IBGP, enable the peer's 6PE capabilities, and redistribute IPv6 direct and static
routes.
[PE1] bgp 65100
[PE1-bgp] router-id 2.2.2.2
[PE1-bgp] peer 3.3.3.3 as-number 65100
[PE1-bgp] peer 3.3.3.3 connect-interface loopback 0
[PE1-bgp] address-family ipv6
[PE1-bgp-ipv6] import-route direct
[PE1-bgp-ipv6] import-route static
[PE1-bgp-ipv6] peer 3.3.3.3 enable
[PE1-bgp-ipv6] peer 3.3.3.3 label-route-capability
[PE1-bgp-ipv6] quit
[PE1-bgp] quit
# Configure the static route to CE 1.
[PE1] ipv6 route-static 1::1 128 10::1
# Configure OSPF for the ISP.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0