H3C Technologies H3C S10500 Series Switches User Manual

Page 190

Advertising
background image

179

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

[UPE] interface vlan-interface 12

[UPE-Vlan-interface12] ip address 12.1.1.1 24

[UPE-Vlan-interface12] mpls

[UPE-Vlan-interface12] mpls ldp

[UPE-Vlan-interface12] quit

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

[UPE] interface vlan-interface 13

[UPE-Vlan-interface13] ip address 13.1.1.1 255.255.255.0

[UPE-Vlan-interface13] mpls

[UPE-Vlan-interface13] mpls ldp

[UPE-Vlan-interface13] quit

# Configure the remote LDP peer NPE 1.

[UPE] mpls ldp remote-peer 1

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

[UPE-mpls-remote-1] quit

# Configure the remote LDP peer NPE 2.

[UPE] mpls ldp remote-peer 2

[UPE-mpls-remote-1] remote-ip 3.3.3.3

[UPE-mpls-remote-1] quit

# Enable L2VPN and MPLS L2VPN.

[UPE] l2vpn

[UPE-l2vpn] mpls l2vpn

[UPE-l2vpn] quit

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

[UPE] vsi aaa static

[UPE-vsi-aaa] pwsignal ldp

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

[UPE-vsi-aaa-ldp] peer 2.2.2.2 backup-peer 3.3.3.3

[UPE-vsi-aaa-ldp] dual-npe revertive wtr-time 1

[UPE-vsi-aaa-ldp] quit

[UPE-vsi-aaa] quit

# On the interface connected to CE 1, create a service instance and bind the VSI.

[UPE] interface gigabitethernet 1/0/1

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

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

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

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

# On the interface connected to CE 2, create a service instance and bind the VSI.

[UPE] interface gigabitethernet 1/0/2

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

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

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

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

3.

Configure NPE 1.

Advertising