H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
3-31
Description
Use the filter-policy export command to enable the ASBR routers to filter the external
routes imported to OSPF. This command is applicable to ASBR routers only.
Use the undo filter-policy export command to cancel the filtering rule configured.
By default, OSPF does not receive routes advertised by the other routing protocols.
Note:
z The filter-policy export command only takes effect on routes imported to the local
device through the import-route command. The command does not take effect if it
is executed before the import-route command.
z If the protocol argument is not specified in the filter-policy export command, this
command takes effect on all the routes imported to the local device through the
import-route command.
Related commands: acl, ip ip-prefix.
Examples
# Configure OSPF to advertise only the routing information permitted by acl 2000.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] acl number 2000
[H3C-acl-basic-2000] rule permit source 11.0.0.0 0.255.255.255
[H3C-acl-basic-2000] rule deny source any
[H3C-ospf-1] filter-policy 2000 export
3.1.26 filter-policy import
Syntax
filter-policy { acl-number | ip-prefix ip-prefix-name | gateway ip-prefix-name } import
undo filter-policy { acl-number | ip-prefix ip-prefix-name | gateway ip-prefix-name }
import
View
OSPF view
Parameters
acl-number: Basic or advanced access control list used for routing information filtering
based on destination addresses.