494 CHAPTER 37: ROUTING POLICY CONFIGURATION
n
■ The if-match clauses of a route-policy are in logic AND relationship, namely, 
routing information has to satisfy all if-match clauses before being executed 
with apply clauses.
■ You can specify no or multiple if-match clauses for a routing policy. If no 
if-match clause is specified, and the routing policy is in permit mode, all 
routing information can pass the node; if in deny mode, no routing 
information can pass.
Defining apply Clauses
for the Routing Policy
Follow these steps to define apply clauses for a route-policy:
Match routes having the 
specified route type 
if-match route-type { internal 
| external-type1 | 
external-type2 | 
external-type1or2 | 
is-is-level-1 | is-is-level-2 | 
nssa-external-type1 | 
nssa-external-type2 | 
nssa-external-type1or2 } * 
Optional
Not configured by default 
Match the routes having the 
specified tag value 
if-match tag value Optional
Not configured by default
To do…  Use the command…  Remarks 
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Create a routing policy and 
enter its view 
route-policy route-policy-name 
{ permit | deny } node node-number 
Required
Not created by 
default 
Set AS_Path attribute for IPv6 
BGP routes 
apply as-path as-number&<1-10> 
[ replace ] 
Optional
Not set by default 
Specify a community list 
according to which to delete 
community attributes of IPv6 
BGP routing information 
apply comm-list comm-list-number 
delete 
Optional
Not configured by 
default 
Set community attribute for 
IPv6 BGP routes 
apply community { none | additive | 
{ community-number&<1-16> | 
aa:nn&<1-16> | internet | 
no-export-subconfed | no-export | 
no-advertise } * [ additive ]} 
Optional
Not set by default 
Set a cost for routes  apply cost [ + | - ] value Optional
Not set by default 
Set a cost type for routes  apply cost-type { external | internal 
| type-1 | type-2 } 
Optional
Not set by default 
Set the extended community 
attribute for IPv6 BGP routes 
apply extcommunity {
rt 
{ as-number:nn | 
ip-address:nn } }&<1-16> [ additive ] 
Optional
Not set by default 
Set a next hop for IPv6 routes  apply ipv6 next-hop ipv6-address Optional
Not set by default 
Redistribute routes to a 
specified ISIS level 
apply isis { level-1 | level-1-2 | 
level-2 } 
Optional
Not configured by 
default