H3C Technologies H3C S6800 Series Switches User Manual

Page 416

Advertising
background image

403

[NPE2] mpls ldp

[NPE2–ldp] quit

# Enable L2VPN.

[NPE2] l2vpn enable

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish N-PWs to NPE 1
and NPE 3.

[NPE2] vsi aaa

[NPE2-vsi-aaa] pwsignal ldp

[NPE2-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[NPE2-vsi-aaa-ldp-2.2.2.9-500] quit

[NPE2-vsi-aaa-ldp] peer 4.4.4.9 pw-id 500

[NPE2-vsi-aaa-ldp-4.4.4.9-500] quit

[NPE2-vsi-aaa-ldp] quit

[NPE2-vsi-aaa] quit

# Create service instance 10 on FortyGigE 1/0/1 to match all packets.

[NPE2] interface fortygige1/0/1

[NPE2-FortyGigE1/0/1] service-instance 10

[NPE2-FortyGigE1/0/1-srv10] encapsulation default

# Bind service instance 10 to the VSI aaa.

[NPE2-FortyGigE1/0/1-srv10] xconnect vsi aaa

5.

Configure NPE 3:
# Configure basic MPLS.

<NPE3> system-view

[NPE3] interface loopback 0

[NPE3-LoopBack0] ip address 4.4.4.9 32

[NPE3-LoopBack0] quit

[NPE3] mpls lsr-id 4.4.4.9

[NPE3] mpls ldp

[NPE3–ldp] quit

# Enable L2VPN.

[NPE3] l2vpn enable

# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish N-PWs to NPE 1
and NPE 2.

[NPE3] vsi aaa

[NPE3-vsi-aaa] pwsignal ldp

[NPE3-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500

[NPE3-vsi-aaa-ldp-2.2.2.9-500] quit

[NPE3-vsi-aaa-ldp] peer 3.3.3.9 pw-id 500

[NPE3-vsi-aaa-ldp-3.3.3.9-500] quit

[NPE3-vsi-aaa-ldp] quit

[NPE3-vsi-aaa] quit

# Create service instance 10 on FortyGigE 1/0/1 to match all packets.

[NPE3] interface fortygige1/0/1

[NPE3-FortyGigE1/0/1] service-instance 10

[NPE3-FortyGigE1/0/1-srv10] encapsulation default

# Bind service instance 10 to the VSI aaa.

Advertising