Configure BGP4 Outbound Route Filtering

You can configure BGP4 Outbound Route Filtering (ORF) in receive mode, send mode, or both, minimizing the number of BGP updates exchanged between BGP peers.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Access IPv4 address family configuration mode.
    device(config-bgp-router)# address-family ipv4 unicast
  4. (For send mode only) Filter the incoming route updates from a specified BGP neighbor.
    device(config-bgp-ipv4u)# neighbor 10.1.2.3 prefix-list myprefixlist in
    This example specifies the neighbor prefix-list command, the IPv4 address of the neighbor, a prefix list named myprefixlist, and the keyword in.
  5. To advertise ORF send capabilities, run the neighbor capability orf prefixlist command with the send keyword.
    device(config-bgp-ipv4u)# neighbor 10.1.2.3 capability orf prefixlist send
  6. To advertise ORF receive capabilities, run the neighbor capability orf prefixlist command with the receive keyword.
    device(config-bgp-ipv4u)# neighbor 10.1.2.3 capability orf prefixlist receive
  7. To advertise both ORF send and receive capabilities, run the neighbor capability orf prefixlist command.
    device(config-bgp-ipv4u)# neighbor 10.1.2.3 capability orf prefixlist

Example

The following example summarizes the commands for advertising ORF in receive mode.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast 
device(config-bgp-ipv4u)# neighbor 10.1.2.3 capability orf prefixlist receive

Example

The following example summarizes the commands for advertising ORF in send mode.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast 
device(config-bgp-ipv4u)# 10.1.2.3 prefix-list myprefixlist in
device(config-bgp-ipv4u)# 10.1.2.3 capability orf prefixlist send

Example

The following example summarizes the commands for advertising ORF in both send and receive modes.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast 
device(config-bgp-ipv4u)# neighbor 10.1.2.3 prefix-list myprefixlist in
device(config-bgp-ipv4u)# neighbor 10.1.2.3 capability orf prefixlist