[Hub-PE-mpls]
label advertise non-null
[Hub-PE-mpls]
quit
[Hub-PE]
mpls ldp
[Hub-PE-mpls-ldp]
quit
[Hub-PE]
interface vlanif 10
[Hub-PE-Vlanif10]
mpls
[Hub-PE-Vlanif10]
mpls ldp
[Hub-PE-Vlanif10]
quit
[Hub-PE]
interface vlanif 20
[Hub-PE-Vlanif20]
mpls
[Hub-PE-Vlanif20]
mpls ldp
[Hub-PE-Vlanif20]
quit
After the configuration, LDP peer relation can be set up between the Hub-PE and the Spoke-
PEs. Run the
display mpls ldp session
command on each Switch, and you can see that the
session status is Operational.
The configuration procedure of the Spoke-PE is similar to the configuration procedure of the
Hub-PE and is not mentioned here.
Step 3
Configure VPN instances on each PE and connect the CEs to the PEs.
NOTE
The VPN targets of the two VPNs on the Hub-PE are advertised by the two Spoke-PE, and the advertised
VPN target is different from the received VPN target. The import VPN target on the Spoke-PE is the export
VPN target on the Hub-PE.
# Configure Spoke-PE1.
<Spoke-PE1>
system-view
[Spoke-PE1]
ip vpn-instance vpna
[Spoke-PE1-vpn-instance-vpna]
route-distinguisher 100:1
[Spoke-PE1-vpn-instance-vpna]
vpn-target 100:1 export-extcommunity
[Spoke-PE1-vpn-instance-vpna]
vpn-target 200:1 import-extcommunity
[Spoke-PE1-vpn-instance-vpna]
quit
[Spoke-PE1]
interface vlanif 50
[Spoke-PE1-Vlanif50]
ip binding vpn-instance vpna
[Spoke-PE1-Vlanif50]
ip address 100.1.1.2 24
[Spoke-PE1-Vlanif50]
quit
# Configure Spoke-PE2.
<Spoke-PE2>
system-view
[Spoke-PE2]
ip vpn-instance vpna
[Spoke-PE2-vpn-instance-vpna]
route-distinguisher 100:3
[Spoke-PE2-vpn-instance-vpna]
vpn-target 100:1 export-extcommunity
[Spoke-PE2-vpn-instance-vpna]
vpn-target 200:1 import-extcommunity
[Spoke-PE2-vpn-instance-vpna]
quit
[Spoke-PE2]
interface vlanif 60
[Spoke-PE2-Vlanif60]
ip binding vpn-instance vpna
[Spoke-PE2-Vlanif60]
ip address 120.1.1.2 24
[Spoke-PE2-Vlanif60]
quit
# Configure the Hub-PE.
<Hub-PE>
system-view
[Hub-PE]
ip vpn-instance vpn_in
[Hub-PE-vpn-instance-vpn_in]
route-distinguisher 100:21
[Hub-PE-vpn-instance-vpn_in]
vpn-target 100:1 import-extcommunity
[Hub-PE-vpn-instance-vpn_in]
quit
[Hub-PE]
ip vpn-instance vpn_out
[Hub-PE-vpn-instance-vpn_out]
route-distinguisher 100:22
[Hub-PE-vpn-instance-vpn_out]
vpn-target 200:1 export-extcommunity
[Hub-PE-vpn-instance-vpn_out]
quit
[Hub-PE]
interface vlanif 30
[Hub-PE-Vlanif30]
ip binding vpn-instance vpn_in
[Hub-PE-Vlanif30]
ip address 110.1.1.2 24
[Hub-PE-Vlanif30]
quit
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
213