- Configuring OSPF
- IPv6 Routing: OSPFv3
- IPv6 Routing: OSPFv3 Authentication Support with IPsec
- OSPFv2 Cryptographic Authentication
- OSPFv3 IPSec ESP Encryption and Authentication
- OSPF ABR Type 3 LSA Filtering
- OSPF Stub Router Advertisement
- OSPF Update Packet-Pacing Configurable Timers
- OSPF Sham-Link Support for MPLS VPN
- OSPF Retransmissions Limit
- OSPF Support for Multi-VRF on CE Routers
- OSPFv2 Multiarea Adjacency
- OSPFv2 Autoroute Exclude
- OSPFv3 Multiarea Adjacency
- OSPFv3 Authentication Trailer
- OSPFv3 Autoroute Exclude
- OSPFv2-OSPF Live-Live
- OSPFv3 Address Families
- OSPF Forwarding Address Suppression in Translated Type-5 LSAs
- OSPF Inbound Filtering Using Route Maps with a Distribute List
- OSPFv3 Fast Convergence: LSA and SPF Throttling
- OSPF Shortest Path First Throttling
- OSPF Support for Fast Hello Packets
- OSPF Incremental SPF
- OSPF Limit on Number of Redistributed Routes
- OSPFv3 Max-Metric Router LSA
- OSPF Link-State Advertisement Throttling
- OSPF Support for Unlimited Software VRFs per PE Router
- OSPF Area Transit Capability
- OSPF Per-Interface Link-Local Signaling
- OSPF Link-State Database Overload Protection
- OSPF Enhanced Traffic Statistics for OSPFv2 and OSPFv3
- OSPF MIB Support of RFC 1850 and Latest Extensions
- SNMP ifIndex Value for Interface ID in OSPFv2 and OSPFv3 Data Fields
- OSPFv3 Graceful Restart
- OSPF RFC 3623 Graceful Restart Helper Mode
- OSPF Mechanism to Exclude Connected IP Prefixes from LSA Advertisements
- OSPFv2 Local RIB
- OSPFv3 MIB
- TTL Security Support for OSPFv3 on IPv6
- OSPFv3 VRF-Lite/PE-CE
- Graceful Shutdown Support for OSPFv3
- Prefix Suppression Support for OSPFv3
- OSPFv3 ABR Type 3 LSA Filtering
- Finding Feature Information
- Prerequisites for OSPF Inbound Filtering Using Route Maps with a Distribute List
- Information About OSPF Inbound Filtering Using Route Maps with a Distribute List
- How to Configure OSPF Inbound Filtering Using Route Maps
- Configuration Examples for OSPF Inbound Filtering Using Route Maps with a Distribute List
- Additional References
- Feature Information for OSPF Inbound Filtering Using Route Maps with a Distribute List
OSPF Inbound Filtering Using Route Maps with a Distribute List
The OSPF Inbound Filtering Using Route Maps with a Distribute List feature allows users to define a route map to prevent Open Shortest Path First (OSPF) routes from being added to the routing table. In the route map, the user can match on any attribute of the OSPF route.
- Finding Feature Information
- Prerequisites for OSPF Inbound Filtering Using Route Maps with a Distribute List
- Information About OSPF Inbound Filtering Using Route Maps with a Distribute List
- How to Configure OSPF Inbound Filtering Using Route Maps
- Configuration Examples for OSPF Inbound Filtering Using Route Maps with a Distribute List
- Additional References
- Feature Information for OSPF Inbound Filtering Using Route Maps with a Distribute List
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Prerequisites for OSPF Inbound Filtering Using Route Maps with a Distribute List
It is presumed that you have OSPF configured in your network.
Information About OSPF Inbound Filtering Using Route Maps with a Distribute List
Users can define a route map to prevent OSPF routes from being added to the routing table. This filtering happens at the moment when OSPF is installing the route in the routing table. This feature has no effect on link-state advertisement (LSA) flooding. In the route map, the user can match on any attribute of the OSPF route. That is, the route map could be based on the following match options:
match interface
match ip address
match ip next-hop
match ip route-source
match metric
match route-type
match tag
This feature can be useful during redistribution if the user tags prefixes when they get redistributed on Autonomous System Boundary Routers (ASBRs) and later uses the tag to filter the prefixes from being installed in the routing table on other routers.
Filtering Based on Route Tag
Users can assign tags to external routes when they are redistributed to OSPF. Then the user can deny or permit those routes in the OSPF domain by identifying that tag in the route-map and distribute-list in commands.
Filtering Based on Route Type
In OSPF, the external routes could be Type 1 or Type 2. Users can create route maps to match either Type 1 or Type 2 and then use the distribute-list in command to filter certain prefixes. Also, route maps can identify internal routes (interarea and intra-area) and then those routes can be filtered.
Filtering Based on Route Source
When a match is done on the route source, the route source represents the OSPF Router ID of the LSA originator of the LSA in which the prefix is advertised.
Filtering Based on Interface
When a match is done on the interface, the interface represents the outgoing interface for the route that OSPF is trying to install in the routing table.
Filtering Based on Next Hop
When a match is done on the next hop, the next hop represents the next hop for the route that OSPF is trying to install in the routing table.
Note | The distribute-list in command can be configured to prevent routes from being installed in the global Routing Information Base (RIB). Prior to the implementation of OSPF local RIB (for feature information on OSPF local RIB, see OSPFv2 Local RIB), OSPF would attempt to install a less preferred route (e.g. an inter-area route when the intra-area path is filtered). With OSPF local RIB, only the best route is considered (because this is the only route the local RIB maintains). There is no concept of a "second-best" OSPF route. For more information on the routing algorithm used by Cisco OSPF routers, please refer to RFC 2328. |
How to Configure OSPF Inbound Filtering Using Route Maps
Configuring OSPF Route Map-Based Filtering
1.
enable
2.
configure
terminal
3.
route-map
map-tag
[permit | deny] [sequence-number]
4.
match
tag
tag-name
5. Repeat Steps 3 and 4 with other route-map and match commands.
6.
exit
7.
router
ospf
process-id
8.
distribute-list
route-map
map-tag
in
9.
end
DETAILED STEPS
Configuration Examples for OSPF Inbound Filtering Using Route Maps with a Distribute List
Example OSPF Route Map-Based Filtering
In this example, OSPF external LSAs have a tag. The value of the tag is examined before the prefix is installed in the routing table. All OSPF external prefixes that have the tag value of 777 are filtered (prevented from being installed in the routing table). The permit statement with sequence number 20 has no match conditions, and there are no other route-map statements after sequence number 20, so all other conditions are permitted.
route-map tag-filter deny 10 match tag 777 route-map tag-filter permit 20 ! router ospf 1 router-id 10.0.0.2 log-adjacency-changes network 172.16.2.1 0.0.0.255 area 0 distribute-list route-map tag-filter in
Additional References
Related Documents
Related Topic |
Document Title |
---|---|
OSPF commands |
Cisco IOS IP Routing: OSPF Command Reference |
Standards
Standards |
Title |
---|---|
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature. |
-- |
MIBs
MIBs |
MIBs Link |
---|---|
None |
To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFCs
RFCs |
Title |
---|---|
No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. |
-- |
Technical Assistance
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
Feature Information for OSPF Inbound Filtering Using Route Maps with a Distribute List
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to . An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
OSPF Inbound Filterng Using Route Maps with a Distribute List |
12.0(24)S 12.2(15)T 12.2(18)S 12.2(27)SBC Cisco IOS XE 3.1.0 SG |
The OSPF Inbound Filtering Using Route Maps with a Distribute List feature allows users to define a route map to prevent Open Shortest Path First (OSPF) routes from being added to the routing table. In the route map, the user can match on any attribute of the OSPF route.. The following command was introduced or modified: distribute-list in (IP). |