09-MPLS Configuration Guide

HomeSupportRoutersCR16000-M SeriesConfigure & DeployConfiguration GuidesH3C CR16000-M Routers Configuration Guides-R8630Pxx-6W10009-MPLS Configuration Guide
17-VPLS configuration examples
Title Size Download
17-VPLS configuration examples 467.26 KB

Configuring VPLS

VPLS configuration examples

Example: Configuring static PWs

Network configuration

Configure a VSI on each PE, and establish static PWs between the PEs to interconnect the CEs.

Figure 1 Network diagram

 

Table 1 Interface label and interface name mappings

Interface label

Interface name

Interface1

Ten-GigabitEthernet3/0/1

Interface2

Ten-GigabitEthernet3/0/2

Interface3

Ten-GigabitEthernet3/0/3

 

Procedure

1.     Configure PE 1:

# Configure an LSR ID.

<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

# Enable L2VPN.

[PE1] l2vpn enable

# Enable global LDP.

[PE1] mpls ldp

[PE1-ldp] quit

# Configure Ten-GigabitEthernet 3/0/2 (the interface connected to PE 2), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/2

[PE1-Ten-GigabitEthernet3/0/2] ip address 20.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/2] mpls enable

[PE1-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet 3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/3

[PE1-Ten-GigabitEthernet3/0/3] ip address 30.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/3] mpls enable

[PE1-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE1] ospf

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

# Create a VSI, specify the peer PEs, and establish static PWs to the peer PEs.

[PE1] vsi svc

[PE1-vsi-svc] pwsignaling static

[PE1-vsi-svc-static] peer 2.2.2.9 pw-id 3 in-label 100 out-label 100

[PE1-vsi-svc-static-2.2.2.9-3] quit

[PE1-vsi-svc-static] peer 3.3.3.9 pw-id 3 in-label 200 out-label 200

[PE1-vsi-svc-static-3.3.3.9-3] quit

[PE1-vsi-svc-static] quit

[PE1-vsi-svc] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI svc.

[PE1] interface ten-gigabitethernet 3/0/1

[PE1-Ten-GigabitEthernet3/0/1] xconnect vsi svc

[PE1-Ten-GigabitEthernet3/0/1] quit

2.     Configure PE 2:

# Configure an LSR ID.

<Sysname> system-view

[Sysname] sysname PE2

[PE2] interface loopback 0

[PE2-LoopBack0] ip address 2.2.2.9 32

[PE2-LoopBack0] quit

[PE2] mpls lsr-id 2.2.2.9

# Enable L2VPN.

[PE2] l2vpn enable

# Enable global LDP.

[PE2] mpls ldp

[PE2-ldp] quit

# Configure Ten-GigabitEthernet 3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/2

[PE2-Ten-GigabitEthernet3/0/2] ip address 20.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/2] mpls enable

[PE2-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet 3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/3

[PE2-Ten-GigabitEthernet3/0/3] ip address 40.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/3] mpls enable

[PE2-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE2] ospf

[PE2-ospf-1] area 0

[PE2-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0

[PE2-ospf-1-area-0.0.0.0] quit

[PE2-ospf-1] quit

# Create a VSI, specify the peer PEs, and establish static PWs to the peer PEs.

[PE2] vsi svc

[PE2-vsi-svc] pwsignaling static

[PE2-vsi-svc-static] peer 1.1.1.9 pw-id 3 in-label 100 out-label 100

[PE2-vsi-svc-static-1.1.1.9-3] quit

[PE2-vsi-svc-static] peer 3.3.3.9 pw-id 3 in-label 300 out-label 300

[PE2-vsi-svc-static-3.3.3.9-3] quit

[PE2-vsi-svc-static] quit

[PE2-vsi-svc] quit

# Bind interface Ten-GigabitEthernet 3/0/1 toVSI svc.

[PE2] interface ten-gigabitethernet 3/0/1

[PE2-Ten-GigabitEthernet3/0/1] xconnect vsi svc

[PE2-Ten-GigabitEthernet3/0/1] quit

3.     Configure PE 3:

# Configure an LSR ID.

<Sysname> system-view

[Sysname] sysname PE3

[PE3] interface loopback 0

[PE3-LoopBack0] ip address 3.3.3.9 32

[PE3-LoopBack0] quit

[PE3] mpls lsr-id 3.3.3.9

# Enable L2VPN.

[PE3] l2vpn enable

# Enable global LDP.

[PE3] mpls ldp

[PE3-ldp] quit

# Configure Ten-GigabitEthernet 3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/2

[PE3-Ten-GigabitEthernet3/0/2] ip address 30.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/2] mpls enable

[PE3-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet 3/0/3 (the interface connected to PE 2), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/3

[PE3-Ten-GigabitEthernet3/0/3] ip address 40.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/3] mpls enable

[PE3-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE3] ospf

[PE3-ospf-1] area 0

[PE3-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0

[PE3-ospf-1-area-0.0.0.0] quit

[PE3-ospf-1] quit

# Create a VSI, specify the peer PEs, and establish static PWs to the peer PEs.

[PE3] vsi svc

[PE3-vsi-svc] pwsignaling static

[PE3-vsi-svc-static] peer 1.1.1.9 pw-id 3 in-label 200 out-label 200

[PE3-vsi-svc-static-1.1.1.9-3] quit

[PE3-vsi-svc-static] peer 2.2.2.9 pw-id 3 in-label 300 out-label 300

[PE3-vsi-svc-static-2.2.2.9-3] quit

[PE3-vsi-svc-static] quit

[PE3-vsi-svc] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI svc.

[PE3] interface ten-gigabitethernet 3/0/1

[PE3-Ten-GigabitEthernet3/0/1] xconnect vsi svc

[PE3-Ten-GigabitEthernet3/0/1] quit

Verifying the configuration

# Verify that two static PWs in up state have been established on PE 1.

[PE1] display l2vpn pw verbose

VSI Name: svc

  Peer: 2.2.2.9          PW ID: 3

    Signaling Protocol  : Static

    Link ID             : 8          PW State : Up

    In Label            : 100        Out Label: 100

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x160000001

    Tunnel NHLFE IDs    : 1027

    Admin PW            : -

  Peer: 3.3.3.9          PW ID: 3

    Signaling Protocol  : Static

    Link ID             : 9          PW State : Up

    In Label            : 200        Out Label: 200

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x260000002

    Tunnel NHLFE IDs    : 1028

    Admin PW            : -

Configuration files

·     PE 1

#

 sysname PE1

#

ospf 1

 area 0.0.0.0

  network 1.1.1.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 30.1.1.0 0.0.0.255

#

 mpls lsr-id 1.1.1.9

#

mpls ldp

#

 l2vpn enable

#

vsi svc

 pwsignaling static

  peer 2.2.2.9 pw-id 3 in-label 100 out-label 100

  peer 3.3.3.9 pw-id 3 in-label 200 out-label 200

#

interface LoopBack0

 ip address 1.1.1.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 30.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi svc

#

return

·     PE 2

#

 sysname PE2

#

ospf 1

 area 0.0.0.0

  network 2.2.2.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 2.2.2.9

#

mpls ldp

#

 l2vpn enable

#

vsi svc

 pwsignaling static

  peer 1.1.1.9 pw-id 3 in-label 100 out-label 100

  peer 3.3.3.9 pw-id 3 in-label 300 out-label 300

#

controller E1 0013

#

interface LoopBack0

 ip address 2.2.2.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi svc

#

return

·     PE 3

#

 sysname PE3

#

ospf 1

 area 0.0.0.0

  network 3.3.3.9 0.0.0.0

  network 30.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 3.3.3.9

#

mpls ldp

#

 l2vpn enable

#

vsi svc

 pwsignaling static

  peer 1.1.1.9 pw-id 3 in-label 200 out-label 200

  peer 2.2.2.9 pw-id 3 in-label 300 out-label 300

#

interface LoopBack0

 ip address 3.3.3.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 30.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi svc

#

return

Example: Configuring LDP PWs

Network configuration

Configure a VSI on each PE, and establish LDP PWs between the PEs to interconnect the CEs.

Figure 2 Network diagram

Table 2 Interface label and interface name mappings

Interface label

Interface name

Interface1

Ten-GigabitEthernet3/0/1

Interface2

Ten-GigabitEthernet3/0/2

Interface3

Ten-GigabitEthernet3/0/3

 

Procedure

1.     Configure an IGP and public tunnels. (Details not shown.)

2.     Configure PE 1:

# 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 ldp

[PE1-ldp] quit

# Enable L2VPN.

[PE1] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 2), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/2

[PE1-Ten-GigabitEthernet3/0/2] ip address 20.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/2] mpls enable

[PE1-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/3

[PE1-Ten-GigabitEthernet3/0/3] ip address 30.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/3] mpls enable

[PE1-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE1] ospf

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish PWs to PE 2 and PE 3.

[PE1] vsi aaa

[PE1-vsi-aaa] pwsignaling ldp

