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.
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 send
device(config-bgp-ipv4u)# neighbor 10.1.2.3 capability orf prefixlist receive
device(config-bgp-ipv4u)# neighbor 10.1.2.3 capability orf prefixlist
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
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
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