Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

BGP change of peer notification

folks

i have a router which peers with two ISP BGP routers, one on my primary link and the other on my backup link

the isp advertises a default route to my routers

i noticed that i have failed over to my backup link due to an md5 authentication issue on the primary site

i have a bgp log-neighbor-changes command in my config and i can see the following in my logs

Oct 14 16:13:25.747: %BGP-3-NOTIFICATION: sent to neighbor *.*.*.*/0 (hold time expired) 0 bytes

is there any way to have the router notify via snmp or syslog of a change when a link fails over or when a bgp neighbour becomes unavailable?

thanks to anyone taking the time to read this or to reply

2 ACCEPTED SOLUTIONS

Accepted Solutions
VIP Super Bronze

Re: BGP change of peer notification

Hi,

If you want SNMP traps for BGP state changes, you can configure:

snmp-server enable traps bgp state-changes all

or if you want limited transitions to be send, you can configure it with limited knob as below:

T-1(config)#snmp-server  enable traps bgp state-changes ?  
  all             CISCO specific trap for all fsm state changes
  backward-trans  CISCO specific trap for backward transition
  limited         Trap for standard backward transition and established
 

HTH

Reza

Re: BGP change of peer notification

Yes - you need to send the logs to a syslog server (the easiest way) with the command:-

logging x.x.x.x

This will send the BGP log message to the server.  Then run either KiwiSyslog (Windows) or SyslogNG (Linux) to send an email when the specific text string is recevied.  I personally use:-

"%BGP-3-NOTIFICATION"

that way I see everything!

3 REPLIES
VIP Super Bronze

Re: BGP change of peer notification

Hi,

If you want SNMP traps for BGP state changes, you can configure:

snmp-server enable traps bgp state-changes all

or if you want limited transitions to be send, you can configure it with limited knob as below:

T-1(config)#snmp-server  enable traps bgp state-changes ?  
  all             CISCO specific trap for all fsm state changes
  backward-trans  CISCO specific trap for backward transition
  limited         Trap for standard backward transition and established
 

HTH

Reza

Re: BGP change of peer notification

Yes - you need to send the logs to a syslog server (the easiest way) with the command:-

logging x.x.x.x

This will send the BGP log message to the server.  Then run either KiwiSyslog (Windows) or SyslogNG (Linux) to send an email when the specific text string is recevied.  I personally use:-

"%BGP-3-NOTIFICATION"

that way I see everything!

New Member

Re: BGP change of peer notification

andrew/reza

many thanks for your responses

either option suits me so i'll try both

1584
Views
0
Helpful
3
Replies