
285
6PE configuration example
Network requirements
Use 6PE to connect two isolated IPv6 networks over an IPv4/MPLS network:
•
The ISP uses OSPF as the IGP.
•
PE 1 and PE 2 are edge devices of the ISP, and establish an IPv4 IBGP connection between them.
•
CE 1 and CE 2 are edge devices of the IPv6 networks, and they connect the IPv6 networks to the
ISP.
•
A CE and a PE exchange IPv6 packets through IPv6 static routing.
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 Ethernet 1/2.
[PE1] interface ethernet 1/2
[PE1-Ethernet1/2] mpls enable
[PE1-Ethernet1/2] mpls ldp enable
[PE1-Ethernet1/2] 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