beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 286

background image

6-61

[ASBR-PE2-Vlan-interface12] quit

# Configure MPLS basic capability on PE 2 and enable MPLS LDP on the interface connected to
ASBR PE 2.

system-view

[PE2] mpls lsr-id 4.4.4.9

[PE2] mpls

[PE2-mpls] quit

[PE2] mpls ldp

[PE2-mpls-ldp] quit

[PE2] interface vlan-interface 12

[PE2-Vlan-interface12] mpls

[PE2-Vlan-interface12] mpls ldp

[PE2-Vlan-interface12] quit

After you complete the above configurations, each PE and the ASBR PE in the same AS should be
able to establish neighbor relationship. Issuing the display mpls ldp session command on the
devices, you can see that the Session State field has a value of Operational in the output information.

3) Configure VPN instances on PEs to allow CEs to access

The VPN targets for the VPN instances of the PEs must match those for the VPN instances of the
ASBR-PEs in the same AS. It is not required for PEs in different ASs.

# Configure CE 1.

system-view

[CE1] interface vlan-interface 11

[CE1-Vlan-interface11] ip address 10.1.1.1 24

[CE1-Vlan-interface11] quit

# Configure PE 1.

[PE1] ip vpn-instance vpn1

[PE1-vpn-instance-vpn1] route-distinguisher 100:1

[PE1-vpn-instance-vpn1] vpn-target 100:1 both

[PE1-vpn-instance-vpn1] quit

[PE1] interface vlan-interface 11

[PE1-Vlan-interface11] ip binding vpn-instance vpn1

[PE1-Vlan-interface11] ip address 10.1.1.2 24

[PE1-Vlan-interface11] quit

# Configure CE 2.

system-view

[CE2] interface vlan-interface 11

[CE2-Vlan-interface11] ip address 10.2.1.1 24

[CE2-Vlan-interface11] quit

# Configure PE 2.

[PE2] ip vpn-instance vpn1

[PE2-vpn-instance] route-distinguisher 200:2

[PE2-vpn-instance] vpn-target 100:1 both