3com 8807 Guia De Referência

Página de 1099
720
C
HAPTER
 40: BGP/MPLS VPN C
ONFIGURATION
 C
OMMANDS
undo if-match vpn-target
View
Route-policy view
Parameter
vpn-target: Route VPN-target attribute values used for matching, in ASN:nn or 
IP-address:nn format.
count: Number of the route VPN-target values used for matching, in the range of 
2 to 65535.
Description
Use the if-match vpn-target command to match the route’s vpn-target 
attribute. The match for a route succeeds only when the route’s vpn-target 
attribute is a subset of the configured values, otherwise, if the route has no 
vpn-target attribute or has at least one attribute value that is not in the 
configuration range, the match fails. The if-match vpn-target command is 
applicable only to the PE devices on nested VPN network to limit VPNV4 routes 
with the VPN-Target attribute from the CE devices.
Use the undo if-match vpn-target command to cancel the configuration.
Use the if-match vpn-target vpn-target command to list up to 10 vpn-target 
attribute values to be matched.
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.
[3Com-route-policy] if-match vpn-target 100:1 200:1 300:1 300:2 400:3 
With the above-mentioned 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.
[3Com-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.
[3Com-route-policy] if-match vpn-target begin 1.1.1.1:65533 5