3com S7906E Guía De Referencia

Descargar
Página de 2327
 
1-13 
<Sysname> display route-policy policy1 
Route-policy : policy1 
  permit : 10 
        if-match ip-prefix abc 
        apply cost 120 
Table 1-2 display route-policy command output description.  
Field 
Description 
Route-policy Route 
policy 
name 
Permit 
Match mode of route policy node 10 
if-match ip-prefix abc 
Match criterion 
apply cost 120 
If the match criterion is satisfied, set a cost of 120 for routing information.
 
if-match as-path 
Syntax 
if-match as-path as-path-number&<1-16> 
undo if-match as-path as-path-number&<1-16>  
View 
Route policy view 
Default Level 
2: System level 
Parameters 
as-path-number: AS path list number, in the range of 1 to 256.  
&<1-16>: Indicates the argument before it can be entered up to 16 times. 
Description 
Use the if-match  as-path command to specify AS-PATH list(s) for matching against the AS path 
attribute of BGP routing information. 
Use the undo if-match as-path command to remove the match criterion.  
The match criterion is not configured by default. 
Related commands: route-policyip as-path-acl
Examples 
# Define AS-PATH list 2, allowing BGP routing information containing AS number 200 or 300 to pass. 
Configure node 10 in permit mode of route policy test: specify AS-PATH list 2 for matching. 
<Sysname> system-view 
[Sysname] ip as-path 2 permit _*200.*300 
[Sysname] route-policy test permit node 10 
[Sysname-route-policy] if-match as-path 2