Switch 7700 Command reference Guide, v2.0

Table Of Contents
234 CHAPTER 5: USING ROUTING PROTOCOL COMMANDS
Description
Use the filter-policy export command to configure to set the filtering
conditions of the routing information advertised by a certain type of routing
protocols.
Use the undo filter-policy export command to cancel the filtering
conditions set.
By default, the advertised routing information is not filtered.
In some cases, it may be required that only the routing information meeting some
conditions can be advertised. Then, the filter-policy command can be used to set
the filtering conditions for the routing information to be advertised. Only the
routing information passing the filtration can be advertised.
Related command: filter-policy import.
Example
Define the filtering rules for advertising the routing information of RIP. Only the
routing information passing the filtering of address prefix list p1 will be advertised
by RIP.
[SW7700-rip]filter-policy ip-prefix p1 export
filter-policy import Syntax
filter-policy gateway ip_prefix_name import
undo filter-policy gateway ip_prefix_name import
filter-policy { acl_number | ip-prefix ip_prefix_name } import
undo filter-policy { acl_number | ip-prefix ip_prefix_name } import
View
Routing protocol view
Parameter
acl_number: The access control list number used for matching the destination
address field of the routing information.
ip-prefix ip_prefix_name: The prefix address list name. Its matching object is
the destination address field of the routing information.
gateway ip_prefix_name: The prefix address list name of the neighbor router
address. Its matching object is the routing information advertised by the specified
neighbor router.
Description
Use the filter-policy gateway import command to filter the received
routing information advertised by a specified router.
Use the undo filter-policy gateway import command to cancel the
setting of the filtering condition.