beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 177

background image

4-17

[PE1-bgp] vpls-family

[PE1-bgp-af-vpls] peer 3.3.3.9 enable

[PE1-bgp-af-vpls] quit

[PE1-bgp] quit

# Configure the basic attributes of VPLS instance aaa, which uses LDP.

[PE1] vsi aaa static

[PE1-vsi-aaa] pwsignal ldp

[PE1-vsi-aaa-ldp] vsi-id 500

[PE1-vsi-aaa-ldp] peer 3.3.3.9

[PE1-vsi-aaa-ldp] quit

[PE1-vsi-aaa] quit

# Configure the basic attributes of VPLS instance bbb, which uses BGP.

[PE1] vsi bbb auto

[PE1-vsi-bbb] pwsignal bgp

[PE1-vsi-bbb-bgp] route-distinguisher 100:1

[PE1-vsi-bbb-bgp] vpn-target 111:1

[PE1-vsi-bbb-bgp] site 10 range 12

[PE1-vsi-bbb-bgp] quit

[PE1-vsi-bbb] quit

# On the interface connecting CE 1, create service instance 1000 to bind the interface and VLAN 100
with VPLS instance aaa, and create service instance 2000 to bind the interface and VLAN 200 with
VPLS instance bbb.

[PE1] interface gigabitethernet 2/0/1

[PE1-GigabitEthernet2/0/1] service-instance 1000

[PE1-GigabitEthernet2/0/1-srv1000] encapsulation s-vid 100

[PE1-GigabitEthernet2/0/1-srv1000] xconnect vsi aaa

[PE1-GigabitEthernet2/0/1-srv1000] quit

[PE1-GigabitEthernet2/0/1] service-instance 2000

[PE1-GigabitEthernet2/0/1-srv2000] encapsulation s-vid 200

[PE1-GigabitEthernet2/0/1-srv2000] xconnect vsi bbb

[PE1-GigabitEthernet2/0/1-srv2000] quit

[PE1-GigabitEthernet2/0/1] quit

2) Configure the P device

system-view

[Sysname] sysname P

[P] interface loopback 0

[P-LoopBack0] ip address 2.2.2.9 32

[P-LoopBack0] quit

# Configure the LSR ID and enable MPLS globally.

[P] mpls lsr-id 2.2.2.9

[P] mpls

[P-mpls] quit

# Enable LDP globally.

[P] mpls ldp

[P-mpls-ldp] quit

# Configure the interface connected with PE 1 and enable LDP on the interface.

[P] interface vlan-interface 2

[P-Vlan-interface2] ip address 23.1.1.2 24

[P-Vlan-interface2] mpls