From 3560a73c928942e576afcda218312994049cde14 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Thu, 31 Aug 2023 09:42:40 +0300 Subject: [PATCH] BGP --- Juniper.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Juniper.md b/Juniper.md index 467caf8..f1336e3 100644 --- a/Juniper.md +++ b/Juniper.md @@ -453,4 +453,34 @@ PING 10.0.252.2 (10.0.252.2): 56 data bytes 1000 packets transmitted, 1000 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.572/2.286/13.992/2.207 ms ``` -This will send 1000 packets as fast as possible, and will show you packetloss and RTT. While you can ignore RTT, as control plane dont have high priority, packetloss should not be present in any case. \ No newline at end of file +This will send 1000 packets as fast as possible, and will show you packetloss and RTT. While you can ignore RTT, as control plane dont have high priority, packetloss should not be present in any case. + +### BGP troubleshooting + +If you have BGP session with Ogero, and it is not working, you can check if you have BGP session established by following command: + +``` +admin@CORE> show bgp summary +Groups: 1 Peers: 1 Down peers: 0 +Table Tot Paths Act Paths Suppressed History Damp State Pending +inet.0 + 1 1 0 0 0 0 +Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... +y.y.y.y 42020 0 0 0 0 1:01 1/1/1/0 0/0/0/0 +``` +If you see "State" column, it should be "Established", if it is not, you have a problem with BGP session. + +You can check if you have BGP routes sent by following command: + +``` +admin@CORE> show route advertising-protocol bgp y.y.y.y +inet.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + Prefix Nexthop MED Lclpref AS path +* x.y.a.x/22 Self I +* b.b.b.b/22 Self I +``` +If you see your prefixes, it means you are sending them to Ogero. + +You might use also "show bgp neighbor x.x.x.x" to see more detailed information about BGP session. + +### \ No newline at end of file