
4-30
System View: return to User View with Ctrl+Z.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule 0 permit source 10.1.1.1 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] ospf
[Sysname-ospf-1] filter-policy 2000 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
Parameters
acl-number
: Number of an ACL used to match destination addresses in routing information, in the
range 2000 to 3999.
ip-prefix-name
: Name of the IP prefix list used to match destination addresses in routing information, a
string of 1 to 19 characters.
gateway
ip-prefix-name:
Name of an IP address prefix list used to filter routes based on the next hop of
the routing information, a string of 1 to 19 characters.
For details about IP prefix lists, refer to the section IP
Route Policy Configuration
.
Description
Use the
filter-policy import
command to configure the filtering of incoming routes.
Use the
undo filter-policy import
command to disable such filtering.
By default, no filtering of incoming routes is configured.
In some cases, it may be required that only the routing information meeting some conditions can be
received. You can use the
filter-policy import
command to set the matching rules for the routing
information to be received. Only the routing information matching the rules will be received.
The
filter-policy import
command only filters the routes calculated with the SPF algorithm. Only the
routes passing the filtration can be added to the routing table.
OSPF is a dynamic routing protocol based on link state, with routing information contained in LSAs.
For the filtering of incoming routes, routes to be filtered are calculated by SPF and installed in the OSPF
routing table.
For the filtering of outing routes, denied LSAs will not be generated for advertisement.
Examples
# Reference ACL 2000 to filter incoming routing information.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] acl ospf
Summary of Contents for 5500-EI Series
Page 43: ...2 6 ...
Page 76: ...1 17 ...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46 ...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast ...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23 ...
Page 519: ...iii ...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain ...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static ...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2 ...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008 ...
Page 1111: ...ii xmodem get 3 18 ...
Page 1314: ...A 44 Z ...