RIP 119
Configuring RIP to Filter the Received Routes
Configuring RIP to Filter the Distributed Routes
By default, RIP will not filter the received and distributed routing information.
â– The filter-policy import command filters the RIP routes received from its
neighbors, and the routes that cannot pass the filter will not be added to the
routing table, and will not be advertised to the neighbors.
â– The filter-policy export command filters all the advertised routes,
including routes imported by using the
import-route command, and RIP
routes learned from the neighbors.
â– If the filter-policy export command does not specify which route is to be
filtered, then all the routes imported by the
import-route command and the
transmitted RIP routes will be filtered.
Displaying and
Debugging RIP
After configuring RIP, enter the display command in any view to display the RIP
configuration, and to verify the effect of the configuration. Enter the
debugging
command in User View to debug the RIP module. Enter the
reset command in RIP
View to reset the system configuration parameters of RIP.
Table 119 Configuring RIP to Filter the Received Routes
Operation Command
Filter the received routing information
distributed by the specified address
filter-policy gateway
ip_prefix_name import
Cancel filtering of the received routing
information distributed by the specified
address
undo filter-policy gateway
ip_prefix_name [ gateway
ip-prefix-name ] | route-policy
route-policy-name } import
Filter the received global routing information filter-policy {acl_number |
ip-prefix ip_prefix_name [
gateway ip-prefix-name ] |
route-policy route-policy-name }
import
Cancel filtering of the received global routing
information
undo filter-policy { acl_number |
ip-prefix ip_prefix_name } import
Table 120 Configuring RIP to Filter the Distributed Routes
Operation Command
Configure RIP to filter the
distributed routing
information
filter-policy { acl_number | ip-prefix
ip_prefix_name | route-policy route_policy_name
} export [ routing_protocol ]
Cancel the filtering of the
routing information
undo filter-policy { acl_number | ip-prefix
ip_prefix-name | route-policy route_policy_name
} export [ routing_protocol ]
Tab le 121 Displaying and Debugging RIP
Operation Command
Display the current RIP running state and
configuration information
display rip
Enable the RIP debugging information debugging rip packet
Disable the RIP debugging information undo debugging rip packet