[PE1-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[PE1-vsi-aaa-ldp-2.2.2.9-500] quit

[PE1-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500

[PE1-vsi-aaa-ldp-3.3.3.9-500] quit

[PE1-vsi-aaa-ldp] quit

[PE1-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE1] interface ten-gigabitethernet 3/0/1

[PE1-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[PE1-Ten-GigabitEthernet3/0/1] quit

3.     Configure PE 2:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname PE2

[PE2] interface loopback 0

[PE2-LoopBack0] ip address 2.2.2.9 32

[PE2-LoopBack0] quit

[PE2] mpls lsr-id 2.2.2.9

[PE2] mpls ldp

[PE2-ldp] quit

# Enable L2VPN.

[PE2] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/2

[PE2-Ten-GigabitEthernet3/0/2] ip address 20.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/2] mpls enable

[PE2-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/3

[PE2-Ten-GigabitEthernet3/0/3] ip address 40.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/3] mpls enable

[PE2-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE2] ospf

[PE2-ospf-1] area 0

[PE2-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0

[PE2-ospf-1-area-0.0.0.0] quit

[PE2-ospf-1] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish PWs to PE 1 and PE 3.

[PE2] vsi aaa

[PE2-vsi-aaa] pwsignaling ldp

[PE2-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500

[PE2-vsi-aaa-ldp-1.1.1.9-500] quit

[PE2-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500

[PE2-vsi-aaa-ldp-3.3.3.9-500] quit

[PE2-vsi-aaa-ldp] quit

[PE2-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE2] interface ten-gigabitethernet 3/0/1

[PE2-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

4.     Configure PE 3:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname PE3

[PE3] interface loopback 0

[PE3-LoopBack0] ip address 3.3.3.9 32

[PE3-LoopBack0] quit

[PE3] mpls lsr-id 3.3.3.9

[PE3] mpls ldp

[PE3-ldp] quit

# Enable L2VPN.

[PE3] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/2

[PE3-Ten-GigabitEthernet3/0/2] ip address 30.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/2] mpls enable

[PE3-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 2), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/3

[PE3-Ten-GigabitEthernet3/0/3] ip address 40.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/3] mpls enable

[PE3-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE3] ospf

[PE3-ospf-1] area 0

[PE3-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0

[PE3-ospf-1-area-0.0.0.0] quit

[PE3-ospf-1] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish PWs to PE 1 and PE 2.

[PE3] vsi aaa

[PE3-vsi-aaa] pwsignaling ldp

[PE3-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500

[PE3-vsi-aaa-ldp-1.1.1.9-500] quit

[PE3-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[PE3-vsi-aaa-ldp-2.2.2.9-500] quit

[PE3-vsi-aaa-ldp] quit

[PE3-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE3] interface ten-gigabitethernet 3/0/1

[PE3-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

Verifying the configuration

# Verify that two LDP PWs in up state have been established on PE 1.

[PE1] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1279       Out Label: 1279

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x260000000

    Tunnel NHLFE IDs    : 1028

    Admin PW            : -

  Peer: 3.3.3.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1278       Out Label: 1277

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x360000001

    Tunnel NHLFE IDs    : 1029

    Admin PW            : -

Configuration files

·     PE 1

#

 sysname PE1

#

ospf 1

 area 0.0.0.0

  network 1.1.1.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 30.1.1.0 0.0.0.255

#

 mpls lsr-id 1.1.1.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 2.2.2.9 pw-id 500

  peer 3.3.3.9 pw-id 500

#

interface LoopBack0

 ip address 1.1.1.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 30.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

·     PE 2

#

 sysname PE2

#

ospf 1

 area 0.0.0.0

  network 2.2.2.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 2.2.2.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 1.1.1.9 pw-id 500

  peer 3.3.3.9 pw-id 500

#

interface LoopBack0

 ip address 2.2.2.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

·     PE 3

#

 sysname PE3

#

ospf 1

 area 0.0.0.0

  network 3.3.3.9 0.0.0.0

  network 30.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 3.3.3.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 1.1.1.9 pw-id 500

  peer 2.2.2.9 pw-id 500

#

interface LoopBack0

 ip address 3.3.3.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 30.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

Example: Configuring BGP PWs

Network configuration

Configure a VSI on each PE, and establish BGP PWs between the PEs to interconnect CEs.

Figure 3 Network diagram

 

Table 3 Interface label and interface name mappings

Interface label

Interface name

Interface1

Ten-GigabitEthernet3/0/1

Interface2

Ten-GigabitEthernet3/0/2

Interface3

Ten-GigabitEthernet3/0/3

 

Procedure

1.     Configure PE 1:

# 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 ldp

[PE1-ldp] quit

# Enable L2VPN.

[PE1] l2vpn enable

# Configure Ten-GigabitEthernet 3/0/2 (the interface connected to PE 2), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/2

[PE1-Ten-GigabitEthernet3/0/2] ip address 20.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/2] mpls enable

[PE1-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/3

[PE1-Ten-GigabitEthernet3/0/3] ip address 30.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/3] mpls enable

[PE1-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE1] ospf

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

# Establish IBGP connections to PE 2 and PE 3, and use BGP to advertise VPLS label block information.

[PE1] bgp 100

[PE1-bgp-default] peer 2.2.2.9 as-number 100

[PE1-bgp-default] peer 2.2.2.9 connect-interface loopback 0

[PE1-bgp-default] peer 3.3.3.9 as-number 100

[PE1-bgp-default] peer 3.3.3.9 connect-interface loopback 0

[PE1-bgp-default] address-family l2vpn

[PE1-bgp-default-l2vpn] peer 2.2.2.9 enable

[PE1-bgp-default-l2vpn] peer 3.3.3.9 enable

[PE1-bgp-default-l2vpn] quit

[PE1-bgp-default] quit

# Configure VSI aaa to use BGP to establish BGP PWs to PE 2 and PE 3.

[PE1] vsi aaa

[PE1-vsi-aaa] auto-discovery bgp

[PE1-vsi-aaa-auto] route-distinguisher 1:1

[PE1-vsi-aaa-auto] vpn-target 1:1

[PE1-vsi-aaa-auto] signaling-protocol bgp

[PE1-vsi-aaa-auto-bgp] site 1 range 10 default-offset 0

[PE1-vsi-aaa-auto-bgp] quit

[PE1-vsi-aaa-auto] quit

[PE1-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE1] interface ten-gigabitethernet 3/0/1

[PE1-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[PE1-Ten-GigabitEthernet3/0/1] quit

2.     Configure PE 2:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname PE2

[PE2] interface loopback 0

[PE2-LoopBack0] ip address 2.2.2.9 32

[PE2-LoopBack0] quit

[PE2] mpls lsr-id 2.2.2.9

[PE2] mpls ldp

[PE2-ldp] quit

# Enable L2VPN.

[PE2] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/2

[PE2-Ten-GigabitEthernet3/0/2] ip address 20.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/2] mpls enable

[PE2-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/3

[PE2-Ten-GigabitEthernet3/0/3] ip address 40.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/3] mpls enable

[PE2-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE2] ospf

[PE2-ospf-1] area 0

[PE2-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0

[PE2-ospf-1-area-0.0.0.0] quit

[PE2-ospf-1] quit

# Establish IBGP connections to PE 1 and PE 3, and use BGP to advertise VPLS label block information.

[PE2] bgp 100

[PE2-bgp-default] peer 1.1.1.9 as-number 100

[PE2-bgp-default] peer 1.1.1.9 connect-interface loopback 0

[PE2-bgp-default] peer 3.3.3.9 as-number 100

[PE2-bgp-default] peer 3.3.3.9 connect-interface loopback 0

[PE2-bgp-default] address-family l2vpn

[PE2-bgp-default-l2vpn] peer 1.1.1.9 enable

[PE2-bgp-default-l2vpn] peer 3.3.3.9 enable

[PE2-bgp-default-l2vpn] quit

[PE2-bgp-default] quit

# Configure VSI aaa to use BGP to establish BGP PWs to PE 1 and PE 3.

[PE2] vsi aaa

[PE2-vsi-aaa] auto-discovery bgp

[PE2-vsi-aaa-auto] route-distinguisher 1:1

[PE2-vsi-aaa-auto] vpn-target 1:1

[PE2-vsi-aaa-auto] signaling-protocol bgp

[PE2-vsi-aaa-auto-bgp] site 2 range 10 default-offset 0

[PE2-vsi-aaa-auto-bgp] quit

[PE2-vsi-aaa-auto] quit

[PE2-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE2] interface ten-gigabitethernet 3/0/1

[PE2-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[PE2-Ten-GigabitEthernet3/0/1] quit

3.     Configure PE 3:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname PE3

[PE3] interface loopback 0

[PE3-LoopBack0] ip address 3.3.3.9 32

[PE3-LoopBack0] quit

[PE3] mpls lsr-id 3.3.3.9

[PE3] mpls ldp

[PE3-ldp] quit

# Enable L2VPN.

[PE3] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/2

[PE3-Ten-GigabitEthernet3/0/2] ip address 30.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/2] mpls enable

[PE3-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 2), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/3

[PE3-Ten-GigabitEthernet3/0/3] ip address 40.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/3] mpls enable

[PE3-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE3] ospf

[PE3-ospf-1] area 0

[PE3-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0

[PE3-ospf-1-area-0.0.0.0] quit

[PE3-ospf-1] quit

# Establish IBGP connections to PE 1 and PE 2, and use BGP to advertise VPLS label block information.

[PE3] bgp 100

[PE3-bgp-default] peer 1.1.1.9 as-number 100

[PE3-bgp-default] peer 1.1.1.9 connect-interface loopback 0

[PE3-bgp-default] peer 2.2.2.9 as-number 100

[PE3-bgp-default] peer 2.2.2.9 connect-interface loopback 0

[PE3-bgp-default] address-family l2vpn

[PE3-bgp-default-l2vpn] peer 1.1.1.9 enable

[PE3-bgp-default-l2vpn] peer 2.2.2.9 enable

[PE3-bgp-default-l2vpn] quit

[PE3-bgp-default] quit

# Configure VSI aaa to use BGP to establish BGP PWs to PE 1 and PE 2.

[PE3] vsi aaa

[PE3-vsi-aaa] auto-discovery bgp

[PE3-vsi-aaa-auto] route-distinguisher 1:1

[PE3-vsi-aaa-auto] vpn-target 1:1

[PE3-vsi-aaa-auto] signaling-protocol bgp

[PE3-vsi-aaa-auto-bgp] site 3 range 10 default-offset 0

[PE3-vsi-aaa-auto-bgp] quit

[PE3-vsi-aaa-auto] quit

[PE3-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE3] interface ten-gigabitethernet 3/0/1

[PE3-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[PE3-Ten-GigabitEthernet3/0/1] quit

Verifying the configuration

# Verify that two BGP PWs in up state have been established on PE 1.

[PE1] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.9          Remote Site: 2

    Signaling Protocol  : BGP

    Link ID             : 9          PW State : Up

    In Label            : 1295       Out Label: 1025

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x800000160000001

    Tunnel NHLFE IDs    : 1027

    Admin PW            : -

  Peer: 3.3.3.9          Remote Site: 3

    Signaling Protocol  : BGP

    Link ID             : 10         PW State : Up

    In Label            : 1296       Out Label: 1025

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x800000060000000

    Tunnel NHLFE IDs    : 1026

    Admin PW            : -

# Display VPLS label block information received from PE 2 and PE 3 on PE 1.

[PE1] display l2vpn bgp verbose

VSI Name: aaa

 Remote Site ID     : 2

 Offset             : 0

 RD                 : 1:1

 PW State           : Up

 Encapsulation      : BGP-VPLS

 MTU                : 1500

 Nexthop            : 2.2.2.9

 Local VC Label     : 1295

 Remote VC Label    : 1025

 Local Control Word : Disabled

 Remote Control Word: Disabled

 Link ID            : 9

 Local Label Block  : 1293/10/0

 Remote Label Block : 1024/10/0

 Local Flow Label   : -

 Reomote Flow Label : -

 Export Route Target: 1:1

 

 Remote Site ID     : 3

 Offset             : 0

 RD                 : 1:1

 PW State           : Up

 Encapsulation      : BGP-VPLS

 MTU                : 1500

 Nexthop            : 3.3.3.9

 Local VC Label     : 1296

 Remote VC Label    : 1025

 Local Control Word : Disabled

 Remote Control Word: Disabled

 Link ID            : 10

 Local Label Block  : 1293/10/0

 Remote Label Block : 1024/10/0

 Local Flow Label   : -

 Reomote Flow Label : -

 Export Route Target: 1:1

Configuration files

·     PE 1

#

 sysname PE1

#

ospf 1

 area 0.0.0.0

  network 1.1.1.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 30.1.1.0 0.0.0.255

#

 mpls lsr-id 1.1.1.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 auto-discovery bgp

  route-distinguisher 1:1

  vpn-target 1:1 export-extcommunity

  vpn-target 1:1 import-extcommunity

  signaling-protocol bgp

   site 1 range 10 default-offset 0

#

interface LoopBack0

 ip address 1.1.1.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 30.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

bgp 100

 peer 2.2.2.9 as-number 100

 peer 2.2.2.9 connect-interface LoopBack0

 peer 3.3.3.9 as-number 100

 peer 3.3.3.9 connect-interface LoopBack0

 #

 address-family l2vpn

  peer 2.2.2.9 enable

  peer 3.3.3.9 enable

#

return

·     PE 2

#

 sysname PE2

#

ospf 1

 area 0.0.0.0

  network 2.2.2.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 2.2.2.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 auto-discovery bgp

  route-distinguisher 1:1

  vpn-target 1:1 export-extcommunity

  vpn-target 1:1 import-extcommunity

  signaling-protocol bgp

   site 2 range 10 default-offset 0

#

interface LoopBack0

 ip address 2.2.2.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

bgp 100

 peer 1.1.1.9 as-number 100

 peer 1.1.1.9 connect-interface LoopBack0

 peer 3.3.3.9 as-number 100

 peer 3.3.3.9 connect-interface LoopBack0

 #

 address-family l2vpn

  peer 1.1.1.9 enable

  peer 3.3.3.9 enable

#

return

·     PE 3

#

 sysname PE3

#

ospf 1

 area 0.0.0.0

  network 3.3.3.9 0.0.0.0

  network 30.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 3.3.3.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 auto-discovery bgp

  route-distinguisher 1:1

  vpn-target 1:1 export-extcommunity

  vpn-target 1:1 import-extcommunity

  signaling-protocol bgp

   site 3 range 10 default-offset 0

#

interface LoopBack0

 ip address 3.3.3.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 30.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

bgp 100

 peer 1.1.1.9 as-number 100

 peer 1.1.1.9 connect-interface LoopBack0

 peer 2.2.2.9 as-number 100

 peer 2.2.2.9 connect-interface LoopBack0

 #

 address-family l2vpn

  peer 1.1.1.9 enable

  peer 2.2.2.9 enable

#

return

Example: Configuring BGP auto-discovery LDP PWs

Network configuration

Configure a VSI on each PE. Use BGP to discover remote PEs and use LDP to create PWs among PEs so CEs in different sites of VPN 1 can communicate with each other.

Figure 4 Network diagram

 

Table 4 Interface label and interface name mappings

Interface label

Interface name

Interface1

Ten-GigabitEthernet3/0/1

Interface2

Ten-GigabitEthernet3/0/2

Interface3

Ten-GigabitEthernet3/0/3

 

Procedure

1.     Configure PE 1:

# 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 ldp

[PE1-ldp] quit

# Enable L2VPN.

[PE1] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 2), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/2

[PE1-Ten-GigabitEthernet3/0/2] ip address 20.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/2] mpls enable

[PE1-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE1] interface ten-gigabitethernet 3/0/3

[PE1-Ten-GigabitEthernet3/0/3] ip address 30.1.1.1 24

[PE1-Ten-GigabitEthernet3/0/3] mpls enable

[PE1-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE1-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE1] ospf

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

# Establish IBGP connections to PE 1 and PE 2, and use BGP to advertise VPLS PE information.

[PE1] bgp 100

[PE1-bgp-default] peer 2.2.2.9 as-number 100

[PE1-bgp-default] peer 2.2.2.9 connect-interface loopback 0

[PE1-bgp-default] peer 3.3.3.9 as-number 100

[PE1-bgp-default] peer 3.3.3.9 connect-interface loopback 0

[PE1-bgp-default] address-family l2vpn

[PE1-bgp-default-l2vpn] peer 2.2.2.9 enable

[PE1-bgp-default-l2vpn] peer 3.3.3.9 enable

[PE1-bgp-default-l2vpn] quit

[PE1-bgp-default] quit

# Configure VSI aaa to use BGP to discover remote PEs and use LDP to establish LDP PWs to PE 2 and PE 3.

[PE1] vsi aaa

[PE1-vsi-aaa] auto-discovery bgp

[PE1-vsi-aaa-auto] route-distinguisher 1:1

[PE1-vsi-aaa-auto] vpn-target 1:1

[PE1-vsi-aaa-auto] signaling-protocol ldp

[PE1-vsi-aaa-auto-ldp] vpls-id 100:100

[PE1-vsi-aaa-auto-ldp] quit

[PE1-vsi-aaa-auto] quit

[PE1-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE1] interface ten-gigabitethernet 3/0/1

[PE1-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[PE1-Ten-GigabitEthernet3/0/1] quit

2.     Configure PE 2:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname PE2

[PE2] interface loopback 0

[PE2-LoopBack0] ip address 2.2.2.9 32

[PE2-LoopBack0] quit

[PE2] mpls lsr-id 2.2.2.9

[PE2] mpls ldp

[PE2-ldp] quit

# Enable L2VPN.

[PE2] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/2

[PE2-Ten-GigabitEthernet3/0/2] ip address 20.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/2] mpls enable

[PE2-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 3), and enable LDP on the interface.

[PE2] interface ten-gigabitethernet 3/0/3

[PE2-Ten-GigabitEthernet3/0/3] ip address 40.1.1.2 24

[PE2-Ten-GigabitEthernet3/0/3] mpls enable

[PE2-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE2-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE2] ospf

[PE2-ospf-1] area 0

[PE2-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0

[PE2-ospf-1-area-0.0.0.0] quit

[PE2-ospf-1] quit

# Establish IBGP connections to PE 1 and PE 3, and use BGP to advertise VPLS PE information.

[PE2] bgp 100

[PE2-bgp-default] peer 1.1.1.9 as-number 100

[PE2-bgp-default] peer 1.1.1.9 connect-interface loopback 0

[PE2-bgp-default] peer 3.3.3.9 as-number 100

[PE2-bgp-default] peer 3.3.3.9 connect-interface loopback 0

[PE2-bgp-default] address-family l2vpn

[PE2-bgp-default-l2vpn] peer 1.1.1.9 enable

[PE2-bgp-default-l2vpn] peer 3.3.3.9 enable

[PE2-bgp-default-l2vpn] quit

[PE2-bgp-default] quit

# Configure VSI aaa to use BGP to discover remote PEs and use LDP to establish LDP PWs to PE 1 and PE 3.

[PE2] vsi aaa

[PE2-vsi-aaa] auto-discovery bgp

[PE2-vsi-aaa-auto] route-distinguisher 1:1

[PE2-vsi-aaa-auto] vpn-target 1:1

[PE2-vsi-aaa-auto] signaling-protocol ldp

[PE2-vsi-aaa-auto-ldp] vpls-id 100:100

[PE2-vsi-aaa-auto-ldp] quit

[PE2-vsi-aaa-auto] quit

[PE2-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE2] interface ten-gigabitethernet 3/0/1

[PE2-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[PE2-Ten-GigabitEthernet3/0/1] quit

3.     Configure PE 3:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname PE3

[PE3] interface loopback 0

[PE3-LoopBack0] ip address 3.3.3.9 32

[PE3-LoopBack0] quit

[PE3] mpls lsr-id 3.3.3.9

[PE3] mpls ldp

[PE3-ldp] quit

# Enable L2VPN.

[PE3] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to PE 1), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/2

[PE3-Ten-GigabitEthernet3/0/2] ip address 30.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/2] mpls enable

[PE3-Ten-GigabitEthernet3/0/2] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to PE 2), and enable LDP on the interface.

[PE3] interface ten-gigabitethernet 3/0/3

[PE3-Ten-GigabitEthernet3/0/3] ip address 40.1.1.3 24

[PE3-Ten-GigabitEthernet3/0/3] mpls enable

[PE3-Ten-GigabitEthernet3/0/3] mpls ldp enable

[PE3-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[PE3] ospf

[PE3-ospf-1] area 0

[PE3-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[PE3-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0

[PE3-ospf-1-area-0.0.0.0] quit

[PE3-ospf-1] quit

# Establish IBGP connections to PE 1 and PE 2, and use BGP to advertise VPLS PE information.

[PE3] bgp 100

[PE3-bgp-default] peer 1.1.1.9 as-number 100

[PE3-bgp-default] peer 1.1.1.9 connect-interface loopback 0

[PE3-bgp-default] peer 2.2.2.9 as-number 100

[PE3-bgp-default] peer 2.2.2.9 connect-interface loopback 0

[PE3-bgp-default] address-family l2vpn

[PE3-bgp-default-l2vpn] peer 1.1.1.9 enable

[PE3-bgp-default-l2vpn] peer 2.2.2.9 enable

[PE3-bgp-default-l2vpn] quit

[PE3-bgp-default] quit

# Configure VSI aaa to use BGP to discover remote PEs and use LDP to establish LDP PWs to PE 1 and PE 2.

[PE3] vsi aaa

[PE3-vsi-aaa] auto-discovery bgp

[PE3-vsi-aaa-auto] route-distinguisher 1:1

[PE3-vsi-aaa-auto] vpn-target 1:1

[PE3-vsi-aaa-auto] signaling-protocol ldp

[PE3-vsi-aaa-auto-ldp] vpls-id 100:100

[PE3-vsi-aaa-auto-ldp] quit

[PE3-vsi-aaa-auto] quit

[PE3-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[PE3] interface ten-gigabitethernet 3/0/1

[PE3-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[PE3-Ten-GigabitEthernet3/0/1] quit

Verifying the configuration

# Verify that two PWs in up state have been established on PE 1.

[PE1] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.9          VPLS ID: 100:100

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1555       Out Label: 1555

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x800000060000000

    Tunnel NHLFE IDs    : 1029

    Admin PW            : -

  Peer: 3.3.3.9          VPLS ID: 100:100

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1554       Out Label: 1416

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x800000160000001

    Tunnel NHLFE IDs    : 1030

    Admin PW            : -

# Display LDP PW label information on PE 1.

[PE1] display l2vpn ldp verbose

Peer: 2.2.2.9          VPLS ID: 100:100

  VSI Name: aaa

  PW State: Up

  PW Status Communication: Notification method

  PW ID FEC (Local/Remote):

    Local AII   : (1.1.1.9, 2.2.2.9)

    Remote AII  : (2.2.2.9, 1.1.1.9)

    PW Type     : VLAN/VLAN

    Group ID    : 0/0

    Label       : 1555/1555

    Control Word: Disabled/Disabled

    VCCV CV Type: -/-

    VCCV CC Type: -/-

    Flow Label  : -/-

    MTU         : 1500/1500

    PW Status   : PW forwarding/PW forwarding

 

Peer: 3.3.3.9          VPLS ID: 100:100

  VSI Name: aaa

  PW State: Up

  PW Status Communication: Notification method

  PW ID FEC (Local/Remote):

    Local AII   : (1.1.1.9, 3.3.3.9)

    Remote AII  : (3.3.3.9, 1.1.1.9)

    PW Type     : VLAN/VLAN

    Group ID    : 0/0

    Label       : 1554/1416

    Control Word: Disabled/Disabled

    VCCV CV Type: -/-

    VCCV CC Type: -/-

    Flow Label  : -/-

    MTU         : 1500/1500

    PW Status   : PW forwarding/PW forwarding

Configuration files

·     PE 1

#

 sysname PE1

#

ospf 1

 area 0.0.0.0

  network 1.1.1.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 30.1.1.0 0.0.0.255

#

 mpls lsr-id 1.1.1.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 auto-discovery bgp

  route-distinguisher 1:1

  vpn-target 1:1 export-extcommunity

  vpn-target 1:1 import-extcommunity

  signaling-protocol ldp

   vpls-id 100:100

#

interface LoopBack0

 ip address 1.1.1.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 30.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

bgp 100

 peer 2.2.2.9 as-number 100

 peer 2.2.2.9 connect-interface LoopBack0

 peer 3.3.3.9 as-number 100

 peer 3.3.3.9 connect-interface LoopBack0

 #

 address-family l2vpn

  peer 2.2.2.9 enable

  peer 3.3.3.9 enable

#

return

·     PE 2

#

 sysname PE2

#

ospf 1

 area 0.0.0.0

  network 2.2.2.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 2.2.2.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 auto-discovery bgp

  route-distinguisher 1:1

  vpn-target 1:1 export-extcommunity

  vpn-target 1:1 import-extcommunity

  signaling-protocol ldp

   vpls-id 100:100

#

interface LoopBack0

 ip address 2.2.2.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

bgp 100

 peer 1.1.1.9 as-number 100

 peer 1.1.1.9 connect-interface LoopBack0

 peer 3.3.3.9 as-number 100

 peer 3.3.3.9 connect-interface LoopBack0

 #

 address-family l2vpn

  peer 1.1.1.9 enable

  peer 3.3.3.9 enable

#

return

·     PE 3

#

 sysname PE3

#

ospf 1

 area 0.0.0.0

  network 3.3.3.9 0.0.0.0

  network 30.1.1.0 0.0.0.255

  network 40.1.1.0 0.0.0.255

#

 mpls lsr-id 3.3.3.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 auto-discovery bgp

  route-distinguisher 1:1

  vpn-target 1:1 export-extcommunity

  vpn-target 1:1 import-extcommunity

  signaling-protocol ldp

   vpls-id 100:100

#

interface LoopBack0

 ip address 3.3.3.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 30.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.3 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

bgp 100

 peer 1.1.1.9 as-number 100

 peer 1.1.1.9 connect-interface LoopBack0

 peer 2.2.2.9 as-number 100

 peer 2.2.2.9 connect-interface LoopBack0

 #

 address-family l2vpn

  peer 1.1.1.9 enable

  peer 2.2.2.9 enable

#

return

Example: Configuring H-VPLS using MPLS access

Network configuration

Configure an H-VPLS network using MPLS access to avoid full-mesh PW configuration. The H-VPLS uses LDP as the PW signaling protocol.

Figure 5 Network diagram

 

Table 5 Interface label and interface name mappings

Interface label

Interface name

Interface1

Ten-GigabitEthernet3/0/1

Interface2

Ten-GigabitEthernet3/0/2

Interface3

Ten-GigabitEthernet3/0/3

 

Procedure

1.     Configure UPE:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname UPE

[UPE] interface loopback 0

[UPE-LoopBack0] ip address 1.1.1.9 32

[UPE-LoopBack0] quit

[UPE] mpls lsr-id 1.1.1.9

[UPE] mpls ldp

[UPE-ldp] quit

# Enable L2VPN.

[UPE] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to NPE 1), and enable LDP on the interface.

[UPE] interface ten-gigabitethernet 3/0/2

[UPE-Ten-GigabitEthernet3/0/2] ip address 10.1.1.1 24

[UPE-Ten-GigabitEthernet3/0/2] mpls enable

[UPE-Ten-GigabitEthernet3/0/2] mpls ldp enable

[UPE-Ten-GigabitEthernet3/0/2] quit

# Configure OSPF for LDP to create LSPs.

[UPE] ospf

[UPE-ospf-1] area 0

[UPE-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[UPE-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

[UPE-ospf-1-area-0.0.0.0] quit

[UPE-ospf-1] quit

# Configure VSI aaa to use LDP to establish a U-PW to NPE 1.

[UPE] vsi aaa

[UPE-vsi-aaa] pwsignaling ldp

[UPE-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[UPE-vsi-aaa-ldp-2.2.2.9-500] quit

[UPE-vsi-aaa-ldp] quit

[UPE-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[UPE] interface ten-gigabitethernet 3/0/1

[UPE-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[UPE-Ten-GigabitEthernet3/0/1] quit

2.     Configure NPE 1:

# Configure IS-IS for LDP to create LSPs.

<Sysname> system-view

[Sysname] sysname NPE1

[NPE1] isis 1

[NPE1-isis-1] is-level level-1

[NPE1-isis-1] network-entity 10.0000.0000.0001.00

[NPE1-isis-1] quit

# Configure basic MPLS.

[NPE1] interface loopback 0

[NPE1-LoopBack0] ip address 2.2.2.9 32

[NPE1-LoopBack0] isis enable 1

[NPE1-LoopBack0] quit

[NPE1] mpls lsr-id 2.2.2.9

[NPE1] mpls ldp

[NPE1–ldp] quit

# Enable L2VPN.

[NPE1] l2vpn enable

# Configure OSPF for LDP to create LSPs.

[NPE1] ospf

[NPE1-ospf-1] area 0

[NPE1-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[NPE1-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0

[NPE1-ospf-1-area-0.0.0.0] quit

[NPE1-ospf-1] quit

# Configure Ten-GigabitEthernet3/0/1 (the interface connected to the UPE), and enable LDP on the interface.

[NPE1] interface ten-gigabitethernet 3/0/1

[NPE1-Ten-GigabitEthernet3/0/1] ip address 10.1.1.2 24

[NPE1-Ten-GigabitEthernet3/0/1] mpls enable

[NPE1-Ten-GigabitEthernet3/0/1] mpls ldp enable

[NPE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to the NPE 3), and enable LDP on the interface.

[NPE1] interface ten-gigabitethernet 3/0/2

[NPE1-Ten-GigabitEthernet3/0/2] ip address 30.1.1.1 24

[NPE1-Ten-GigabitEthernet3/0/2] mpls enable

[NPE1-Ten-GigabitEthernet3/0/2] mpls ldp enable

[NPE1-Ten-GigabitEthernet3/0/2] isis enable 1

[NPE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to the NPE 2), and enable LDP on the interface.

[NPE1] interface ten-gigabitethernet 3/0/3

[NPE1-Ten-GigabitEthernet3/0/3] ip address 20.1.1.1 24

[NPE1-Ten-GigabitEthernet3/0/3] mpls enable

[NPE1-Ten-GigabitEthernet3/0/3] mpls ldp enable

[NPE1-Ten-GigabitEthernet3/0/3] isis enable 1

[NPE1-Ten-GigabitEthernet3/0/3] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, establish a U-PW to the UPE, and establish N-PWs to NPE 2 and NPE 3.

[NPE1] vsi aaa

[NPE1-vsi-aaa] pwsignaling ldp

[NPE1-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500 no-split-horizon

[NPE1-vsi-aaa-ldp-1.1.1.9-500] quit

[NPE1-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500

[NPE1-vsi-aaa-ldp-3.3.3.9-500] quit

[NPE1-vsi-aaa-ldp] peer 4.4.4.9 pw-id 500

[NPE1-vsi-aaa-ldp-4.4.4.9-500] quit

[NPE1-vsi-aaa-ldp] quit

[NPE1-vsi-aaa] quit

3.     Configure NPE 2:

# Configure IS-IS for LDP to create LSPs.

<Sysname> system-view

[Sysname] sysname NPE2

[NPE2] isis 1

[NPE2-isis-1] is-level level-1

[NPE2-isis-1] network-entity 10.0000.0000.0002.00

[NPE2-isis-1] quit

# Configure basic MPLS.

[NPE2] interface loopback 0

[NPE2-LoopBack0] ip address 3.3.3.9 32

[NPE2-LoopBack0] isis enable 1

[NPE2-LoopBack0] quit

[NPE2] mpls lsr-id 3.3.3.9

[NPE2] mpls ldp

[NPE2–ldp] quit

# Enable L2VPN.

[NPE2] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to the NPE 1), and enable LDP on the interface.

[NPE2] interface ten-gigabitethernet 3/0/2

[NPE2-Ten-GigabitEthernet3/0/2] ip address 20.1.1.2 24

[NPE2-Ten-GigabitEthernet3/0/2] mpls enable

[NPE2-Ten-GigabitEthernet3/0/2] mpls ldp enable

[NPE2-Ten-GigabitEthernet3/0/2] isis enable 1

[NPE2-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to the NPE 3), and enable LDP on the interface.

[NPE2] interface ten-gigabitethernet 3/0/3

[NPE2-Ten-GigabitEthernet3/0/3] ip address 40.1.1.1 24

[NPE2-Ten-GigabitEthernet3/0/3] mpls enable

[NPE2-Ten-GigabitEthernet3/0/3] mpls ldp enable

[NPE2-Ten-GigabitEthernet3/0/3] isis enable 1

[NPE2-Ten-GigabitEthernet3/0/3] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish N-PWs to NPE 1 and NPE 3.

[NPE2] vsi aaa

[NPE2-vsi-aaa] pwsignal ldp

[NPE2-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[NPE2-vsi-aaa-ldp-2.2.2.9-500] quit

[NPE2-vsi-aaa-ldp] peer 4.4.4.9 pw-id 500

[NPE2-vsi-aaa-ldp-4.4.4.9-500] quit

[NPE2-vsi-aaa-ldp] quit

[NPE2-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[NPE2] interface ten-gigabitethernet 3/0/1

[NPE2-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[NPE2-Ten-GigabitEthernet3/0/1] quit

4.     Configure NPE 3:

# Configure IS-IS for LDP to create LSPs.

<Sysname> system-view

[Sysname] sysname NPE3

[NPE3] isis 1

[NPE3-isis-1] is-level level-1

[NPE3-isis-1] network-entity 10.0000.0000.0003.00

[NPE3-isis-1] quit

# Configure basic MPLS.

<NPE3> system-view

[NPE3] interface loopback 0

[NPE3-LoopBack0] ip address 4.4.4.9 32

[NPE3-LoopBack0] isis enable 1

[NPE3-LoopBack0] quit

[NPE3] mpls lsr-id 4.4.4.9

[NPE3] mpls ldp

[NPE3–ldp] quit

# Enable L2VPN.

[NPE3] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to the NPE 1), and enable LDP on the interface.

[NPE3] interface ten-gigabitethernet 3/0/2

[NPE3-Ten-GigabitEthernet3/0/2] ip address 30.1.1.2 24

[NPE3-Ten-GigabitEthernet3/0/2] mpls enable

[NPE3-Ten-GigabitEthernet3/0/2] mpls ldp enable

[NPE3-Ten-GigabitEthernet3/0/2] isis enable 1

[NPE3-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to the NPE 2), and enable LDP on the interface.

[NPE3] interface ten-gigabitethernet 3/0/3

[NPE3-Ten-GigabitEthernet3/0/3] ip address 40.1.1.2 24

[NPE3-Ten-GigabitEthernet3/0/3] mpls enable

[NPE3-Ten-GigabitEthernet3/0/3] mpls ldp enable

[NPE3-Ten-GigabitEthernet3/0/3] isis enable 1

[NPE3-Ten-GigabitEthernet3/0/3] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish N-PWs to NPE 1 and NPE 2.

[NPE3] vsi aaa

[NPE3-vsi-aaa] pwsignal ldp

[NPE3-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[NPE3-vsi-aaa-ldp-2.2.2.9-500] quit

[NPE3-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500

[NPE3-vsi-aaa-ldp-3.3.3.9-500] quit

[NPE3-vsi-aaa-ldp] quit

[NPE3-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[NPE3] interface ten-gigabitethernet 3/0/1

[NPE3-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[NPE3-Ten-GigabitEthernet3/0/1] quit

Verifying the configuration

# Verify that PWs in up state have been established on each PE.

[UPE] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1277       Out Label: 1277

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x460000000

    Tunnel NHLFE IDs    : 1030

    Admin PW            : -

[NPE1] display l2vpn pw verbose

VSI Name: aaa

  Peer: 1.1.1.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1277       Out Label: 1277

    MTU                 : 1500

    PW Attributes       : Main, No-split-horizon

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x460000000

    Tunnel NHLFE IDs    : 1030

    Admin PW            : -

  Peer: 3.3.3.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1276       Out Label: 1275

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x560000001

    Tunnel NHLFE IDs    : 1031

    Admin PW            : -

  Peer: 4.4.4.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 10          PW State : Up

    In Label            : 1278       Out Label: 1279

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x570000001

    Tunnel NHLFE IDs    : 1032

    Admin PW            : -

[NPE2] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1275       Out Label: 1276

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x660000000

    Tunnel NHLFE IDs    : 1031

    Admin PW            : -

  Peer: 4.4.4.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1277       Out Label: 1277

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x670000000

    Tunnel NHLFE IDs    : 1032

    Admin PW            : -

[NPE3] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1279       Out Label: 1278

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x660000000

    Tunnel NHLFE IDs    : 1031

    Admin PW            : -

  Peer: 3.3.3.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1277       Out Label: 1277

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x670000000

    Tunnel NHLFE IDs    : 1032

    Admin PW            : -

Configuration files

·     NPE 1

#

 sysname NPE1

#

isis 1

 is-level level-1

 network-entity 10.0000.0000.0001.00

#

ospf 1

 area 0.0.0.0

  network 2.2.2.9 0.0.0.0

  network 10.1.1.0 0.0.0.255

#

 mpls lsr-id 2.2.2.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 1.1.1.9 pw-id 500 no-split-horizon

  peer 3.3.3.9 pw-id 500

  peer 4.4.4.9 pw-id 500

#

interface LoopBack0

 ip address 2.2.2.9 255.255.255.255

 isis enable 1

#

interface Ten-GigabitEthernet3/0/1

 ip address 10.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/2

 ip address 30.1.1.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 20.1.1.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

return

·     NPE 2

#

 sysname NPE2

#

isis 1

 is-level level-1

 network-entity 10.0000.0000.0002.00

#

 mpls lsr-id 3.3.3.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 2.2.2.9 pw-id 500

  peer 4.4.4.9 pw-id 500

#

interface LoopBack0

 ip address 3.3.3.9 255.255.255.255

 isis enable 1

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

·     NPE 3

#

 sysname NPE3

#

isis 1

 is-level level-1

 network-entity 10.0000.0000.0003.00

#

 mpls lsr-id 4.4.4.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 2.2.2.9 pw-id 500

  peer 3.3.3.9 pw-id 500

#

interface LoopBack0

 ip address 4.4.4.9 255.255.255.255

 isis enable 1

#

interface Ten-GigabitEthernet3/0/2

 ip address 30.1.1.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 40.1.1.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

·     UPE

#

 sysname UPE

#

ospf 1

 area 0.0.0.0

  network 1.1.1.9 0.0.0.0

  network 10.1.1.0 0.0.0.255

#

 mpls lsr-id 1.1.1.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 2.2.2.9 pw-id 500

#

interface LoopBack0

 ip address 1.1.1.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 10.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

Example: Configuring hub-spoke VPLS

Network configuration

Configure a hub-spoke VPLS network to centralize management of the traffic from each site. The VPLS uses LDP as the PW signaling protocol.

Figure 6 Network diagram

 

Table 6 Interface label and interface name mappings

Interface label

Interface name

Interface1

Ten-GigabitEthernet3/0/1

Interface2

Ten-GigabitEthernet3/0/2

Interface3

Ten-GigabitEthernet3/0/3

 

Procedure

1.     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 ldp

[Spoke-PE1-ldp] quit

# Enable L2VPN.

[Spoke-PE1] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to Hub-PE), and enable LDP on the interface.

[Spoke-PE1] interface ten-gigabitethernet 3/0/2

[Spoke-PE1-Ten-GigabitEthernet3/0/2] ip address 10.1.1.1 24

[Spoke-PE1-Ten-GigabitEthernet3/0/2] mpls enable

[Spoke-PE1-Ten-GigabitEthernet3/0/2] mpls ldp enable

[Spoke-PE1-Ten-GigabitEthernet3/0/2] quit

# Configure OSPF for LDP to create LSPs.

[Spoke-PE1] ospf

[Spoke-PE1-ospf-1] area 0

[Spoke-PE1-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[Spoke-PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

[Spoke-PE1-ospf-1-area-0.0.0.0] quit

[Spoke-PE1-ospf-1] quit

# Create VSI aaa, enable hub-spoke capability for the VSI, specify the PW signaling protocol as LDP, establish a PW to Hub-PE, and specify the PW as the hub link.

[Spoke-PE1] vsi aaa hub-spoke

[Spoke-PE1-vsi-aaa] pwsignaling ldp

[Spoke-PE1-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500 hub

[Spoke-PE1-vsi-aaa-ldp-3.3.3.9-500] quit

[Spoke-PE1-vsi-aaa-ldp] quit

[Spoke-PE1-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[Spoke-PE1] interface ten-gigabitethernet 3/0/1

[Spoke-PE1-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[Spoke-PE1-Ten-GigabitEthernet3/0/1] quit

2.     Configure Spoke-PE 2:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname Spoke-PE2

[Spoke-PE2] interface loopback 0

[Spoke-PE2-LoopBack0] ip address 2.2.2.9 32

[Spoke-PE2-LoopBack0] quit

[Spoke-PE2] mpls lsr-id 2.2.2.9

[Spoke-PE2] mpls ldp

[Spoke-PE2–ldp] quit

# Enable L2VPN.

[Spoke-PE2] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to Hub-PE), and enable LDP on the interface.

[Spoke-PE2] interface ten-gigabitethernet 3/0/2

[Spoke-PE2-Ten-GigabitEthernet3/0/2] ip address 20.1.1.2 24

[Spoke-PE2-Ten-GigabitEthernet3/0/2] mpls enable

[Spoke-PE2-Ten-GigabitEthernet3/0/2] mpls ldp enable

[Spoke-PE2-Ten-GigabitEthernet3/0/2] quit

# Configure OSPF for LDP to create LSPs.

[Spoke-PE2] ospf

[Spoke-PE2-ospf-1] area 0

[Spoke-PE2-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[Spoke-PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0

[Spoke-PE2-ospf-1-area-0.0.0.0] quit

[Spoke-PE2-ospf-1] quit

# Create VSI aaa, enable hub-spoke capability for the VSI, specify the PW signaling protocol as LDP, establish a PW to Hub-PE, and specify the PW as the hub link.

[Spoke-PE2] vsi aaa hub-spoke

[Spoke-PE2-vsi-aaa] pwsignaling ldp

[Spoke-PE2-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500 hub

[Spoke-PE2-vsi-aaa-ldp-3.3.3.9-500] quit

[Spoke-PE2-vsi-aaa-ldp] quit

[Spoke-PE2-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[Spoke-PE2] interface ten-gigabitethernet 3/0/1

[Spoke-PE2-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[Spoke-PE2-Ten-GigabitEthernet3/0/1] quit

3.     Configure Hub-PE:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname Hub-PE

[Hub-PE] interface loopback 0

[Hub-PE-LoopBack0] ip address 3.3.3.9 32

[Hub-PE-LoopBack0] quit

[Hub-PE] mpls lsr-id 3.3.3.9

[Hub-PE] mpls ldp

[Hub-PE–ldp] quit

# Enable L2VPN.

[Hub-PE] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to Spoke-PE 1), and enable LDP on the interface.

[Hub-PE] interface ten-gigabitethernet 3/0/2

[Hub-PE-Ten-GigabitEthernet3/0/2] ip address 10.1.1.2 24

[Hub-PE-Ten-GigabitEthernet3/0/2] mpls enable

[Hub-PE-Ten-GigabitEthernet3/0/2] mpls ldp enable

[Hub-PE-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to Spoke-PE 2), and enable LDP on the interface.

[Hub-PE] interface ten-gigabitethernet 3/0/3

[Hub-PE-Ten-GigabitEthernet3/0/3] ip address 20.1.1.1 24

[Hub-PE-Ten-GigabitEthernet3/0/3] mpls enable

[Hub-PE-Ten-GigabitEthernet3/0/3] mpls ldp enable

[Hub-PE-Ten-GigabitEthernet3/0/3] quit

# Configure OSPF for LDP to create LSPs.

[Hub-PE] ospf

[Hub-PE-ospf-1] area 0

[Hub-PE-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[Hub-PE-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[Hub-PE-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0

[Hub-PE-ospf-1-area-0.0.0.0] quit

[Hub-PE-ospf-1] quit

# Create VSI aaa, enable hub-spoke capability for the VSI, specify the PW signaling protocol as LDP, and establish PWs to Spoke-PE 1 and Spoke-PE 2.

[Hub-PE] vsi aaa hub-spoke

[Hub-PE-vsi-aaa] pwsignaling ldp

[Hub-PE-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500

[Hub-PE-vsi-aaa-ldp-1.1.1.9-500] quit

[Hub-PE-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[Hub-PE-vsi-aaa-ldp-2.2.2.9-500] quit

[Hub-PE-vsi-aaa-ldp] quit

[Hub-PE-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa, and specify the AC connected to the CE as a hub link.

[Hub-PE] interface ten-gigabitethernet 3/0/1

[Hub-PE-Ten-GigabitEthernet3/0/1] xconnect vsi aaa hub

[Hub-PE-Ten-GigabitEthernet3/0/1] quit

Verifying the configuration

# Verify that PWs in up state have been established on each PE.

[Spoke-PE1] display l2vpn pw verbose

VSI Name: aaa

  Peer: 3.3.3.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1276       Out Label: 1274

    MTU                 : 1500

    PW Attributes       : Main, Hub link

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x560000000

    Tunnel NHLFE IDs    : 1031

    Admin PW            : -

[Spoke-PE2] display l2vpn pw verbose

VSI Name: aaa

  Peer: 3.3.3.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1275       Out Label: 1273

    MTU                 : 1500

    PW Attributes       : Main, Hub link

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x660000000

    Tunnel NHLFE IDs    : 1032

    Admin PW            : -

[Hub-PE] display l2vpn pw verbose

VSI Name: aaa

  Peer: 1.1.1.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1274       Out Label: 1276

    MTU                 : 1500

    PW Attributes       : Main, Spoke link

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x760000000

    Tunnel NHLFE IDs    : 1032

    Admin PW            : -

  Peer: 2.2.2.9          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1273       Out Label: 1275

    MTU                 : 1500

    PW Attributes       : Main, Spoke link

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x860000001

    Tunnel NHLFE IDs    : 1033

    Admin PW            : -

Configuration files

·     Hub-PE

#

 sysname Hub-PE

#

ospf 1

 area 0.0.0.0

  network 3.3.3.9 0.0.0.0

  network 10.1.1.0 0.0.0.255

  network 20.1.1.0 0.0.0.255

#

 mpls lsr-id 3.3.3.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa hub-spoke

 pwsignaling ldp

  peer 1.1.1.9 pw-id 500

  peer 2.2.2.9 pw-id 500

#

interface LoopBack0

 ip address 3.3.3.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 10.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 20.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

·     Spoke-PE 1

#

 sysname Spoke-PE1

#

ospf 1

 area 0.0.0.0

  network 1.1.1.9 0.0.0.0

  network 10.1.1.0 0.0.0.255

#

 mpls lsr-id 1.1.1.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa hub-spoke

 pwsignaling ldp

  peer 3.3.3.9 pw-id 500 hub

#

interface LoopBack0

 ip address 1.1.1.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 10.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

·     Spoke-PE 2

#

 sysname Spoke-PE2

#

ospf 1

 area 0.0.0.0

  network 2.2.2.9 0.0.0.0

  network 20.1.1.0 0.0.0.255

#

 mpls lsr-id 2.2.2.9

#

mpls ldp

#

 l2vpn enable

#

vsi aaa hub-spoke

 pwsignaling ldp

  peer 3.3.3.9 pw-id 500 hub

#

interface LoopBack0

 ip address 2.2.2.9 255.255.255.255

#

interface Ten-GigabitEthernet3/0/2

 ip address 20.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

Example: Configuring H-VPLS UPE dual homing

Network configuration

To improve reliability of the H-VPLS network, the UPE establishes a U-PW with NPE 1 and NPE 2. The U-PW between UPE and NPE 1 is the primary PW and that between UPE and NPE 2 is the backup PW. The backup PW works only when the primary PW fails.

The H-VPLS uses LDP as the PW signaling protocol.

Figure 7 Network diagram

Table 7 Interface label and interface name mappings

Interface label

Interface name

Interface1

Ten-GigabitEthernet3/0/1

Interface2

Ten-GigabitEthernet3/0/2

Interface3

Ten-GigabitEthernet3/0/3

Interface4

Ten-GigabitEthernet3/0/4

 

Procedure

1.     Configure UPE:

# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname UPE

[UPE] interface loopback 0

[UPE-LoopBack0] ip address 1.1.1.1 32

[UPE-LoopBack0] quit

[UPE] mpls lsr-id 1.1.1.1

[UPE] mpls ldp

[UPE-ldp] quit

# Enable L2VPN.

[UPE] l2vpn enable

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to NPE 2), and enable LDP on the interface.

[UPE] interface ten-gigabitethernet 3/0/3

[UPE-Ten-GigabitEthernet3/0/3] ip address 13.1.1.1 24

[UPE-Ten-GigabitEthernet3/0/3] mpls enable

[UPE-Ten-GigabitEthernet3/0/3] mpls ldp enable

[UPE-Ten-GigabitEthernet3/0/3] quit

# Configure Ten-GigabitEthernet3/0/4 (the interface connected to NPE 1), and enable LDP on the interface.

[UPE] interface ten-gigabitethernet 3/0/4

[UPE-Ten-GigabitEthernet3/0/4] ip address 12.1.1.1 24

[UPE-Ten-GigabitEthernet3/0/4] mpls enable

[UPE-Ten-GigabitEthernet3/0/4] mpls ldp enable

[UPE-Ten-GigabitEthernet3/0/4] quit

# Configure OSPF for LDP to create LSPs.

[UPE] ospf

[UPE-ospf-1] area 0

[UPE-ospf-1-area-0.0.0.0] network 12.1.1.0 0.0.0.255

[UPE-ospf-1-area-0.0.0.0] network 13.1.1.0 0.0.0.255

[UPE-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0

[UPE-ospf-1-area-0.0.0.0] quit

[UPE-ospf-1] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish the primary PW to NPE 1 and the backup PW to NPE 2.

[UPE] vsi aaa

[UPE-vsi-aaa] pwsignaling ldp

[UPE-vsi-aaa-ldp] peer 2.2.2.2 pw-id 500

[UPE-vsi-aaa-ldp-2.2.2.2-500] backup-peer 3.3.3.3 pw-id 500

[UPE-vsi-aaa-ldp-2.2.2.2-500-backup] quit

[UPE-vsi-aaa-ldp-2.2.2.2-500] quit

[UPE-vsi-aaa-ldp] quit

[UPE-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[UPE] interface ten-gigabitethernet 3/0/1

[UPE-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[UPE-Ten-GigabitEthernet3/0/1] quit

# Bind interface GigabitEthernet 1/0/2 to VSI aaa.

[UPE] interface gigabitethernet 1/0/2

[UPE-GigabitEthernet1/0/2] xconnect vsi aaa

[UPE-GigabitEthernet1/0/2] quit

2.     Configure NPE 1:

# Configure IS-IS for LDP to create LSPs.

<Sysname> system-view

[Sysname] sysname NPE1

[NPE1] isis 1

[NPE1-isis-1] is-level level-1

[NPE1-isis-1] network-entity 10.0000.0000.0001.00

[NPE1-isis-1] quit

# Configure basic MPLS.

[NPE1] interface loopback 0

[NPE1-LoopBack0] ip address 2.2.2.2 32

[NPE1-LoopBack0] isis enable 1

[NPE1-LoopBack0] quit

[NPE1] mpls lsr-id 2.2.2.2

[NPE1] mpls ldp

[NPE1–ldp] quit

# Enable L2VPN.

[NPE1] l2vpn enable

# Configure OSPF for LDP to create LSPs.

[NPE1] ospf

[NPE1-ospf-1] area 0

[NPE1-ospf-1-area-0.0.0.0] network 12.1.1.0 0.0.0.255

[NPE1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0

[NPE1-ospf-1-area-0.0.0.0] quit

[NPE1-ospf-1] quit

# Configure Ten-GigabitEthernet3/0/1 (the interface connected to the UPE), and enable LDP on the interface.

[NPE1] interface ten-gigabitethernet 3/0/1

[NPE1-Ten-GigabitEthernet3/0/1] ip address 12.1.1.2 24

[NPE1-Ten-GigabitEthernet3/0/1] mpls enable

[NPE1-Ten-GigabitEthernet3/0/1] mpls ldp enable

[NPE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to NPE 2), and enable LDP on the interface.

[NPE1] interface ten-gigabitethernet 3/0/2

[NPE1-Ten-GigabitEthernet3/0/2] ip address 17.1.1.1 24

[NPE1-Ten-GigabitEthernet3/0/2] mpls enable

[NPE1-Ten-GigabitEthernet3/0/2] mpls ldp enable

[NPE1-Ten-GigabitEthernet3/0/2] isis enable 1

[NPE1-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to NPE 3), and enable LDP on the interface.

[NPE1] interface ten-gigabitethernet 3/0/3

[NPE1-Ten-GigabitEthernet3/0/3] ip address 15.1.1.1 24

[NPE1-Ten-GigabitEthernet3/0/3] mpls enable

[NPE1-Ten-GigabitEthernet3/0/3] mpls ldp enable

[NPE1-Ten-GigabitEthernet3/0/3] isis enable 1

[NPE1-Ten-GigabitEthernet3/0/3] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish PWs to UPE, NPE 2, and NPE 3.

[NPE1] vsi aaa

[NPE1-vsi-aaa] pwsignaling ldp

[NPE1-vsi-aaa-ldp] peer 1.1.1.1 pw-id 500 no-split-horizon

[NPE1-vsi-aaa-ldp-1.1.1.1-500] quit

[NPE1-vsi-aaa-ldp] peer 3.3.3.3 pw-id 500

[NPE1-vsi-aaa-ldp-3.3.3.3-500] quit

[NPE1-vsi-aaa-ldp] peer 4.4.4.4 pw-id 500

[NPE1-vsi-aaa-ldp-4.4.4.4-500] quit

[NPE1-vsi-aaa-ldp] quit

[NPE1-vsi-aaa] quit

3.     Configure NPE 2:

# Configure IS-IS for LDP to create LSPs.

<Sysname> system-view

[Sysname] sysname NPE2

[NPE2] isis 1

[NPE2-isis-1] is-level level-1

[NPE2-isis-1] network-entity 10.0000.0000.0002.00

[NPE2-isis-1] quit

# Configure basic MPLS.

[NPE2] interface loopback 0

[NPE2-LoopBack0] ip address 3.3.3.3 32

[NPE2-LoopBack0] isis enable 1

[NPE2-LoopBack0] quit

[NPE2] mpls lsr-id 3.3.3.3

[NPE2] mpls ldp

[NPE2–ldp] quit

# Enable L2VPN.

[NPE2] l2vpn enable

# Configure OSPF for LDP to create LSPs.

[NPE2] ospf

[NPE2-ospf-1] area 0

[NPE2-ospf-1-area-0.0.0.0] network 13.1.1.0 0.0.0.255

[NPE2-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0

[NPE2-ospf-1-area-0.0.0.0] quit

[NPE2-ospf-1] quit

# Configure Ten-GigabitEthernet3/0/1 (the interface connected to the UPE), and enable LDP on the interface.

[NPE2] interface ten-gigabitethernet 3/0/1

[NPE2-Ten-GigabitEthernet3/0/1] ip address 13.1.1.2 24

[NPE2-Ten-GigabitEthernet3/0/1] mpls enable

[NPE2-Ten-GigabitEthernet3/0/1] mpls ldp enable

[NPE2-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to NPE 1), and enable LDP on the interface.

[NPE2] interface ten-gigabitethernet 3/0/2

[NPE2-Ten-GigabitEthernet3/0/2] ip address 17.1.1.2 24

[NPE2-Ten-GigabitEthernet3/0/2] mpls enable

[NPE2-Ten-GigabitEthernet3/0/2] mpls ldp enable

[NPE2-Ten-GigabitEthernet3/0/2] isis enable 1

[NPE2-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to NPE 3), and enable LDP on the interface.

[NPE2] interface ten-gigabitethernet 3/0/3

[NPE2-Ten-GigabitEthernet3/0/3] ip address 16.1.1.1 24

[NPE2-Ten-GigabitEthernet3/0/3] mpls enable

[NPE2-Ten-GigabitEthernet3/0/3] mpls ldp enable

[NPE2-Ten-GigabitEthernet3/0/3] isis enable 1

[NPE2-Ten-GigabitEthernet3/0/3] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish PWs to UPE, NPE 1, and NPE 3.

[NPE2] vsi aaa

[NPE2-vsi-aaa] pwsignaling ldp

[NPE2-vsi-aaa-ldp] peer 1.1.1.1 pw-id 500 no-split-horizon

[NPE2-vsi-aaa-ldp-1.1.1.1-500] quit

[NPE2-vsi-aaa-ldp] peer 2.2.2.2 pw-id 500

[NPE2-vsi-aaa-ldp-2.2.2.2-500] quit

[NPE2-vsi-aaa-ldp] peer 4.4.4.4 pw-id 500

[NPE2-vsi-aaa-ldp-4.4.4.4-500] quit

[NPE2-vsi-aaa-ldp] quit

[NPE2-vsi-aaa] quit

4.     Configure NPE 3:

# Configure IS-IS for LDP to create LSPs.

<Sysname> system-view

[Sysname] sysname NPE3

[NPE3] isis 1

[NPE3-isis-1] is-level level-1

[NPE3-isis-1] network-entity 10.0000.0000.0003.00

[NPE3-isis-1] quit

# Configure basic MPLS.

[NPE3] interface loopback 0

[NPE3-LoopBack0] ip address 4.4.4.4 32

[NPE3-LoopBack0] isis enable 1

[NPE3-LoopBack0] quit

[NPE3] mpls lsr-id 4.4.4.4

[NPE3] mpls ldp

[NPE3–ldp] quit

# Enable L2VPN.

[NPE3] l2vpn enable

# Configure Ten-GigabitEthernet3/0/2 (the interface connected to NPE 1), and enable LDP on the interface.

[NPE3] interface ten-gigabitethernet 3/0/2

[NPE3-Ten-GigabitEthernet3/0/2] ip address 15.1.1.2 24

[NPE3-Ten-GigabitEthernet3/0/2] mpls enable

[NPE3-Ten-GigabitEthernet3/0/2] mpls ldp enable

[NPE3-Ten-GigabitEthernet3/0/2] isis enable 1

[NPE3-Ten-GigabitEthernet3/0/2] quit

# Configure Ten-GigabitEthernet3/0/3 (the interface connected to NPE 2), and enable LDP on the interface.

[NPE3] interface ten-gigabitethernet 3/0/3

[NPE3-Ten-GigabitEthernet3/0/3] ip address 16.1.1.2 24

[NPE3-Ten-GigabitEthernet3/0/3] mpls enable

[NPE3-Ten-GigabitEthernet3/0/3] mpls ldp enable

[NPE3-Ten-GigabitEthernet3/0/3] isis enable 1

[NPE3-Ten-GigabitEthernet3/0/3] quit

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish PWs to NPE 1 and NPE 2.

[NPE3] vsi aaa

[NPE3-vsi-aaa] pwsignaling ldp

[NPE3-vsi-aaa-ldp] peer 2.2.2.2 pw-id 500

[NPE3-vsi-aaa-ldp-2.2.2.2-500] quit

[NPE3-vsi-aaa-ldp] peer 3.3.3.3 pw-id 500

[NPE3-vsi-aaa-ldp-3.3.3.3-500] quit

[NPE3-vsi-aaa-ldp] quit

[NPE3-vsi-aaa] quit

# Bind interface Ten-GigabitEthernet 3/0/1 to VSI aaa.

[NPE3] interface ten-gigabitethernet 3/0/1

[NPE3-Ten-GigabitEthernet3/0/1] xconnect vsi aaa

[NPE3-Ten-GigabitEthernet3/0/1] quit

Verifying the configuration

# Verify that PWs in up state have been established on each PE.

[UPE] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.2          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1151       Out Label: 1279

    Wait to Restore Time: 0 sec

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x260000002

    Tunnel NHLFE IDs    : 1027

    Admin PW            : -

  Peer: 3.3.3.3          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Blocked

    In Label            : 1150       Out Label: 1279

    MTU                 : 1500

    PW Attributes       : Backup

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x360000003

    Tunnel NHLFE IDs    : 1025

    Admin PW            : -

[NPE1] display l2vpn pw verbose

VSI Name: aaa

  Peer: 1.1.1.1          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1279       Out Label: 1151

    MTU                 : 1500

    PW Attributes       : Main, No-split-horizon

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x60000000

    Tunnel NHLFE IDs    : 1026

    Admin PW            : -

  Peer: 3.3.3.3          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1280       Out Label: 1290

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x160000005

    Tunnel NHLFE IDs    : 1027

    Admin PW            : -

  Peer: 4.4.4.4          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 10         PW State : Up

    In Label            : 1278       Out Label: 1279

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x160000001

    Tunnel NHLFE IDs    : 1028

    Admin PW            : -

[NPE2] display l2vpn pw verbose

VSI Name: aaa

  Peer: 1.1.1.1          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1279       Out Label: 1150

    MTU                 : 1500

    PW Attributes       : Main, No-split-horizon

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x60000000

    Tunnel NHLFE IDs    : 1026

    Admin PW            : -

  Peer: 2.2.2.2          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1290       Out Label: 1280

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x160000008

    Tunnel NHLFE IDs    : 1027

    Admin PW            : -

  Peer: 4.4.4.4          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 10         PW State : Up

    In Label            : 1278       Out Label: 1278

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x160000001

    Tunnel NHLFE IDs    : 1028

    Admin PW            : -

[NPE3] display l2vpn pw verbose

VSI Name: aaa

  Peer: 2.2.2.2          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 8          PW State : Up

    In Label            : 1279       Out Label: 1278

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x60000000

    Tunnel NHLFE IDs    : 1026

    Admin PW            : -

  Peer: 3.3.3.3          PW ID: 500

    Signaling Protocol  : LDP

    Link ID             : 9          PW State : Up

    In Label            : 1278       Out Label: 1278

    MTU                 : 1500

    PW Attributes       : Main

    VCCV CC             : -

    VCCV BFD            : -

    Flow Label          : -

    Control Word        : Disabled

    Tunnel Group ID     : 0x160000001

    Tunnel NHLFE IDs    : 1027

    Admin PW            : -

Configuration files

·     NPE 1

#

 sysname NPE1

#

isis 1

 is-level level-1

 network-entity 10.0000.0000.0001.00

#

ospf 1

 area 0.0.0.0

  network 2.2.2.2 0.0.0.0

  network 12.1.1.0 0.0.0.255

#

 mpls lsr-id 2.2.2.2

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 1.1.1.1 pw-id 500 no-split-horizon

  peer 3.3.3.3 pw-id 500

  peer 4.4.4.4 pw-id 500

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

 isis enable 1

#

interface Ten-GigabitEthernet3/0/1

 ip address 12.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/2

 ip address 17.1.1.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 15.1.1.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

return

·     NPE 2

#

 sysname NPE2

#

isis 1

 is-level level-1

 network-entity 10.0000.0000.0002.00

#

ospf 1

 area 0.0.0.0

  network 3.3.3.3 0.0.0.0

  network 13.1.1.0 0.0.0.255

#

 mpls lsr-id 3.3.3.3

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 1.1.1.1 pw-id 500 no-split-horizon

  peer 2.2.2.2 pw-id 500

  peer 4.4.4.4 pw-id 500

#

interface LoopBack0

 ip address 3.3.3.3 255.255.255.255

 isis enable 1

#

interface Ten-GigabitEthernet3/0/1

 ip address 13.1.1.2 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/2

 ip address 17.1.1.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 16.1.1.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

return

·     NPE 3

#

 sysname NPE3

#

isis 1

 is-level level-1

 network-entity 10.0000.0000.0003.00

#

 mpls lsr-id 4.4.4.4

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 2.2.2.2 pw-id 500

  peer 3.3.3.3 pw-id 500

#

interface LoopBack0

 ip address 4.4.4.4 255.255.255.255

 isis enable 1

#

interface Ten-GigabitEthernet3/0/2

 ip address 15.1.1.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/3

 ip address 16.1.1.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

·     UPE

#

 sysname UPE

#

ospf 1

 area 0.0.0.0

  network 1.1.1.1 0.0.0.0

  network 12.1.1.0 0.0.0.255

  network 13.1.1.0 0.0.0.255

#

 mpls lsr-id 1.1.1.1

#

mpls ldp

#

 l2vpn enable

#

vsi aaa

 pwsignaling ldp

  peer 2.2.2.2 pw-id 500

   backup-peer 3.3.3.3 pw-id 500

#

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

#

interface Ten-GigabitEthernet3/0/3

 ip address 13.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/4

 ip address 12.1.1.1 255.255.255.0

 mpls enable

 mpls ldp enable

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

interface Ten-GigabitEthernet3/0/1

 port link-mode route

 xconnect vsi aaa

#

return

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us