H3C Technologies H3C SR8800 User Manual

Page 193

Advertising
background image

182

[NPE1-vsi-aaa-ldp] peer 4.4.4.4

[NPE1-vsi-aaa-ldp] quit

[NPE1-vsi-aaa] quit

The configuration procedure on NPE 2 is similar to that on NPE 1. (Details not shown)

4.

Configure NPE 3.
# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname NPE3

[NPE3] interface loopback 0

[NPE3-LoopBack0] ip address 4.4.4.4 32

[NPE3-LoopBack0] quit

[NPE3] mpls lsr-id 4.4.4.4

[NPE3] mpls

[NPE3–mpls] quit

[NPE3] mpls ldp

[NPE3–mpls-ldp] quit

# Configure an IP address for the interface connected to NPE 1, and then enable MPLS and MPLS
LDP.

[NPE3]interface GigabitEthernet 3/1/5

[NPE3-GigabitEthernet3/1/5] ip address 15.1.1.2 255.255.255.0

[NPE3-GigabitEthernet3/1/5]mpls

[NPE3-GigabitEthernet3/1/5]mpls ldp

[NPE3-GigabitEthernet3/1/5]quit

# Configure an IP address for the interface connected to NPE 2, and then enable MPLS and MPLS
LDP.

[NPE3]interface GigabitEthernet 3/1/6

[NPE3-GigabitEthernet3/1/6] ip address 16.1.1.2 255.255.255.0

[NPE3-GigabitEthernet3/1/6]mpls

[NPE3-GigabitEthernet3/1/61]mpls ldp

[NPE3-GigabitEthernet3/1/6]quit

# Configure the remote LDP session.

[NPE3] mpls ldp remote-peer 1

[NPE3-mpls-remote-1] remote-ip 2.2.2.2

[NPE3-mpls-remote-1] quit

[NPE3] mpls ldp remote-peer 2

[NPE3-mpls-remote-2] remote-ip 3.3.3.3

[NPE3-mpls-remote-2] quit

# Enable L2VPN and MPLS L2VPN.

[NPE3] l2vpn

[NPE3-l2vpn] mpls l2vpn

[NPE3-l2vpn] quit

# Configure the VPLS instance aaa that uses LDP signaling

[NPE3] vsi aaa static

[NPE3-vsi-aaa] pwsignal ldp

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

[NPE3-vsi-aaa-ldp] peer 2.2.2.2

[NPE3-vsi-aaa-ldp] peer 3.3.3.3

Advertising