beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 184

background image

4-24

[UPE-mpls-ldp] quit

# Configure MPLS basic capability on the interface connected with NPE 1.

[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 the remote LDP session with 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 session with NPE 2.

[UPE] mpls ldp remote-peer 2

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

[UPE-mpls-remote-1] quit

# Configure MPLS L2VPN.

[UPE] mpls l2vpn

# 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

# Configure interface VLAN-interface 12 and enable MPLS on the interface.

[UPE] interface vlan-interface 12

[UPE-Vlan-interface12] ip address 12.1.1.1 255.255.255.0

[UPE-Vlan-interface12] mpls

[UPE-Vlan-interface12] mpls ldp

[UPE-Vlan-interface12] quit

# Configure interface VLAN-interface 13 and enable MPLS on the interface.

[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

# On the interface connected with CE 1, that is GigabitEthernet 2/0/1, create a service instance and
bind the L2VPN.

[UPE] interface gigabitethernet 2/0/1

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

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

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

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

# On the interface connected with CE 2, that is, GigabitEthernet 2/0/2 create a service instance and
bind the L2VPN.

[UPE] interface gigabitethernet 2/0/2

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