Switch 7700 Command reference Guide, v2.0

Table Of Contents
208 CHAPTER 5: USING ROUTING PROTOCOL COMMANDS
If the parameter protocol is specified, only the imported route generated by the
specified protocol is filtered and the imported routes generated by other protocols
are not affected. If the parameter
protocol is not specified, the imported route
generated by any protocol will be filtered.
Example
Use acl 3 to filter the routing information advertised by BGP.
[SW7700-bgp]filter-policy 3 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
BGP view
Parameter
acl_number: Number of IP access control list.
ip_prefix_name: Number of address prefix list.
Description
Use the filter-policy gateway import command to filter the learned
routing information advertised by the specified address.
Use the undo filter-policy gateway import command to cancel the
filtration to the routing information advertised by the specified address.
Use the filter-policy import command to filter the received global routing
information.
Use the undo filter-policy import command to remove the filtration to the
received global routing information.
By default, filtration to the received routing information is not configured.
This command can be used to filter the routes received by BGP and determines
whether to add the routes to the BGP routing table.
Example
Use acl 3 to filter the routing information received by BGP.
[SW7700-bgp]filter-policy 3 import
group Syntax
group group_name
undo group group_name