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

102
[PE1-ospf-1] quit
# Create a VC on Ethernet 1/1 (the interface connected to CE 1), and specify the VC
encapsulation type as Ethernet.
[PE1] interface ethernet 1/1
[PE1-Ethernet1/1] mpls l2vc 192.3.3.3 101 ethernet
[PE1-Ethernet1/1] quit
# Configure the L2PT destination multicast MAC address as 0100-0CCD-CDD0.
[PE1] l2protocol-tunnel mac-address 0100-0CCD-CDD0
# Enable L2PT for STP on Ethernet 1/1 (the interface connected to CE 1), and use the tunnel mode
to process STP packets.
[PE1] interface ethernet 1/1
[PE1-Ethernet1/1] l2protocol-tunnel stp tunnel
[PE1-Ethernet1/1] quit
2. Configure PE 2:
# Configure an LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE2
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 192.3.3.3 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 192.3.3.3
[PE2] mpls
[PE2-mpls] quit
# Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
# Enable LDP globally.
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure PE 1 as the remote LDP peer.
[PE2] mpls ldp remote-peer 2
[PE2-mpls-ldp-remote-2] remote-ip 192.2.2.2
[PE2-mpls-ldp-remote-2] quit
# Configure Ethernet 1/1 (the interface connected to PE 1), and enable LDP on the interface.
[PE2] interface ethernet 1/1
[PE2-Ethernet1/1] ip address 10.1.1.2 24
[PE2-Ethernet1/1] mpls
[PE2-Ethernet1/1] mpls ldp
[PE2-Ethernet1/1] quit
# Configure OSPF for LSP establishment.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit