cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4306
Views
0
Helpful
3
Replies

BGP change of peer notification

mulhollandm
Level 1
Level 1

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

Reza Sharifi
Hall of Fame
Hall of Fame

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

View solution in original post

andrew.prince
Level 10
Level 10

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!

View solution in original post

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

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

andrew.prince
Level 10
Level 10

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!

andrew/reza

many thanks for your responses

either option suits me so i'll try both