R3303-HP HSR6800 Routers MPLS Configuration Guide
227
Configuration procedure
1. Configure PE 1:
# Configure an IGP, such as OSPF. (Details not shown.)
# Configure basic MPLS.
<Sysname> system-view
[Sysname] sysname PE1
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.9 32
[PE1-LoopBack0] quit
[PE1] mpls lsr-id 1.1.1.9
[PE1] mpls
[PE1-mpls] quit
[PE1] mpls ldp
[PE1-mpls-ldp] quit
# Configure an IP address for interface GigabitEthernet 2/1/1.
[PE1] interface gigabitethernet 2/1/1
[PE1-GigabitEthernet2/1/1] ip address 10.10.10.10 24
# Configure basic MPLS on GigabitEthernet 2/1/1.
[PE1-GigabitEthernet2/1/1] mpls
[PE1-GigabitEthernet2/1/1] mpls ldp
[PE1-GigabitEthernet2/1/1] quit
# Configure the remote LDP peer.
[PE1] mpls ldp remote-peer 1
[PE1-mpls-remote-1] remote-ip 2.2.2.9
[PE1-mpls-remote-1] quit
# Configure MP-BGP for VPLS.
[PE1] bgp 100
[PE1-bgp] peer 2.2.2.9 as-number 100
[PE1-bgp] peer 2.2.2.9 connection-interface loopback 0
[PE1-bgp] vpls-family
[PE1-bgp-af-vpls] peer 2.2.2.9 enable
[PE1-bgp-af-vpls] quit
[PE1-bgp] quit
# Enable L2VPN and MPLS L2VPN.
[PE1] l2vpn
[PE1-l2vpn] mpls l2vpn
[PE1-l2vpn] quit
# Create VPLS instance aaa that uses LDP signaling.
[PE1] vsi aaa static
[PE1-vsi-aaa] pwsignal ldp
[PE1-vsi-aaa-ldp] vsi-id 500
[PE1-vsi-aaa-ldp] peer 2.2.2.9
[PE1-vsi-aaa-ldp] quit
[PE1-vsi-aaa] quit
# Create VPLS instance bbb that uses BGP signaling.
[PE1] vsi bbb auto