07-08-2014 04:07 PM - edited 03-07-2019 07:59 PM
Hi,
Just a quick one with regards to BGP Timers. As we all know its default Keepalives: 60 and Holdtime: 180 seconds.
I have the following config below setup on my network:
router bgp YYY
bgp router-id 10.79.250.141
bgp log-neighbor-changes
neighbor 10.79.5.2 remote-as XXX
neighbor 10.79.5.2 transport path-mtu-discovery
neighbor 10.79.252.74 remote-as YYY
neighbor 10.79.252.74 transport path-mtu-discovery
!
address-family ipv4
redistribute connected
neighbor 10.79.5.2 activate
neighbor 10.79.5.2 send-community
neighbor 10.79.5.2 soft-reconfiguration inbound
neighbor 10.79.252.74 activate
neighbor 10.79.252.74 send-community
neighbor 10.79.252.74 soft-reconfiguration inbound
exit-address-family
!
address-family ipv4 vrf admin
redistribute connected
neighbor 10.65.5.2 remote-as XXX
neighbor 10.65.5.2 transport path-mtu-discovery
neighbor 10.65.5.2 activate
neighbor 10.65.5.2 send-community
neighbor 10.65.5.2 soft-reconfiguration inbound
neighbor 10.65.252.74 remote-as YYY
neighbor 10.65.252.74 transport path-mtu-discovery
neighbor 10.65.252.74 activate
neighbor 10.65.252.74 send-community
neighbor 10.65.252.74 soft-reconfiguration inbound
exit-address-family
!
address-family ipv4 vrf av
redistribute connected
neighbor 10.78.5.2 remote-as XXX
neighbor 10.78.5.2 transport path-mtu-discovery
neighbor 10.78.5.2 activate
neighbor 10.78.5.2 send-community
neighbor 10.78.5.2 soft-reconfiguration inbound
neighbor 10.78.252.74 remote-as YYY
neighbor 10.78.252.74 transport path-mtu-discovery
neighbor 10.78.252.74 activate
neighbor 10.78.252.74 send-community
neighbor 10.78.252.74 soft-reconfiguration inbound
exit-address-family
Instead of me adding "neighbor x.x.x.x timer 30 90" on each peering neighbors, can I use "timers bgp 30 90" under the "router bgp 65258" to reflect to all address-family VRFs peering BGP neighbors?
If not, is there a global command to use to set the timers for all BGP session within the router?
Thanks
Solved! Go to Solution.
07-08-2014 05:37 PM
Hi again,
Yes you have understood the concept.
Just set the timers after the bgp
!
router bgp 100
timers bgp 5 15 (Your own values)
!
This will set all neighbors to 5 15 unless you specifically set them in the neighbor statements
Hope this helps
Please grade useful posts
Regards
Alex
07-08-2014 05:17 PM
Hi,
The command
!
router bgp 100
neighbor 192.168.100.254 timers 30 90
!
This overides the command set under the timers bgp
!
router bgp 100
timers bgp 5 15
!
address-family ipv4 vrf av
redistribute connected
neighbor 10.78.5.2 timers 30 90
neighbor 10.78.5.2 remote-as XXX
et etc etc
exit-address-family
The result will be 30 90 for the vrf av neighbor but 5 15 for any others
See this link for more info
http://www.cisco.com/c/en/us/td/docs/ios/iproute_bgp/command/reference/irg_book.html
Regards
Alex
07-08-2014 05:25 PM
Thanks Alex. So if I left it as using "timer bgp 5 15" and no neighbor x.x.x.x timers setup, this should take affect to all vrf/neighbors globally for that router?
Much appreciate your reply and link.
07-08-2014 05:37 PM
Hi again,
Yes you have understood the concept.
Just set the timers after the bgp
!
router bgp 100
timers bgp 5 15 (Your own values)
!
This will set all neighbors to 5 15 unless you specifically set them in the neighbor statements
Hope this helps
Please grade useful posts
Regards
Alex
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: