fbpx

BGP – ORF (Outbound Route Filtering)

· >

We all knows that BGP is slowest protocol. But it can be more chatty protocol also.

Suppose, You are having one CE router which is connected with PE (ISP managed) router and ISP is advertising lot of prefixes. But you don’t need of these all the subnets and want only few prefixes.

In this case, you are having two options. Actually, not only two…..

First, You can request your ISP to filter the prefixes and advertise only few specific prefixes to you.

Second, You can create the filter on your CE router and receive the selective prefixes. But you will still receive all the prefixes and your CE router will these routes to filter  which consumes router’s CPU and memory.

We are having third option also that is called ORF.

ORF is a way to create a prefix-list for filtering, and then send the list to PE. PE router will then only send the routes that match the list.

This looks good for ISP, as it has a low overhead. It’s great for you as well, as you still have control, but don’t to worry about aprocessing and resource usage that comes with additional routes.

Both the PE and the CE need to be capable of supporting ORF, and both need to be configured to use it per neighbor.

Below is our topology:

R1(PE)————————–R2(CE)

CE Router configuration:

First we are configuring the to filter the incoming routes from PE. This same inbound prefix list will be send to PE router once ORF is enabled.

ip prefix-list ALLOWED_NETWORKS permit 10.0.0.0/24
neighbor 100.100.100.100 prefix-list ALLOWED_NETWORKS in
neighbor 100.100.100.100 capability orf prefix-list send

PE Router configuration:

neighbor 100.100.100.101 capability orf prefix-list receive

Verifying the routes:

R2#sh ip bgp neighbors 10.0.0.1 received-routes 
BGP table version is 2, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *   172.16.1.0/24   10.0.0.1                 0             0 100 i

Total number of prefixes 1 


R2#sh ip bgp
BGP table version is 2, local router ID is 192.168.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  192.168.10.0    0.0.0.0                  0         32768 i

Also Recommended to Read:
  • Kubernetes Replication Controllers Explained

    Kubernetes Replication Controllers Explained

    Kubernetes replication controllers, also known as “replication controllers,” are a powerful tool for managing the deployment and scaling of your application in a Kubernetes cluster. They ensure that a specified number of replicas of your application are running at all times, and automatically replace any replicas that fail or are terminated. In this blog post, […]


  • Kubernetes Pods Explained

    Kubernetes Pods Explained

    Kubernetes pods are the smallest and simplest unit in the Kubernetes object model that you create or deploy. A pod represents a single instance of a running process in your cluster. A pod can contain one or more containers, and all the containers in a pod share the same network namespace, meaning they can all […]


  • Kubernetes Key Concepts and Terminologies

    Kubernetes Key Concepts and Terminologies

    Kubernetes is an open-source container orchestration system for automating the deployment, scaling, and management of containerized applications. In this blog post, we will discuss some key concepts and terminologies that are essential to understanding and working with Kubernetes. These are some of the key concepts and terminologies that are essential to understanding and working with […]


Leave a Reply

Your email address will not be published. Required fields are marked *

© Copyright Tech Academy
All Rights Reserved.
ENROLL IN CISCO ACADEMY

 Get CCNA Discount Voucher