Configuring IP interworking over local MPLS L2VPN connections

Network requirements

CE 1 and PE are connected through Ethernet interfaces. CE 2 and PE are connected through serial interfaces, and they use PPP as the link layer protocol.

Configure local MPLS L2VPN connections between the PE and CEs and enable interworking on the PE to allow communication between CE 1 and CE 2.

Figure 109: Network diagram

Configuration procedure

  1. Configure CE 1.

    <CE1> system-view
    [CE1] interface gigabitethernet 2/1/1
    [CE1-GigabitEthernet2/1/1] ip address 10.1.1.1 24
    [CE1-GigabitEthernet2/1/1] quit
    
  2. Configure CE 2.

    <CE2> system-view
    [CE2] interface serial 2/1/0
    [CE2-Serial2/1/0] link-protocol ppp
    [CE2-Serial2/1/0] ip address 10.1.1.2 24
    [CE2-Serial2/1/0] quit
    
  3. Configure PE:

    # Enable L2VPN.

    <PE> system-view
    [PE] l2vpn enable
    

    # Configure the default next hop IP address as 10.1.1.1 on GigabitEthernet 2/1/1 (the interface connected to CE 1). This interface does not need an IP address.

    [PE] interface gigabitethernet 2/1/1
    [PE-GigabitEthernet2/1/1] default-nexthop ip 10.1.1.1
    [PE-GigabitEthernet2/1/1] quit
    

    # Configure the IPCP proxy IP address as the IP address of CE 1 on Serial 2/1/0 (the interface connected to CE 2). This interface does not need an IP address.

    [PE] interface serial 2/1/0
    [PE-Serial2/1/0] link-protocol ppp
    [PE-Serial2/1/0] ppp ipcp proxy 10.1.1.1
    [PE-Serial2/1/0] quit
    

    # Create a cross-connect group named vpn1, create a cross-connect named vpn1 in the group, and enable interworking for the cross-connect.

    [PE] xconnect-group vpn1
    [PE-xcg-vpn1] connection vpn1
    [PE-xcg-vpn1-vpn1] interworking ipv4
    

    # Bind GigabitEthernet 2/1/1 and Serial 2/1/0 to the cross-connect.

    [PE-xcg-vpn1-vpn1] ac interface gigabitethernet 2/1/1
    [PE-xcg-vpn1-vpn1] ac interface serial 2/1/0
    [PE-xcg-vpn1-vpn1] quit
    [PE-xcg-vpn1] quit
    

Verifying the configuration

# Verify that two AC forwarding entries exist on the PE.

[PE] display l2vpn forwarding ac
Total number of cross-connections: 1
Total number of ACs: 2

AC                               Xconnect-group Name             Link ID
GE2/1/1                          vpn1                            0
Ser2/1/0                         vpn1                            1

# Verify that CE 1 and CE 2 can ping each other. (Details not shown.)