By default, Outbound Route Filtering (ORF) capability is disabled. ORF send capability or receive capability or both can be enabled via configuration. For a successful negotiation of ORF capability, one peer should have advertised ORF send capability, and the other one should have advertised ORF receive capability.
The figure shown below depicts the topology setup used for this configuration.
Execute the following commands:
Enabling BGP in Router R1iS5comm# configure terminal
iS5comm(config)# as-num 100
iS5comm(config)# router-id 12.0.0.1
iS5comm(config)# router bgp 100
iS5comm(config-router)# neighbor 12.0.0.2 remote-as 200
iS5comm(config-router)# neighbor 12.0.0.2 capability orf prefix-list send
Enabling BGP in Router R2 iS5comm# configure terminal
iS5comm(config)# as-num 200
iS5comm(config)# router-id 12.0.0.2
iS5comm(config)# router bgp 200
iS5comm(config-router)# neighbor 12.0.0.1 remote-as 100
iS5comm(config-router)# neighbor 12.0.0.1 capability orf prefix-list receive
Type the following:
iS5comm# show ip bgp neighbor
BGP neighbor is 12.0.0.2, remote AS 200, internal link
BGP version 4, remote router ID 12.0.0.2
BGP state = Established, up for 2 minutes 43 seconds, un-authenticated session
Configured BGP Maximum Prefix Limit 100
Configured Connect Retry Count 5
Current Connect Retry Count 0
Peer Passive : DISABLED
Peer Status : NOT DAMPED
Route map for incoming advertisements is INRMAP
Route map for outgoing advertisements is RMAP
Rcvd update before 0 secs, hold time is 90, keepalive interval is 30 secs
Neighbors Capability:
Route-Refresh: Advertised and received
Address family IPv4 Unicast: Advertised and received
Address family IPv4 Unicast: Advertised and received
AF-dependant capabilities:
Outbound Route Filter (ORF) type : (64) Address Prefix based ORF
Send-mode : advertised
Receive-mode : received
Received 7 messages, 0 Updates
Sent 7 messages, 1 Updates
Route refresh: Received 0, sent 0.
Minimum time between advertisement runs is 5 seconds
Connections established 1 time(s)
Local host: 12.0.0.1, Local port: 179
Foreign host: 12.0.0.2, Foreign port: 49152
Last Error: Code 0, SubCode 0.
Type the following:
iS5comm# show ip bgp neighbor
BGP neighbor is 12.0.0.1, remote AS 100, internal link
BGP version 4, remote router ID 12.0.0.1
BGP state = Established, up for 7 minutes 45 seconds, un-authenticated session
Configured BGP Maximum Prefix Limit 10
AutomaticStart DISABLED
AutomaticStop DISABLED
DampPeer Oscillations DISABLED
DelayOpen DISABLED
Configured Connect Retry Count 5
Current Connect Retry Count 0
Default-originate : DISABLED
Peer Passive : DISABLED
Peer Status : NOT DAMPED
GateWay Address : NONE
Rcvd update before 0 secs, hold time is 90, keepalive interval is 30 secs
Neighbors Capability:
Route-Refresh: Advertised and received
4-byte ASN: Advertised and received
Address family IPv4 Unicast: Advertised and received
AF-dependant capabilities:
Outbound Route Filter (ORF) type : (64) Address Prefix based ORF
Send-mode : received
Receive-mode : advertised
Received 17 messages, 0 Updates
Sent 17 messages, 0 Updates
Route refresh: Received 1, sent 0.
Minimum time between advertisement runs is 5 seconds
Connections established 4 time(s)
Local host: 12.0.0.2, Local port: 179
Foreign host: 12.0.0.1, Foreign port: 65115
Last Error: Code 6, SubCode 0.
Update Source 12.0.0.2
Next-Hop is automatic
MultiHop Status - disabled
Send-Community is standard,extended