
Operation Manual – MPLS L2VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L2VPN Configuration
1-31
# Configure the LSR ID and enable MPLS globally.
[PEB] mpls lsr-id 192.3.3.3
[PEB] mpls
# Configure the LSP establishment triggering policy.
[PEB-mpls] lsp-trigger all
[PEB-mpls] quit
# Enable MPLS L2VPN and LDP globally.
[PEB] mpls l2vpn
[PEB] mpls ldp
[PEB-mpls-ldp] quit
# Configure an LDP remote session between PE B and PE A.
[PEB] mpls ldp remote-peer 2
[PEB-mpls-ldp-remote-2] remote-ip 192.2.2.2
[PEB-mpls-ldp-remote-2] quit
# Configure the interface connected with the P device, namely VLAN-interface 23, and
enable LDP on the interface.
[PEB] vlan 23
[PEB-vlan23] port Ethernet 4/1/1
[PEB-vlan23] quit
[PEB] interface Vlan-interface 23
[PEB-Vlan-interface23] ip address 10.2.2.1 24
[PEB-Vlan-interface23] mpls
[PEB-Vlan-interface23] mpls ldp
[PEB-Vlan-interface23] quit
# Configure OSPF on PE B for establishing LSPs.
[PEB] ospf
[PEB-ospf-1] area 0
[PEB-ospf-1-area-0.0.0.0] network 10.2.2.1 0.0.0.255
[PEB-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0
[PEB-ospf-1-area-0.0.0.0] quit
[PEB-ospf-1] quit
# On the interface connecting CE B, namely VLAN-interface 10, create a L2VPN
connection. The interface requires no IP address.
[PEB] vlan 10
[PEB-vlan10] port Ethernet 4/1/2
[PEB-vlan10] quit
[PEB] interface Vlan-interface 10
[PEB-Vlan-interface10] mpls l2vc 192.2.2.2 101
[PEB-Vlan-interface10] quit