104 CHAPTER 5: IP ROUTING PROTOCOL OPERATION
Configuring for Filtering Distributed Routes
Define a policy concerning route distribution that filters the routing information
that does not satisfy the conditions, and distributes routes with the help of an ACL
or address ip-prefix.
Perform the following configuration in routing protocol view.
The route policy supports importing the routes discovered by the following
protocols into the routing table:
Direct: The hop (or host) to which the local interface is directly connected.
Static: Static Route Configuration
RIP: Route discovered by RIP
By default, the filtering of the received and distributed routes will not be
performed.
Displaying and Debugging the Routing Policy
Execute the display command in all views to display the operation of the routing
policy configuration, and to verify the effect of the configuration.
Troubleshooting Routing
Policies
Routing information filtering cannot be implemented in normal operation of the
routing protocol
Check for the following faults:
The if-match mode of at least one node of the Route policy should be the
permit mode. When a Route-policy is used for the routing information filtering,
if a piece of routing information does not pass the filtering of any node, then it
means that the route information does not pass the filtering of the
Route-policy. When all the nodes of the Route-policy are in the deny mode,
then all the routing information cannot pass the filtering of the Route-policy.
The if-match mode of at least one list item of the ip-prefix should be the permit
mode. The list items of the deny mode can be defined to rapidly filter the
Tabl e 106 Configuring Filtering of Distributed Routes
Operation Command
Configure to filter the routes distributed by
the protocol
filter-policy { acl-number |
ip-prefix ip-prefix-name } export
[ routing-process ]
Cancel the filtering of the routes distributed
by the protocol
undo filter-policy { acl-number |
ip-prefix ip-prefix-name } export
[ routing-process ]
Tabl e 107 Displaying and Debugging the Route Policy
Operation Command
Display the routing policy display route-policy [
route-policy-name ]
Display the path information of the AS filter display ip as-path-acl [
acl-number ]
Display the address prefix list information display ip ip-prefix [
ip-prefix-name ]