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

95
[P-ospf-1-area-0.0.0.0] network 192.4.4.4 0.0.0.0
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
4. 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 Soft GRE in L2VPN view.
[PE2-l2vpn] mpls l2vpn soft-gre
[PE2-l2vpn] quit
# Configure Ethernet 1/1 (the interface connected to the P device).
[PE2] interface ethernet 1/1
[PE2-Ethernet1/1] ip address 10.2.2.1 24
[PE2-Ethernet1/1] mpls
[PE2-Ethernet1/1] quit
# Configure OSPF.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 10.2.2.1 0.0.0.255
[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] quit
[PE2-ospf-1] quit
# Create a static VC on Ethernet 1/2 (the interface connected to CE 2). The interface requires no
IP address.
[PE2] interface ethernet 1/2
[PE2-Ethernet1/2] mpls static-l2vc destination 192.2.2.2 transmit-vpn-label 200
receive-vpn-label 100
[PE2-Ethernet1/2] quit
5. Configure CE 2:
# Configure an IP address for Ethernet 1/1.
<Sysname> system-view
[Sysname] sysname CE2
[CE2] interface ethernet 1/1
[CE2-Ethernet1/1] ip address 100.1.1.2 24
Verifying the configuration
# Display SVC information on PE 1.