BGP Route Refresh Capability
BGP Route Refresh Capability
Search...
Table of Contents
CCIE Routing & Switching
Unit 1: Preparation
Unit 2: Switching
Unit 3: IP Routing
Unit 4: RIP
Unit 5: EIGRP
Unit 6: OSPF
Unit 7: BGP
Introduction to BGP
eBGP Multi-Hop
BGP Auto-Summary
BGP Messages
BGP Communities
BGP Allow AS in
BGP AS Override
BGP Transit AS
BGP Route Re ector
BGP Confederations
BGP Synchronization
Unit 8: Multicast
Unit 9: IPv6
Unit 10: Quality of Service
Unit 11: Security
Unit 12: System Management
Unit 13: Network Services
Unit 14: MPLS
A long time ago there was no method to dynamically request a re-advertisement of the pre xes of
one of your BGP neighbors. When you change your policy, somehow you have to compare all the
pre xes from your BGP neighbor against your new policy.
To solve this problem, the soft recon guration method was created which stores an unmodi ed
version of the pre xes from your BGP neighbor. This works but you’ll need additional memory
since you are saving an additional table for each BGP neighbor. Since 2000 we also have the route
refresh capability, simply said…your router will ask its BGP neighbor to re-send its pre xes.
Here are the 3 options that we have to refresh our BGP table when our policy changes:
Hard reset
Soft recon guration
Route refresh capability
The hard reset is the most simple method (clear ip bgp command). It kills the TCP session with your
BGP neighbor which forces it to restart and as a result you’ll receive all pre xes from your neighbor
again. It works but will interrupt your network, not a good idea.
The soft recon guration will store everything that you receive from a BGP neighbor in a separate
table before applying the policy. I explain this in my soft recon guration tutorial. This works but it’s
not very e cient. Your router will store an entire table for each BGP neighbor with the unmodi ed
pre xes, you’ll need extra memory.
Route refresh capability is the most preferred method…when you change your BGP policy you
just send a message to your BGP neighbor and it will re-send you all its pre xes, there will be no
disruption at all.
In this tutorial we’ll look at the route refresh capability, it’s described in RFC 2918 and supported on
most routers.
Configuration
I will use two routers for this, R1 and R2. I have added two loopback interfaces on R1 so that we
have something to advertise:
R1(config)#router bgp 1
R1(config-router)#neighbor 192.168.12.2 remote-as 2
R1(config-router)#network 1.1.1.1 mask 255.255.255.255
R1(config-router)#network 11.11.11.11 mask 255.255.255.255
R2(config)#router bgp 2
R2(config-router)#neighbor 192.168.12.1 remote-as 1
Route refresh is enabled by default, you can verify this by using the following show command:
This router can do a route refresh for inbound pre xes (what you learn from you BGP neighbor) or
outbound (the pre xes that you send to them). On my IOS 15.x router you see “(new)” which means
this router supports the RFC 2918 version of route refresh. Some older IOS versions might show
(“old & new”) which means they also support a version of route refresh that Cisco implemented
before the RFC was created.
Let’s see if R2 learned those pre xes on the loopback interfaces:
R2#show ip bgp
BGP table version is 3, local router ID is 192.168.12.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-
external, f RT-Filter
Origin codes: i - IGP, e - EGP, ? - incomplete
That’s looking good. Now I will create a route-map that changes one of the BGP attributes. This
means the router will have to update its BGP table somehow:
R2(config)#router bgp 2
R2(config-router)#neighbor 192.168.12.1 route-map METRIC in
This route-map will set the metric to 222 for all pre xes that we receive from R1. Let’s look at he
BGP table again:
R2#show ip bgp
BGP table version is 3, local router ID is 192.168.12.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-
external, f RT-Filter
Origin codes: i - IGP, e - EGP, ? - incomplete
As you can see nothing has changed yet. We’ll use the route refresh method to x this but before I
do so, let’s enable a debug so you can see in realtime what is going on:
R2#
BGP: 192.168.12.1 sending REFRESH_REQ(5) for afi/safi: 1/1
R1#
BGP: 192.168.12.2 rcvd REFRESH_REQ for afi/safi: 1/1
R2#show ip bgp
BGP table version is 5, local router ID is 192.168.12.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-
external, f RT-Filter
Origin codes: i - IGP, e - EGP, ? - incomplete
Very nice, the metric has been updated and we didn't clear the BGP session...mission
accomplished!
When you enable soft recon guration, your router will no longer send a route refresh
update request to its BGP neighbor but it will use the routing information that it stored for
this neighbor.
Configurations
Want to take a look for yourself? Here you will nd the con guration of each device.
R1
hostname R1
!
interface Loopback 0
ip address 1.1.1.1 255.255.255.255
!
interface Loopback 1
ip address 11.11.11.11 255.255.255.255
!
interface fastEthernet0/0
ip address 192.168.12.1 255.255.255.0
!
router bgp 1
neighbor 192.168.12.2 remote-as 2
network 1.1.1.1 mask 255.255.255.255
network 11.11.11.11 mask 255.255.255.255
!
end
R2
hostname R2
!
interface fastEthernet0/0
ip address 192.168.12.2 255.255.255.0
!
router bgp 2
neighbor 192.168.12.1 remote-as 1
neighbor 192.168.12.1 route-map METRIC in
!
route-map METRIC permit 10
set metric 222
!
end
That's all I have for now. Hopefully this has helped you to understand the route refresh capability.
If you have any questions feel free to leave a comment.
« Previous Lesson
BGP Soft Recon guration
Next Lesson
BGP Extended Access-List Filtering »
Home › Forums › BGP Route Refresh Capability
This topic contains 8 replies, has 6 voices, and was last updated by Mohammad Hasanuz Z 3
weeks ago.
Holmes
Hi Rene,
I really enjoyed the presentation of your book called how to master ccna. This is the kind of
presentation im looking for but most of these books out there have too much detail. Do you have a
book for CCENT or atleast can you recommend a similar book for CCENT?
Thanks
Holmes
sutandra C
Member
Your discussion on BGP synchronization is excellent. Really explains the topic. Many Thanks
Rene Molenaar
Keymaster
Glad to hear that you enjoyed it!
Navid D
Participant
Thank you for this clear demo.
Rene Molenaar
Keymaster
Hi Navid,
I don’t have anything on Enhanced Route Refresh at the moment. I’ll add it to my list, might be nice
for the future.
Rene
XIN W
Participant
question:
why we need “R2#clear ip bgp 192.168.12.1 in” here to make R2 sent Route-refresh? it should send
automatically if route-refresh is supported and negotiated, thanks
Rene Molenaar
Keymaster
Hi Xin,
Using the clear ip bgp in command is a nice way to manually request a route refresh from your
neighbor.
Once you do this, you can see it in the debug that R2 is requesting R1 for a refresh:
R2#
BGP: 192.168.12.1 sending REFRESH_REQ(5) for afi/safi: 1/1
Rene
Mohammad Hasanuz Z
Participant
Hi Rene,
In summary ….
HARD RESET : It will tear down TCP session as well as BGP session.Establishing new BGP session,
will send Route refresh request to neighbor and learn all pre x again also network interuption will
occured.
Soft Recon guration : Need More Memory due to store RAW Pre x in seperate table. No network
interuption and will not send any Route refresh request.
Route Refresh : This is the most suitable method.No network interuption , no extra memory
needed.Just send a Route refresh request.
br/zaman
Author
Posts
Attachments:
Choose File No file chosen
Add another le
Submit
About NetworkLessons.com
Hello There! I'm René Molenaar (CCIE #41726), Your Personal Instructor of
Networklessons.com. I'd like to teach you everything about Cisco, Wireless and
Security. I am here to Help You Master Networking!
Read my story
Social Fans
14,351 8,732 1,589
FANS FOLLOWERS SUBSCRIBERS
Introduction to DMVPN
(21 votes)
EIGRP Router ID
(20 votes)
New Lessons
Voice VLAN
Introduction to Wireless LAN
Network Topologies
Broadcast Domain
Collision Domain
Disclaimer
Privacy Policy
Support
BGP Route Refresh Capability written by Rene Molenaar average rating 4.9/5 - 8 user ratings
© 2013 - 2016 NetworkLessons.com 7656