beautypg.com

Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 216

background image

5-24

Figure 5-5

Network diagram for configuring Martini MPLS L2VPN

Device Interface IP

address

Device Interface

IP

address

CE 1

Vlan-int10

100.1.1.1/24 P

Loop0

192.4.4.4/32

PE 1

Loop0

192.2.2.2/32

Vlan-int20 10.1.1.2/24

Vlan-int20

10.1.1.1/24

Vlan-int30

10.2.2.2/24

CE 2

Vlan-int10

100.1.1.2/24 PE

2 Loop0

192.3.3.3/32

Vlan-int30

10.2.2.1/24

Configuration procedure

1) Configure

CE

1

system-view

[Sysname] sysname CE1

[CE1] interface vlan-interface 10

[CE1-Vlan-interface10] ip address 100.1.1.1 24

2) Configure PE 1

# Configure the LSR ID and enable MPLS globally.

system-view

[Sysname] sysname PE1

[PE1] interface loopback 0

[PE1-LoopBack0] ip address 192.2.2.2 32

[PE1-LoopBack0] quit

[PE1] mpls lsr-id 192.2.2.2

[PE1] mpls

# Configure the LSP establishment triggering policy.

[PE1-mpls] lsp-trigger all

[PE1-mpls] quit

# Enable MPLS L2VPN and LDP globally.

[PE1] mpls l2vpn

[PE1] mpls ldp

[PE1-mpls-ldp] quit

# Establish a remote session between PE 1 and PE 2.

[PE1] mpls ldp remote-peer 1

[PE1-mpls-ldp-remote-1] remote-ip 192.3.3.3

[PE1-mpls-ldp-remote-1] quit

# Configure the interface connected with the P device, namely VLAN-interface 20, and enable LDP on
the interface.

[PE1] interface vlan-interface 20

[PE1-Vlan-interface20] ip address 10.1.1.1 24

[PE1-Vlan-interface20] mpls