H3C Technologies H3C SR8800 User Manual

Page 189

Advertising
background image

178

# Configure interface GigabitEthernet 3/1/2, bind VPLS instance aaa to the interface, and

specify the attached CE as a spoke-CE.

[Spoke-PE2] interface GigabitEthernet 3/1/2

[Spoke-PE2-GigabitEthernet3/1/2] l2 binding vsi aaa spoke

[Spoke-PE2-GigabitEthernet3/1/2] quit

4.

Configure Hub-PE.
# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname Hub-PE

[Hub-PE] interface loopback 0

[Hub-PE-LoopBack0] ip address 3.3.3.9 32

[Hub-PE-LoopBack0] quit

[Hub-PE] mpls lsr-id 3.3.3.9

[Hub-PE] mpls

[Hub-PE–mpls] quit

[Hub-PE] mpls ldp

[Hub-PE–mpls-ldp] quit

# Configure basic MPLS on the interface connected to Spoke-PE 1.

[Hub-PE] interface GigabitEthernet 3/1/1

[Hub-PE-GigabitEthernet3/1/1] ip address 10.1.1.2 24

[Hub-PE-GigabitEthernet3/1/1] mpls

[Hub-PE-GigabitEthernet3/1/1] mpls ldp

[Hub-PE-GigabitEthernet3/1/1] quit

# Configure basic MPLS on the interface connected to Spoke-PE 2.

[Hub-PE] interface GigabitEthernet 3/1/2

[Hub-PE-GigabitEthernet3/1/2] ip address 20.1.1.2 24

[Hub-PE-GigabitEthernet3/1/2] mpls

[Hub-PE-GigabitEthernet3/1/2] mpls ldp

[Hub-PE-GigabitEthernet3/1/2] quit

# Configure the remote LDP sessions.

[Hub-PE] mpls ldp remote-peer 1

[Hub-PE-mpls-remote-1] remote-ip 1.1.1.9

[Hub-PE-mpls-remote-1] quit

[Hub-PE] mpls ldp remote-peer 2

[Hub-PE-mpls-remote-2] remote-ip 2.2.2.9

[Hub-PE-mpls-remote-2] quit

# Enable L2VPN and MPLS L2VPN.

[Hub-PE] l2vpn

[Hub-PE-l2vpn] mpls l2vpn

[Hub-PE-l2vpn] quit

# Configure the LDP VPLS instance aaa that supports the hub-spoke model, and configure the peers
as spokes.

[Hub-PE] vsi aaa static hub-spoke

[Hub-PE-vsi-aaa] pwsignal ldp

[Hub-PE-vsi-aaa-ldp] vsi-id 500

[Hub-PE-vsi-aaa-ldp] peer 1.1.1.9 spoke

[Hub-PE-vsi-aaa-ldp] peer 2.2.2.9 spoke

Advertising