176
Figure 44
Network diagram
Configuration procedure
1.
Configure an IGP (such as OSPF) on the MPLS backbone. (Details not shown)
2.
Configure Spoke-PE 1.
# Configure basic MPLS.
<Sysname> system-view
[Sysname] sysname Spoke-PE1
[Spoke-PE1] interface loopback 0
[Spoke-PE1-LoopBack0] ip address 1.1.1.9 32
[Spoke-PE1-LoopBack0] quit
[Spoke-PE1] mpls lsr-id 1.1.1.9
[Spoke-PE1] mpls
[Spoke-PE1–mpls] quit
[Spoke-PE1] mpls ldp
[Spoke-PE1-mpls-ldp] quit
# Configure basic MPLS on the interface connected to Hub-PE.
[Spoke-PE1] interface GigabitEthernet 3/1/1
[Spoke-PE1-GigabitEthernet3/1/1] ip address 10.1.1.1 24
[Spoke-PE1-GigabitEthernet3/1/1] mpls
[Spoke-PE1-GigabitEthernet3/1/1] mpls ldp
[Spoke-PE1-GigabitEthernet3/1/1] quit
# Configure the remote LDP session with Hub-PE.
[Spoke-PE1] mpls ldp remote-peer 1
[Spoke-PE1-mpls-remote-1] remote-ip 3.3.3.9
[Spoke-PE1-mpls-remote-1] quit
# Enable L2VPN and MPLS L2VPN.
[Spoke-PE1] l2vpn
[Spoke-PE1-l2vpn] mpls l2vpn
[Spoke-PE1-l2vpn] quit