bgp log

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
How do you get bgp to at least log up and down from neigh in the normal log ? 

Do I have to configure a specific logfilter ? for these simple events ? I mean all failure state events should imho be logged to the local file.
Photo of andreas

andreas

  • 1,218 Points 1k badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,886 Points 10k badge 2x thumb
Hi,

you need to configure a log filter:

configure log filter DefaultFilter add events BGP.NeighborMgr.PeerEstTrans 
configure log filter DefaultFilter add events BGP.NeighborMgr.PeerFSMDegrade

See https://community.extremenetworks.com/extreme/topics/bgp-neighbor-fsm-state-monitoring .

Erik
Photo of Rahmathullah, Syed Nishath

Rahmathullah, Syed Nishath, Employee

  • 486 Points 250 badge 2x thumb
Hi,
I just verified in lab and this is what I see :

* sw3.143 # show bgp neighbor

     Peer            AS         Weight State        InMsgs OutMsgs(InQ)  Up/Down
-----------------------------------------------------------------------------------
Ee-- 30.0.0.10       10         1      ESTABLISHED  12013  12229 (0    ) 0:0:00:45
Ee-- 40.0.0.10       20         1      ESTABLISHED  11998  12325 (0    ) 0:0:00:30

Flags: (d) disabled, (e) enabled, (E) external peer, (I) internal peer
       (m) EBGP multihop, (r) route reflector client

BGP Peer Statistics
  Total Peers       : 2
  EBGP Peers        : 2                 IBGP Peers          : 0
  RR Client         : 0                 EBGP Multihop       : 0
  Enabled           : 2                 Disabled            : 0
* sw3.144 # di po 1,2
* sw3.145 # show log
04/25/2016 07:58:52.96 <Info:BGP.NeighborMgr.PeerEstTrans> [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.96 <Info:BGP.NeighborMgr.PeerFSMDegrade> [VR 2] Peer FSM State Deteriorated: Peer 40.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.95 <Info:vlan.msgs.portLinkStateDown> Port 2 link down
04/25/2016 07:58:52.94 <Info:BGP.NeighborMgr.PeerEstTrans> [VR 2] Peer 30.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.94 <Info:BGP.NeighborMgr.PeerFSMDegrade> [VR 2] Peer FSM State Deteriorated: Peer 30.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.93 <Info:vlan.msgs.portLinkStateDown> Port 1 link down

A total of 6 log messages were displayed.
* sw3.146 #
* sw3.146 # en po 1,2
* sw3.147 # show bg ne

     Peer            AS         Weight State        InMsgs OutMsgs(InQ)  Up/Down
-----------------------------------------------------------------------------------
Ee-- 30.0.0.10       10         1      ESTABLISHED  12017  12235 (0    ) 0:0:00:09
Ee-- 40.0.0.10       20         1      ESTABLISHED  12001  12334 (0    ) 0:0:00:09

Flags: (d) disabled, (e) enabled, (E) external peer, (I) internal peer
       (m) EBGP multihop, (r) route reflector client

BGP Peer Statistics
  Total Peers       : 2
  EBGP Peers        : 2                 IBGP Peers          : 0
  RR Client         : 0                 EBGP Multihop       : 0
  Enabled           : 2                 Disabled            : 0
* sw3.148 # show log
04/25/2016 07:59:08.75 <Info:BGP.NeighborMgr.PeerEstTrans> [VR 2] Peer 30.0.0.10 (0) has entered or left Established state, EST? 1, holdtime: 180, passive: 0
04/25/2016 07:59:08.31 <Info:BGP.NeighborMgr.PeerEstTrans> [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 1, holdtime: 180, passive: 0
04/25/2016 07:59:07.96 <Info:BGP.NeighborMgr.PeerFSMDegrade> [VR 2] Peer FSM State Deteriorated: Peer 40.0.0.10 (0), OpenSent -> Active, Input: 8
04/25/2016 07:59:07.94 <Info:BGP.NeighborMgr.PeerFSMDegrade> [VR 2] Peer FSM State Deteriorated: Peer 30.0.0.10 (0), OpenSent -> Active, Input: 8
04/25/2016 07:59:05.79 <Info:vlan.msgs.portLinkStateUp> Port 2 link UP at speed 1 Gbps and full-duplex
04/25/2016 07:59:05.73 <Info:vlan.msgs.portLinkStateUp> Port 1 link UP at speed 1 Gbps and full-duplex
04/25/2016 07:58:52.96 <Info:BGP.NeighborMgr.PeerEstTrans> [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.96 <Info:BGP.NeighborMgr.PeerFSMDegrade> [VR 2] Peer FSM State Deteriorated: Peer 40.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.95 <Info:vlan.msgs.portLinkStateDown> Port 2 link down
04/25/2016 07:58:52.94 <Info:BGP.NeighborMgr.PeerEstTrans> [VR 2] Peer 30.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0
04/25/2016 07:58:52.94 <Info:BGP.NeighborMgr.PeerFSMDegrade> [VR 2] Peer FSM State Deteriorated: Peer 30.0.0.10 (0), Established -> Idle, Input: 1
04/25/2016 07:58:52.93 <Info:vlan.msgs.portLinkStateDown> Port 1 link down

A total of 12 log messages were displayed.
* sw3.149 #
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,816 Points 10k badge 2x thumb
Hi,

using the event
configure log filter DefaultFilter add events BGP.NeighborMgr.PeerEstTrans

You have the following log:

04/25/2016 07:58:52.96 <Info:BGP.NeighborMgr.PeerEstTrans> [VR 2] Peer 40.0.0.10 (0) has entered or left Established state, EST? 0, holdtime: 180, passive: 0

The "EST?" parameter will tell you if this is a Up or Down event.
0 = down (leaving the established state)
1 = up (entering the established state)
Photo of andreas

andreas

  • 1,218 Points 1k badge 2x thumb
Thank you.. no comes t he question why isn't this a default logfilter that is enabled when you enable BGP ? No other router I have worked with has this behaviour of NOT reporting in the local log.
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,816 Points 10k badge 2x thumb
We are in agreement on that topic.
I cannot promise things, but let me discuss that with our engineering team.
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,816 Points 10k badge 2x thumb
A CR has been created for this, and a fix should be present on next releases of EXOS.
Photo of andreas

andreas

  • 1,218 Points 1k badge 2x thumb
Thank you !
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,816 Points 10k badge 2x thumb
The fix has been released in 16.2.1 and 21.1.2.