OSPFv3 Route Filtering Using Distribute-List

Similar documents
IS-IS Inbound Filtering

EIGRP Support for Route Map Filtering

OSPF Limit on Number of Redistributed Routes

EIGRP Route Tag Enhancements

BGP Named Community Lists

OSPFv2 Local RIB. Finding Feature Information

BGP Cost Community. Prerequisites for the BGP Cost Community Feature

BGP Route-Map Continue

OSPFv3 Address Families

IPv6 Routing: Route Redistribution

Configuring BGP: RT Constrained Route Distribution

MPLS VPN Route Target Rewrite

BGP Diverse Path Using a Diverse-Path Route Reflector

Implementing Static Routes for IPv6

BGP-MVPN SAFI 129 IPv6

ibgp Multipath Load Sharing

OSPFv3 Address Families

OSPFv3 Address Families

Autoroute Announce and Forwarding Adjacencies For OSPFv3

Autoroute Announce and Forwarding Adjacencies For OSPFv3

MPLS VPN Multipath Support for Inter-AS VPNs

Add Path Support in EIGRP

Information About IPv6 Multicast Address Family Support for. Multiprotocol BGP. Finding Feature Information

IPv6 Switching: Provider Edge Router over MPLS

IPv6 Routing: OSPFv3

BGP-VPN Distinguisher Attribute

IS-IS IPv6 Administrative Tag

Implementing RIP for IPv6

IPv6 Routing: IS-IS Support for IPv6

Configuring IPv6 Provider Edge over MPLS (6PE)

MPLS VPN Inter-AS with ASBRs Exchanging VPN-IPv4 Addresses

OSPF Incremental SPF

IPv6 Switching: Provider Edge Router over MPLS

IPv6 Routing: RIP for IPv6

IPv6 Routing: Route Redistribution

BGP mvpn BGP safi IPv4

Configuring Easy Virtual Network Shared Services

Implementing RIP for IPv6

MPLS VPN Half-Duplex VRF

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

This document is not restricted to specific software and hardware versions.

Multi-VRF Support. Finding Feature Information. Prerequisites for Multi-VRF Support

BGP Graceful Shutdown

BGP Policy Accounting

MPLS over GRE. Finding Feature Information. Prerequisites for MPLS VPN L3VPN over GRE

BGP Event-Based VPN Import

Configuring Integrated IS-IS Protocol Shutdown Support Maintaining Configuration Parameters

BGP Support for Next-Hop Address Tracking

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

Configuring FlexVPN Spoke to Spoke

OSPF Support for Multi-VRF on CE Routers

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

OSPF Sham-Link Support for MPLS VPN

MPLS VPN--Show Running VRF

MPLS VPN--Inter-AS Option AB

OSPF SNMP ifindex Value for Interface ID in Data Fields

Configuring OSPF. Finding Feature Information

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

EIGRP Over the Top. Finding Feature Information. Information About EIGRP Over the Top. EIGRP Over the Top Overview

OSPF Stub Router Advertisement

Configuring IPv6 VPN Provider Edge over MPLS (6VPE)

BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard

IPv6 Routing: IS-IS Support for IPv6

Chapter 16 OSPF Version 3 Commands

PIM Allow RP. Finding Feature Information. Restrictions for PIM Allow RP

BGP AS-Override Split-Horizon

BGP Support for IP Prefix Export from a VRF Table into the Global Table

BGP NSF Awareness. Finding Feature Information

Implementing Multicast Service Reflection

Shortcut Switching Enhancements for NHRP in DMVPN Networks

Implementing Static Routes

Configuring OSPF TTL Security Check and OSPF Graceful Shutdown

Object Tracking: IPv6 Route Tracking

Implementing Static Routes on Cisco IOS XR Software

Area Command in Interface Mode for OSPFv2

BGP Best External. Finding Feature Information

BGP Support for 4-byte ASN

Configuring NSF-OSPF

BGP Support for Next-Hop Address Tracking

Connecting to a Service Provider Using External BGP

Configuring a BGP Route Server

BGP Dynamic Neighbors

IPv6 Routing: IS-IS Support for IPv6

Configuring Route Maps to Control the Distribution of MPLS Labels Between Routers in an MPLS VPN

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

OSPFv3 Commands. address-family (OSPFv3), page 4. authentication (OSPFv3), page 7

Configuring Scalable Hub-and-Spoke MPLS VPNs

OSPF Commands: A through Z

Implementing IS-IS for IPv6

IP Routing: BGP Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)

MPLS VPN Inter-AS Option AB

QoS Policy Propagation via BGP

MPLS VPN over mgre. Finding Feature Information. Last Updated: November 1, 2012

Segment Routing With IS-IS v4 Node SID

Connecting to a Service Provider Using External BGP

EIGRP Stub Routing. Finding Feature Information. Information About EIGRP Stub Routing. EIGRP Stub Routing

LAB12: OSPF IPv6. OSPF: Redistribution. Disclaimer

BGP Next Hop Unchanged

BGP Support for the L2VPN Address Family

MPLS VPN Explicit Null Label Support with BGP. BGP IPv4 Label Session

Transcription:

The OSPFv3 route filtering using distribute-list feature allows users to filter the incoming routes that are programmed in routing table, and the outgoing routes that are advertised. Finding Feature Information, page 1 Prerequisites for, page 1 Information About, page 1 How to Configure, page 2 Additional References, page 7 Feature Information for, page 8 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 at the end of this module. 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 It is presumed that you have OSPF configured in your network. Information About 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. 1

