Command Manual – MPLS 
Quidway S8500 Series Routing Switches  Chapter 2  BGP/MPLS VPN Configuration Commands
 
Huawei Technologies Proprietary 
2-17 
Use the if-match vpn-target begin vpn-target count command to set the start value 
and the total number of the vpn-target values to be matched. 
Example 
# Define an if-match clause to match the following VPN-target attribute values: 100:1, 
200:1, 300:1, 300:2 and 400:3. 
[Quidway-route-policy] if-match vpn-target 100:1 200:1 300:1 300:2 400:3 
With the above configuration, if a route's attribute value is 100:1 300:1, the route will 
pass the matching; if the route's attribute value is 200:1 500:1, it will not pass the 
matching because 500:1 is not one of the attribute values that have been configured. 
# Define an if-match clause to match ten VPN-target attribute values starting from 
100:1, that is, 100:1 to 100:10. 
[Quidway-route-policy] if-match vpn-target begin 100:1 10 
# Define an if-match clause to match five VPN-target attribute values starting from 
1.1.1.1:65533, that is, 1.1.1.1:65533, 1.1.1.1:65534, 1.1.1.1:65535, 1.1.1.2:0, and 
1.1.1.2:1. 
[Quidway-route-policy] if-match vpn-target begin 1.1.1.1:65533 5 
2.1.19  import-route 
syntax 
import-route { { ospf | ospf-ase | ospf-nssa } [ process-id ] | direct | rip | static } [med 
value | route-policy route-policyname ] 
undo import-route { { ospf | ospf-ase | ospf-nssa } [ process-id ] | direct | rip | static } 
View 
VPN-instance subaddress family view  
Parameter 
process-id: OSPF process ID, ranging from 1 to 65535. By default, it is 1. 
ospf: Imports only the ASE internal route discovered by the OSPF process process-id 
as the external route. 
ospf-ase: Imports only the OSPF-ASE route discovered by OSPF process with 
process-id as the external route. 
ospf-nssa: Imports only the OSPF-NSSA route discovered by OSPF process with 
process-id as the external route. 
med value: Route cost value, ranging from 0 to 4294967295. 
route-policyname: name of Route-policy, consisting of 1 to 19 characters