R2511-HP MSR Router Series MPLS Configuration Guide(V5)

429
Configuration procedure
1. Configure IP addresses for the interfaces according to Figure 105, including the physical
interfaces, loopback interfaces, and the VE interface.
2. On PE-agg, create a terminating VE interface VE-L2VPN-Terminate 1 to terminate the MPLS L2VPN,
and an access VE interface VE-L3VPN-Access 1 to access the MPLS L3VPN, and add the
terminating and access VE interfaces to the same VE group:
# Create the terminating VE interface VE-L2VPN-Terminate 1, and add it to VE group 1.
<PEagg> system-view
[PEagg] interface ve-l2vpn-terminate 1
[PEagg-VE-L2VPN-Terminate1] ve-group 1
[PEagg-VE-L2VPN-Terminate1] quit
# Create the access VE interface VE-L3VPN-Access 1, and add it to VE group 1.
[PEagg] interface ve-l3vpn-access 1
[PEagg-VE-L3VPN-Access1] ve-group 1
[PEagg-VE-L3VPN-Access1] quit
3. Configure MPLS L2VPN:
a. Configure OSPF on PE 1, the P device, and the PE-agg, and advertise interface addresses:
# Configure OSPF on PE 1.
<PE1> system-view
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Configure OSPF on the P device.
<P> system-view
[P] ospf
[P-ospf-1] area 0
[P-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[P-ospf-1-area-0.0.0.0] network 10.2.2.0 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
# Configure OSPF on the PE-agg.
[PEagg] ospf
[PEagg-ospf-1] area 0
[PEagg-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[PEagg-ospf-1-area-0.0.0.0] network 10.2.2.0 0.0.0.255
[PEagg-ospf-1-area-0.0.0.0] quit
[PEagg-ospf-1] quit
b. Configure basic MPLS and enable MPLS LDP on PE 1, P, and PE-agg:
# Configure PE 1.
[PE1] mpls lsr-id 1.1.1.9
[PE1] mpls
[PE1-mpls] lsp-trigger all