Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 181

Advertising
background image

170

Configuration procedure

1.

Configure PE 1.
# Configure the IGP protocol, which is OSPF in this example. (Details not shown)
# Configure basic MPLS.

<Sysname> system-view

[Sysname] sysname PE1

[PE1] interface loopback 0

[PE1-LoopBack0] ip address 1.1.1.9 32

[PE1-LoopBack0] quit

[PE1] mpls lsr-id 1.1.1.9

[PE1] mpls

[PE1-mpls] quit

[PE1] mpls ldp

[PE1-mpls-ldp] quit

# Configure interface GigabitEthernet 3/1/1.

[PE1] interface GigabitEthernet 3/1/1

[PE1-GigabitEthernet3/1/1] ip address 10.10.10.10 24

# Configure basic MPLS on the interface.

[PE1-GigabitEthernet3/1/1] mpls

[PE1-GigabitEthernet3/1/1] mpls ldp

[PE1-GigabitEthernet3/1/1] quit

# Configure the remote LDP session.

[PE1] mpls ldp remote-peer 1

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

[PE1-mpls-remote-1] quit

# Configure BGP extension.

[PE1] bgp 100

[PE1-bgp] peer 2.2.2.9 as-number 100

[PE1-bgp] peer 2.2.2.9 connect-interface loopback 0

[PE1-bgp] vpls-family

[PE1-bgp-af-vpls] peer 2.2.2.9 enable

[PE1-bgp-af-vpls] quit

[PE1-bgp] quit

# Enable L2VPN and MPLS L2VPN.

[PE1] l2vpn

[PE1-l2vpn] mpls l2vpn

[PE1-l2vpn] quit

# Configure the VPLS instance aaa that uses LDP signaling.

[PE1] vsi aaa static

[PE1-vsi-aaa] pwsignal ldp

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

[PE1-vsi-aaa-ldp] peer 2.2.2.9

[PE1-vsi-aaa-ldp] quit

[PE1-vsi-aaa] quit

# Configure the VPLS instance bbb that uses BGP signaling.

[PE1] vsi bbb auto

Advertising