147
# Configure the remote LDP session.
[UPE] mpls ldp remote-peer 1
[UPE-mpls-remote-1] remote-ip 2.2.2.9
[UPE-mpls-remote-1] quit
# Enable L2VPN and MPLS L2VPN.
[UPE] l2vpn
[UPE-l2vpn] mpls l2vpn
[UPE-l2vpn] quit
# Configure the basic attributes of VPLS instance aaa, which uses LDP.
[UPE] vsi aaa static
[UPE-vsi-aaa] pwsignal ldp
[UPE-vsi-aaa-ldp] vsi-id 500
[UPE-vsi-aaa-ldp] peer 2.2.2.9
[UPE-vsi-aaa-ldp] quit
[UPE-vsi-aaa] quit
# On interface GigabitEthernet 3/0/1 connected to CE 1, create a service instance and bind
VPLS instance
aaa
to the service instance.
[UPE] interface GigabitEthernet 3/0/1
[UPE-GigabitEthernet3/0/1] service-instance 1000
[UPE-GigabitEthernet3/0/1-srv1000] encapsulation s-vid 100
[UPE-GigabitEthernet3/0/1-srv1000] xconnect vsi aaa
[UPE-GigabitEthernet3/0/1-srv1000] quit
[UPE-GigabitEthernet3/0/1] quit
3.
Configure NPE 1.
# Configure basic MPLS.
<Sysname> system-view
[Sysname] sysname NPE1
[NPE1] interface loopback 0
[NPE1-LoopBack0] ip address 2.2.2.9 32
[NPE1-LoopBack0] quit
[NPE1] mpls lsr-id 2.2.2.9
[NPE1] mpls
[NPE1–mpls] quit
[NPE1] mpls ldp
[NPE1–mpls-ldp] quit
# Configure basic MPLS on the interface connected to UPE.
[NPE1] interface vlan-interface 10
[NPE1-Vlan-interface10] ip address 10.1.1.2 24
[NPE1-Vlan-interface10] mpls
[NPE1-Vlan-interface10] mpls ldp
[NPE1-Vlan-interface10] quit
# Configure basic MPLS on the interface connected to NPE 3.
[NPE1] interface vlan-interface 20
[NPE1-Vlan-interface20] ip address 11.1.1.1 24
[NPE1-Vlan-interface20] mpls
[NPE1-Vlan-interface20] mpls ldp
[NPE1-Vlan-interface20] quit