3com 8807 Guia De Referência

Página de 1099
554
C
HAPTER
 28: IP R
OUTING
 P
OLICY
 C
ONFIGURATION
 C
OMMANDS
Example
# Display the information of Route-policy named as policy1.
<SW8800> display route-policy policy1
 
Route-policy : policy1
 
  Permit 10 : if-match (prefixlist) p1
 
              apply cost 100
 
              matched : 0     denied : 0 
filter-policy export
Syntax
filter-policy { acl-number | ip-prefix ip-prefix-name } export [ routing-protocol ]
undo filter-policy { acl-number | ip-prefix ip-prefix-name } export [ 
routing-protocol ]
View
Routing protocol view
Parameter
acl-number: Number of the access control list used for matching the destination 
address field of the routing information.
ip-prefix-name: Address prefix list used for matching the routing information 
destination address field.
routing-protocol: The routing information of which kind of route protocol to be 
filtered.
Description
Use the filter-policy export command to configure to set the filtering conditions 
of the routing information advertised by a certain type of routing protocols.
Use the undo filter-policy export command to cancel the filtering conditions 
set.
By default, the advertised routing information is not filtered.
In some cases, it may be required that only the routing information meeting some 
conditions can be advertised. Then, the filter-policy command can be used to set 
Table 79   Description of the fields of the display route-policy command
Field 
Description 
Route-policy  Name of ip-prefix 
Permit 10 
Information of the route-policy with mode configured as permit and node as 
10: 
if-match (prefixlist) p1  The configured if-match clause 
apply cost 100 
Apply routing cost 100 to the routes matching the 
conditions defined by if-match clause 
matched 
Number of routes matching the conditions set by 
if-match clause 
denied 
Number of routes not matching the conditions set by 
if-match clause