beautypg.com

H3C Technologies H3C S6800 Series Switches User Manual

Page 420

background image

407

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

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

[UPE-vsi-aaa-ldp] quit

[UPE-vsi-aaa] quit

# Create VLAN 10 and assign FortyGigE 1/0/1 to the VLAN.

[UPE] vlan 10

[UPE-vlan10] port fortygige 1/0/1

[UPE-vlan10] quit

# On interface FortyGigE 1/0/1 (the interface connected to CE 1), create a service instance and
bind the service instance to VSI aaa.

[UPE] interface fortygige 1/0/1

[UPE-FortyGigE1/0/1] service-instance 1000

[UPE-FortyGigE1/0/1-srv1000] encapsulation s-vid 10

[UPE-FortyGigE1/0/1-srv1000] xconnect vsi aaa

[UPE-FortyGigE1/0/1-srv1000] quit

# Create VLAN 11 and assign FortyGigE 1/0/2 to the VLAN.

[UPE] vlan 11

[UPE-vlan11] port fortygige 1/0/2

[UPE-vlan11] quit

# On interface FortyGigE 1/0/2 (the interface connected to CE 2), create a service instance and
bind the service instance to VSI aaa.

[UPE] interface fortygige 1/0/2

[UPE-FortyGigE1/0/2] service-instance 1000

[UPE-FortyGigE1/0/2-srv1000] encapsulation s-vid 11

[UPE-FortyGigE1/0/2-srv1000] xconnect vsi aaa

[UPE-FortyGigE1/0/2-srv1000] quit

3.

Configure NPE 1:
# Configure basic MPLS.

system-view

[NPE1] interface loopback 0

[NPE1-LoopBack0] ip address 2.2.2.2 32

[NPE1-LoopBack0] quit

[NPE1] mpls lsr-id 2.2.2.2

[NPE1] mpls ldp

[NPE1–ldp] quit

# Enable L2VPN.

[NPE1] l2vpn enable

# 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