beautypg.com

H3C Technologies H3C S6800 Series Switches User Manual

Page 439

background image

426

[PE2-pw-pwa] vccv bfd

[PE2-pw-pwa] vccv cc router-alert

[PE2-pw-pwa] quit

# Create cross-connect group vpna and create a cross-connect named ldp in the cross-connect
group. Bind the cross-connect to interface VLAN-interface 10 and create an LDP PW that

references the PW class pwa in the cross-connect

[PE2] xconnect-group vpna

[PE2-xcg-vpna] connection ldp

[PE2-xcg-vpna-ldp] ac interface vlan-interface 10

[PE2-xcg-vpna-ldp] peer 1.1.1.1 pw-id 20 pw-class pwa

[PE2-xcg-vpna-ldp-1.1.1.1-20] quit

[PE2-xcg-vpna-ldp] quit

[PE2-xcg-vpna] quit

4.

Configure PE 3:
# Configure an LSR ID.

system-view

[PE3] interface loopback 0

[PE3-LoopBack0] ip address 3.3.3.3 32

[PE3-LoopBack0] quit

[PE3] mpls lsr-id 3.3.3.3

# Enable global MPLS LDP.

[PE3] mpls ldp

[PE3-ldp] quit

# Establish an LDP session with PE 1.

[PE3] interface vlan-interface 13

[PE3-Vlan-interface13] ip address 13.1.1.3 24

[PE3-Vlan-interface13] mpls enable

[PE3-Vlan-interface13] mpls ldp enable

[PE3-Vlan-interface13] quit

# Configure OSPF for LDP to create LSPs.

[PE3] ospf

[PE3-ospf-1] area 0

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

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

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

[PE3-ospf-1] quit

# Enable L2VPN.

[PE3] l2vpn enable

# Create interface VLAN-interface 10 connected to CE 2. This interface does not need an IP

address.

[PE3] interface vlan-interface 10

[PE3-Vlan-interface10] quit

# Create cross-connect group vpna and create a cross-connect named ldp in the cross-connect
group. Bind the cross-connect to interface VLAN-interface 10 and create an LDP PW in the

cross-connect.

[PE3] xconnect-group vpna

[PE3-xcg-vpna] connection ldp