Switch 7700 Command reference Guide, v2.0

Table Of Contents
146 CHAPTER 5: USING ROUTING PROTOCOL COMMANDS
filter-policy export Syntax
filter-policy { acl_number | ip-prefix ip_prefix_name } export [
routing_protocol ]
undo filter-policy {acl_number | ip-prefix ip_prefix-name} export [
routing_protocol ]
View
OSPF view
Parameter
acl_number Enter an access control list number.
ip_prefix_name: Enter the name of the address prefix list.
routing_protocol Enter the protocol advertising the routing information. This
can be one of the following:
direct, bgp, rip and static at present.
Description
Using the filter-policy export command, you can configure how OSPF filters
the advertised routing information. Only the routing information that meets these
conditions is advertised.
Using the undo filter-policy export command, you can cancel the filtering
rules. By default, no filtering of the distributed routing information is performed.
Related commands: acl, ip ip-prefix.
Example
To configure OSPF to only advertise the routing information permitted by acl 1,
enter the following commands:
[SW7700]acl number 1
[SW7700-acl-basic-1]rule permit source 11.0.0.0 0.255.255.255
[SW7700-acl-basic-1]rule deny source any
[SW7700-ospf]filter-policy 1 export
filter-policy import Syntax
filter-policy { acl_number | ip-prefix ip_prefix_name | gateway
prefix_list_name } import
undo filter-policy { acl_number | ip-prefix ip_prefix_name | gateway
ip-prefix-name } import
View
OSPF view
Parameter
acl_number Enter the access control list number used for filtering the destination
addresses of the routing information.
ip_prefix_name Enter the name of address prefix list used for filtering the
destination addresses of the routing information.