The export routing policy of the VPN instance is configured.
l Configuring Spoke-PE
1. Run:
system-view
The system view is displayed.
2. Run:
ip vpn-instance vpn-instance-name
The VPN instance view of the VPN-in is displayed.
3. Run:
vpn-target vpn-target2 &<1-8> import-extcommunity
The VPN target is configured for the VPN instance. Then, the VPN instance can
receive the VPNv4 routes advertised by the Hub-PE.
vpn-target2 contains all the outbound VPN target values of the Hub-PE.
4. Run:
vpn-target vpn-target1 &<1-8> export-extcommunity
The VPN target attribute is configured to advertise the routes of the site of the local
Spoke-PE.
vpn-target1 contains all the inbound VPN target values of the Hub-PE.
5. (Optional) Run:
import route-policy policy-name
The import routing policy of the VPN instance is configured.
6. (Optional) Run:
export route-policy policy-name
The export routing policy of the VPN instance is configured.
----End
3.5.4 Associating an Interface with the VPN Instance
Context
The configuration on the Hub-PE involves two interfaces or sub-interfaces: one is bound to the
VPN-in and receives the routes advertised by the Spoke-PEs, the other is bound to the VPN-out
and advertises the routes of the Hub and all the Spoke sites. The following is the configuration
procedure.
The VPN instance needs to be associated with the interface connecting to the CE. After being
associated with a VPN instance, the interface becomes a VPN interface. Packets sent to this
interface are forwarded according to the forwarding information of the VPN instance.
Do as follows on every Spoke-PE and Hub-PE.
Procedure
Step 1 Run:
system-view
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 3 BGP/MPLS IP VPN Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3-25