How to Configure 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. The below mentioned options are available only for distribute-list filtering using route-map. 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 or distribute-list out 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 Configuring OSPFv3 (IPv4 address-family) Command Mode: Address family mode (address-family ipv4 unicast). Following is the syntax: [no] distribute-list [<access-list #> <access-list name>] {prefix <name1> gateway <name2>} {prefix <name1>} {gateway <name2>} 2

Configuring OSPFv3 (IPv4 address-family) {route-map name} in [<interface>] [no] distribute-list [<access-list #> <access-list name>] [prefix <name>] out [{ <routing-process> <interface> }] Interface: Incoming (used with Inbound filtering) or outgoing (used with outbound filtering) interface. Routing-process: Source protocol for the route to be filtered. Configuring Inbound Filtering: Route Map 1. 2. Configure address-family ipv4 unicast. 3. Configure distribute list with the appropriate route-map. Configure address-family ipv4 unicast. Device(config-router)#address-family ipv4 unicast Configure distribute list with the appropriate route-map. Device(config-router-af)#distribute-list route-map rmap-name in The following match options in a route-map are supported: match interface match ip address match ip next-hop match ip route-source match metric match route-type match tag 3

Configuring OSPFv3 (IPv4 address-family) Configuring Inbound Filtering: Prefix-List/Access-List 1. 2. Configure address-family ipv4 unicast. 3. Defines prefix list to be used and the direction for the filter. Configure address-family ipv4 unicast. Device(config-router)#address-family ipv4 unicast Defines prefix list to be used and the direction for the filter. Device(config-router-af)#distribute-list prefix pfxname in Note The following are the available optional arguments. You can use these arguments to filter based on incoming interface. Choose any interface that is available on your device. Ethernet IEEE 802.3 Loopback Loopback interface Null Null interface Port-channel Ethernet Channel of interfaces Serial Serial Tunnel Tunnel interface Vlan Catalyst Vlans Configuring Outbound Filtering 1. 2. Configure address-family ipv4 unicast. 3. Configure distribute list with the appropriate route-map. Configure address-family ipv4 unicast. Device(config-router)#address-family ipv4 unicast 4

Configuring Route Filtering Using Distribute-List for OSPFv3 (IPv6 address-family) Configure distribute list with the appropriate route-map. Device(config-router-af)#distribute-list prefix pfxlist-name out Note The following are the available optional arguments. You can use these options to filter based on the source protocol of the route. bgp Border Gateway Protocol (BGP) connected Connected eigrp Enhanced Interior Gateway Routing Protocol (EIGRP) isis ISO IS-IS lisp Locator ID Separation Protocol (LISP) ospf Open Shortest Path First (OSPF) ospfv3 OSPFv3 rip Routing Information Protocol (RIP) static Static routes Configuring Route Filtering Using Distribute-List for OSPFv3 (IPv6 address-family) Mode: Address-family mode (address-family ipv6 unicast). Prefix-list and route-map are supported as filtering options. Following is the syntax: [no] distribute-list prefix-list <name> in [<interface>] [no] distribute-list route-map <name> in [no] distribute-list prefix-list <name> out <routing-process> Interface: Incoming (used with Inbound filtering) or outgoing (used with outbound filtering) interface. Routing-process: Source protocol for the route to be filtered. Configuring Inbound Filtering: Route Map 1. 2. Configure address-family ipv6unicast. 3. Define route map. Configure address-family ipv6unicast. Device(config-router)#address-family ipv6 unicast Define route map. Device(config-router-af)#distribute-list route-map rmap-name in The following match options in a route-map are supported: 5

Configuring Route Filtering Using Distribute-List for OSPFv3 (IPv6 address-family) match interface match ip address match ip next-hop match metric match route-type match tag Configuring Inbound Filtering: Prefix-List 1. 2. Configure address-family ipv6 unicast. 3. Define prefix list name. 4. Define filter incoming routing updates. Step 4 Configure address-family ipv6 unicast. Device(config-router)#address-family ipv6 unicast Define prefix list name. Device(config-router-af)#distribute-list prefix pfxlist-name Define filter incoming routing updates. Device(config-router-af)#distribute-list prefix pfxname in Note The following are the available optional arguments. You can use these arguments to filter based on incoming interface. Choose any interface that is available on your device. Ethernet IEEE 802.3 Loopback Loopback interface Null Null interface Port-channel Ethernet Channel of interfaces Serial Serial Tunnel Tunnel interface Vlan Catalyst Vlans 6

Additional References Configuring Outbound Filtering 1. 2. Configure address-family ipv6 unicast. 3. Define prefix list name. Configure address-family ipv6 unicast. Device(config-router)#address-family ipv6 unicast Define prefix list name. Device(config-router-af)#distribute-list prefix-list pfxlist-name out Note These are the available options for the routing process. The <routing-process> argument is mandatory for IPv6 outbound route filtering. bgp Border Gateway Protocol (BGP) connected Connected Routes eigrp Enhanced Interior Gateway Routing Protocol (EIGRP) isis ISO IS-IS lisp Locator ID Separation Protocol (LISP) ospf Open Shortest Path First (OSPFv3) rip IPv6 Routing Information Protocol (RIPv6) static Static Routes Additional References Related Documents Related Topic OSPF commands Document Title Cisco IOS IP Routing: OSPF Command Reference 7

Feature Information for MIBs MIBs None MIBs Link To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFCs No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Title -- Technical Assistance Description 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. Link http://www.cisco.com/cisco/web/support/index.html Feature Information for OSPFv3 Route Filtering Using 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 www.cisco.com/go/cfn. An account on Cisco.com is not required. 8

Feature Information for Table 1: Feature Information for Feature Name OSPFv3 Route Filtering Using Distribute-List Releases Cisco IOS XE Denali 16.3.1 Feature Information The route-map support for OSPFv3 route-filtering using distribute-list is supported. 9

Feature Information for 10