beautypg.com

Bgp auto-discovery ldp pw configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S12500-X Series Switches User Manual

Page 316: Enabling l2vpn

background image

305

Link ID : 10

Local Label Block : 131153/10/0

Remote Label Block : 131255/10/0

Export Route Target: 1:1

BGP auto-discovery LDP PW configuration example

Network requirements

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 79 Network diagram

Configuration procedure

1.

Configure the IGP and public tunnels. (Details not shown.)

2.

Configure PE 1:
# Configure basic MPLS.

system-view

[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

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

[PE1] bgp 100

[PE1-bgp] peer 2.2.2.9 as-number 100

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

[PE1-bgp] peer 3.3.3.9 as-number 100

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

[PE1-bgp] address-family l2vpn

[PE1-bgp-l2vpn] peer 2.2.2.9 enable

[PE1-bgp-l2vpn] peer 3.3.3.9 enable

Loop0

1.1.1.9/32

XGE1/0/1

XGE1/0/1

CE 1

VPN 1

PE 1

PE 2

Loop0

2.2.2.9/32

CE 2

VPN 1

Loop0

3.3.3.9/32

PE 3

CE 3

VPN 1

XGE1/0/1

Vlan-int20

Vlan-int20

Vlan-int30

Vlan-int30

Vlan-int40

Vlan-int40