R3303-HP HSR6800 Routers MPLS Configuration Guide
244
[ASBR1-bgp] quit
[ASBR1] route-policy map permit node 10
[ASBR1-route-policy] apply mpls-label
[ASBR1-route-policy] quit
3. Configurations on ASBR 2:
# Configure basic MPLS.
<Sysname> system-view
[Sysname] sysname ASBR2
[ASBR2] interface loopback 0
[ASBR2-LoopBack0] ip address 3.3.3.3 32
[ASBR2-LoopBack0] quit
[ASBR2] mpls lsr-id 3.3.3.3
[ASBR2] mpls
[ASBR2–mpls] quit
[ASBR2] mpls ldp
[ASBR2–mpls-ldp] quit
# Create remote LDP peers.
[ASBR2] mpls ldp remote-peer 2
[ASBR2-mpls-ldp-remote-2] remote-ip 2.2.2.2
[ASBR2-mpls-ldp-remote-2] quit
[ASBR2] mpls ldp remote-peer 3
[ASBR2-mpls-ldp-remote-3] remote-ip 4.4.4.4
[ASBR2-mpls-ldp-remote-3] quit
# Configure OSPF.
[ASBR2] ospf
[ASBR2-ospf-1] area 0
[ASBR2-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[ASBR2-ospf-1-area-0.0.0.0] network 12.1.1.0 0.0.0.255
[ASBR2-ospf-1-area-0.0.0.0] quit
[ASBR2-ospf-1] quit
# Configure basic MPLS for GigabitEthernet 2/1/1, the interface connecting ASBR 1.
[ASBR2] interface gigabitethernet 2/1/1
[ASBR2-GigabitEthernet2/1/1] ip address 11.1.1.3 24
[ASBR2-GigabitEthernet2/1/1] mpls
[ASBR2-GigabitEthernet2/1/1] quit
# Configure basic MPLS for GigabitEthernet 2/1/2, the interface connecting PE 2.
[ASBR2] interface gigabitethernet 2/1/2
[ASBR2-GigabitEthernet2/1/2] ip address 12.1.1.3 24
[ASBR2-GigabitEthernet2/1/2] mpls
[ASBR2-GigabitEthernet2/1/2] mpls ldp
[ASBR2-GigabitEthernet2/1/2] quit
# Enable L2VPN and MPLS L2VPN.
[ASBR2] l2vpn
[ASBR2-l2vpn] mpls l2vpn
[ASBR2-l2vpn] quit
# Configure a P2P-capable VPLS instance aaa that uses LDP signaling.
[ASBR2] vsi aaa static p2p