beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 182

background image

4-22

[NPE1-mpls-remote-3] quit

# Configure MPLS L2VPN.

[NPE1] mpls l2vpn

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

[NPE1] vsi aaa static

[NPE1-vsi-aaa] pwsignal ldp

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

[NPE1-vsi-aaa-ldp] peer 1.1.1.9 upe

[NPE1-vsi-aaa-ldp] peer 3.3.3.9

[NPE1-vsi-aaa-ldp] quit

[NPE1-vsi-aaa] quit

4) Configure

NPE

3

# Configure MPLS basic capability.

system-view

[Sysname] sysname NPE3

[NPE3] interface loopback 0

[NPE3-LoopBack0] ip address 3.3.3.9 32

[NPE3-LoopBack0] quit

[NPE3] mpls lsr-id 3.3.3.9

[NPE3] mpls

[NPE3–mpls] quit

[NPE3] mpls ldp

[NPE3–mpls-ldp] quit

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

[NPE3] interface vlan-interface 20

[NPE3-Vlan-interface20] ip address 11.1.1.2 24

[NPE3-Vlan-interface20] mpls

[NPE3-Vlan-interface20] mpls ldp

[NPE3-Vlan-interface20] quit

# Configure the remote LDP session.

[NPE3] mpls ldp remote-peer 1

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

[NPE3-mpls-remote-1] quit

# Configure MPLS L2VPN.

[NPE3] mpls l2vpn

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

[NPE3] vsi aaa static

[NPE3-vsi-aaa] pwsignal ldp

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

[NPE3-vsi-aaa-ldp] peer 2.2.2.9

[NPE3-vsi-aaa-ldp] quit

[NPE3-vsi-aaa] quit

# Configure interface GigabitEthernet 2/0/1 and bind VPLS instance aaa to VLAN 100.

[NPE3] interface gigabitethernet 2/0/1

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

[NPE3-GigabitEthernet2/0/1-srv1000] encapsulation s-vid 100

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

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