IP Routing Policy 125
Perform the following configurations in System View.
During the matching, the router checks list items identified by the index_number 
in ascending order. If only one list item meets the condition, it means that it has 
passed the 
ip-prefix filtering (and does not enter the testing of the next list 
item). 
If more than one IP prefix item is defined, then the match mode of at least one list 
item should be the 
permit mode. The list items of the deny mode can be defined 
to rapidly filter the routing information not satisfying the requirement, but if all 
the items are in the 
deny mode, no route will pass the ip-prefix filtering. You 
can define an item of 
permit 0.0.0.0/0 greater-equal 0 less-equal 32 after 
the multiple list items in the 
deny mode to let all the other routes pass.
Displaying and 
Debugging the Routing 
Policy
Enter the display command in any view to display the operation of the routing 
policy configuration, and to verify the effect of the configuration.
Typical IP Routing Policy 
Configuration Example
Configuring the Filtering of the Received Routing Information
Networking Requirements
■ Switch A communicates with Switch B, running RIP protocol.
■ Import three static routes by enabling the RIP protocol on Switch A.
■ The route filtering rules can be configured on Switch B to make the received 
three static routes partially visible and partially shielded. This means that routes 
in the network segments 20.0.0.0 and 40.0.0.0 are visible while those in the 
network segment 30.0.0.0 are shielded.
Tab le 125   Defining Prefix-list
Operation Command
Define a Prefix-list ip ip-prefix ip_prefix_name [ index index_number ] 
{ permit | deny } network len [ greater-equal 
greater_equal ] [ less-equal less_equal ]
Remove a Prefix-list undo ip ip-prefix ip_prefix_name [ index 
index_number | permit | deny ]
Tab le 126   Displaying and Debugging the Routing Policy
Operation Command
Display the routing policy display route-policy [ route_policy_name ]
Display the address prefix list 
information
display ip ip-prefix [ ip_prefix_name ]