418 CHAPTER 31: ROUTING POLICY CONFIGURATION
n
If all items are set to the deny mode, no routes can pass the IPv4 prefix list. 
Therefore, you need to define the permit 0.0.0.0 0 less-equal 32 item following 
multiple deny mode items to allow other IPv4 routing information to pass.
For example, the following configuration filters routes 10.1.0.0/16, 10.2.0.0/16 
and 10.3.0.0/16, but allows other routes to pass.
<Sysname> system-view
[Sysname] ip ip-prefix abc index 10 deny 10.1.0.0 16
[Sysname] ip ip-prefix abc index 20 deny 10.2.0.0 16
[Sysname] ip ip-prefix abc index 30 deny 10.3.0.0 16
[Sysname] ip ip-prefix abc index 40 permit 0.0.0.0 0 less-equal 32 
Defining an AS Path List You can define multiple items for an AS path ACL that is identified by number. 
During matching, the relation between items is logical OR, that is, if the route 
matches one of these items, it passes the AS path ACL.
Follow these steps to define an AS path ACL:
Defining a Community
List
You can define multiple items for a community list that is identified by number. 
During matching, the relation between items is logic OR, that is, if routing 
information matches one of these items, it passes the community list.
Follow these steps to define a community list:
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Define an IPv4 prefix 
list 
ip ip-prefix ip-prefix-name [ index index-number ] 
{ permit | deny } ip-address mask-length 
[ greater-equal min-mask-length ] [ less-equal 
max-mask-length ] 
Required
Not defined 
by default
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Define an AS path ACL  ip as-path as-path-number { deny | 
permit } regular-expression 
Required
Not defined by default
To do… Use the command…  Remarks 
Enter system view system-view - 
Define a 
community list 
Define a basic 
community list 
ip community-list 
basic-comm-list-num { deny 
| permit } 
[ community-number-list ] 
[ internet | no-advertise | 
no-export | 
no-export-subconfed ] * 
Required to define 
either;
Not defined by 
default 
Define an advanced 
community list 
ip community-list 
adv-comm-list-num { deny | 
permit } regular-expression