164
[ASBR1-Vlan-interface11] mpls
[ASBR1-Vlan-interface11] quit
# Enable L2VPN and MPLS L2VPN.
[ASBR1] l2vpn
[ASBR1-l2vpn] mpls l2vpn
[ASBR1-l2vpn] quit
# Configure a P2P-capable VPLS instance that uses LDP signaling.
[ASBR1] vsi aaa static p2p
[ASBR1-vsi-aaa] pwsignal ldp
[ASBR1-vsi-aaa-ldp] vsi-id 500
[ASBR1-vsi-aaa-ldp] peer 1.1.1.1 upe
[ASBR1-vsi-aaa-ldp] peer 3.3.3.3
[ASBR1-vsi-aaa-ldp] quit
[ASBR1-vsi-aaa] quit
# Configure BGP to advertise labeled unicast routes.
[ASBR1] bgp 100
[ASBR1-bgp] import-route direct
[ASBR1-bgp] peer 11.1.1.3 as-number 200
[ASBR1-bgp] peer 11.1.1.3 route-policy map export
[ASBR1-bgp] peer 11.1.1.3 label-route-capability
[ASBR1-bgp] quit
[ASBR1] route-policy map permit node 10
[ASBR1-route-policy] apply mpls-label
[ASBR1-route-policy] quit
3.
Configure 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