R3303-HP HSR6800 Routers MPLS Configuration Guide
225
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure PE 2 to establish a remote LDP peer PE 1.
[PE2] mpls ldp remote-peer 2
[PE2-mpls-ldp-remote-2] remote-ip 1.1.1.9
[PE2-mpls-ldp-remote-2] quit
# Configure the interface connected to the P device and enable LDP on the interface.
[PE2] interface ten-GigabitEthernet 1/0/3
[PE2-Ten-GigabitEthernet1/0/3] ip address 26.2.2.1 24
[PE2-Ten-GigabitEthernet1/0/3] mpls
[PE2-Ten-GigabitEthernet1/0/3] mpls ldp
[PE2-Ten-GigabitEthernet1/0/3] quit
# Configure OSPF.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 26.2.2.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
# Configure BGP extensions.
[PE2] bgp 100
[PE2-bgp] peer 1.1.1.9 as-number 100
[PE2-bgp] peer 1.1.1.9 connect-interface loopback 0
[PE2-bgp] vpls-family
[PE2-bgp-af-vpls] peer 1.1.1.9 enable
[PE2-bgp-af-vpls] quit
[PE2-bgp] quit
# Configure VPLS instance aaa that uses LDP signaling.
[PE2] vsi aaa static
[PE2-vsi-aaa] pwsignal ldp
[PE2-vsi-aaa-ldp] vsi-id 500
[PE2-vsi-aaa-ldp] peer 1.1.1.9
[PE2-vsi-aaa-ldp] quit
[PE2-vsi-aaa] quit
# Configure VPLS instance bbb that uses BGP signaling.
[PE2] vsi bbb auto
[PE2-vsi-bbb] pwsignal bgp
[PE2-vsi-bbb-bgp] route-distinguisher 100:1
[PE2-vsi-bbb-bgp] vpn-target 111:1
[PE2-vsi-bbb-bgp] site 20
[PE2-vsi-bbb-bgp] quit
[PE2-vsi-bbb] quit
# On the interface connecting CE 2, create service instance 1 and bind it to VPLS instance aaa,
and create service instance 2 and bind it to VPLS instance bbb.
[PE2] interface Ten-GigabitEthernet 1/0/1
[PE2-Ten-GigabitEthernet1/0/1] port link-mode bridge
[PE2-Ten-GigabitEthernet1/0/1] port link-type trunk