Project

General

Profile

Actions

Feature #13643

open

FRR - Display what BGP is advertsing to its neighbors

Added by Mike Moore over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
FRR
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

There is no way to verify what the pfsense is sending to its bgp peers using the Services/FRR/Status page.

Although not shown, the commands that populate the page for bgp seem to be the following
1. show ip bgp
2. show ip bgp summary
3. show ip bgp neighbor

What is missing is the ability to see what is sent to the neighbor
1. show ip bgp neighbors x.x.x.x advertised-routes

Relying on a configured prefix-list or ACL is not a good way to know what neighbors are receiving upstream.

Actions #1

Updated by Jim Pingle over 1 year ago

  • Project changed from pfSense to pfSense Packages
  • Category changed from Routing to FRR
  • Priority changed from High to Normal
  • Release Notes deleted (Default)
Actions #2

Updated by Chris Linstruth over 1 year ago

I do not know whether this will or will not be picked up for GUI inclusion but I wanted to put it out there that administrators always have the full complement of frr commands at their disposal using frr's vtysh utility.

Caution should be exercised and changes should be made in the gui or they will be lost but for status queries like these it is pretty useful.

Shell Output - vtysh -c "show ip bgp neighbors 172.25.228.58 advertised-routes" 

BGP table version is 10, local router ID is 172.25.232.1, vrf id 0
Default local pref 100, local AS 65001
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

Originating default network 0.0.0.0/0

   Network          Next Hop            Metric LocPrf Weight Path
*> 172.31.31.0/24   0.0.0.0                  0         32768 i

Total number of prefixes 1

Shell Output - vtysh -c "show ip bgp 172.31.31.0/24" 

BGP routing table entry for 172.31.31.0/24
Paths: (1 available, best #1, table default)
  Advertised to non peer-group peers:
  172.25.228.58
  Local
    0.0.0.0 from 0.0.0.0 (172.25.232.1)
      Origin IGP, metric 0, weight 32768, valid, sourced, local, best (First path received)
      Last update: Sat Jul  9 14:54:53 2022

It can also be used interactively from the shell:

Enter an option: 8

[2.6.0-RELEASE][root@pfSense-a]/root: vtysh

Hello, this is FRRouting (version 7.5.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

pfSense-a# show ip bgp neighbors 172.25.228.58 advertised-routes 
BGP table version is 10, local router ID is 172.25.232.1, vrf id 0
Default local pref 100, local AS 65001
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

Originating default network 0.0.0.0/0

   Network          Next Hop            Metric LocPrf Weight Path
*> 172.31.31.0/24   0.0.0.0                  0         32768 i

Total number of prefixes 1
pfsense-a#
Actions #3

Updated by Alhusein Zawi over 1 year ago

it could be added as "vtysh command " similar to Diagnostics>Command Prompt .

only "show" Commands (not conf. commands)

Actions #4

Updated by Mike Moore over 1 year ago

Appreciate the responses here. I didnt know if vtysh could be called from the cli - rather i didnt know how.
That being the case, i assume intergrating that into the GUI wouldnt be a huge lift?

Actions

Also available in: Atom PDF