Fortinet black logo

CLI Reference

router info bgp

router info bgp

Use this command to display information about the BGP configuration.

Syntax

get router info bgp <keyword>

<keyword> Description

cidr-only

Show all BGP routes having non-natural network masks.

community

Show all BGP routes having their COMMUNITY attribute set.

community-info

Show general information about the configured BGP communities, including the routes in each community and their associated network addresses.

community-list

Show all routes belonging to configured BGP community lists.

dampening {dampened-paths | flap‑statistics | parameters}

Display information about dampening:

Type dampened-paths to show all paths that have been suppressed due to flapping.

Type flap-statistics to show flap statistics related to BGP routes.

Type parameters to show the current dampening settings.

filter-list

Show all routes matching configured AS-path lists.

inconsistent-as

Show all routes associated with inconsistent autonomous systems of origin.

memory

Show the BGP memory table.

neighbors [<address_ipv4> | <address_ipv4> advertised-routes | <address_ipv4> received prefix-filter | <address_ipv4> received-routes | <address_ipv4> routes]

Show information about connections to TCP and BGP neighbors.

network [<address_ipv4mask>]

Show general information about the configured BGP networks, including their network addresses and associated prefixes.

network-longer-prefixes <address_ipv4mask>

Show general information about the BGP route that you specify (for example, 12.0.0.0/14) and any specific routes associated with the prefix.

paths

Show general information about BGP AS paths, including their associated network addresses.

prefix-list <name>

Show all routes matching configured prefix list <name>.

quote-regexp <regexp_str>

Enter the regular expression to compare to the AS_PATH attribute of BGP routes (for example, ^730$) and enable the use of output modifiers (for example, include, exclude, and begin) to search the results.

regexp <regexp_str>

Enter the regular expression to compare to the AS_PATH attribute of BGP routes (for example, ^730$).

route-map

Show all routes matching configured route maps.

scan

Show information about next-hop route scanning, including the scan interval setting.

summary

Show information about BGP neighbor status.

Example output

get router info bgp memory

Memory type Alloc count Alloc bytes

=================================== ============= ===============

BGP structure : 2 1408

BGP VR structure : 2 104

BGP global structure : 1 56

BGP peer : 2 3440

BGP as list master : 1 24

Community list handler : 1 32

BGP Damp Reuse List Array : 2 4096

BGP table : 62 248

----------------------------------- ------------- ---------------

Temporary memory : 4223 96095

Hash : 7 140

Hash index : 7 28672

Hash bucket : 11 132

Thread master : 1 564

Thread : 4 144

Link list : 32 636

Link list node : 24 288

Show : 1 396

Show page : 1 4108

Show server : 1 36

Prefix IPv4 : 10 80

Route table : 4 32

Route node : 63 2772

Vector : 2180 26160

Vector index : 2180 18284

Host config : 1 2

Message of The Day : 1 100

IMI Client : 1 708

VTY master : 1 20

VTY if : 11 2640

VTY connected : 5 140

Message handler : 2 120

NSM Client Handler : 1 12428

NSM Client : 1 1268

Host : 1 64

Log information : 2 72

Context : 1 232

----------------------------------- ------------- ---------------

bgp proto specifc allocations : 9408 B

bgp generic allocations : 196333 B

bgp total allocations : 205741 B

router info bgp

Use this command to display information about the BGP configuration.

Syntax

get router info bgp <keyword>

<keyword> Description

cidr-only

Show all BGP routes having non-natural network masks.

community

Show all BGP routes having their COMMUNITY attribute set.

community-info

Show general information about the configured BGP communities, including the routes in each community and their associated network addresses.

community-list

Show all routes belonging to configured BGP community lists.

dampening {dampened-paths | flap‑statistics | parameters}

Display information about dampening:

Type dampened-paths to show all paths that have been suppressed due to flapping.

Type flap-statistics to show flap statistics related to BGP routes.

Type parameters to show the current dampening settings.

filter-list

Show all routes matching configured AS-path lists.

inconsistent-as

Show all routes associated with inconsistent autonomous systems of origin.

memory

Show the BGP memory table.

neighbors [<address_ipv4> | <address_ipv4> advertised-routes | <address_ipv4> received prefix-filter | <address_ipv4> received-routes | <address_ipv4> routes]

Show information about connections to TCP and BGP neighbors.

network [<address_ipv4mask>]

Show general information about the configured BGP networks, including their network addresses and associated prefixes.

network-longer-prefixes <address_ipv4mask>

Show general information about the BGP route that you specify (for example, 12.0.0.0/14) and any specific routes associated with the prefix.

paths

Show general information about BGP AS paths, including their associated network addresses.

prefix-list <name>

Show all routes matching configured prefix list <name>.

quote-regexp <regexp_str>

Enter the regular expression to compare to the AS_PATH attribute of BGP routes (for example, ^730$) and enable the use of output modifiers (for example, include, exclude, and begin) to search the results.

regexp <regexp_str>

Enter the regular expression to compare to the AS_PATH attribute of BGP routes (for example, ^730$).

route-map

Show all routes matching configured route maps.

scan

Show information about next-hop route scanning, including the scan interval setting.

summary

Show information about BGP neighbor status.

Example output

get router info bgp memory

Memory type Alloc count Alloc bytes

=================================== ============= ===============

BGP structure : 2 1408

BGP VR structure : 2 104

BGP global structure : 1 56

BGP peer : 2 3440

BGP as list master : 1 24

Community list handler : 1 32

BGP Damp Reuse List Array : 2 4096

BGP table : 62 248

----------------------------------- ------------- ---------------

Temporary memory : 4223 96095

Hash : 7 140

Hash index : 7 28672

Hash bucket : 11 132

Thread master : 1 564

Thread : 4 144

Link list : 32 636

Link list node : 24 288

Show : 1 396

Show page : 1 4108

Show server : 1 36

Prefix IPv4 : 10 80

Route table : 4 32

Route node : 63 2772

Vector : 2180 26160

Vector index : 2180 18284

Host config : 1 2

Message of The Day : 1 100

IMI Client : 1 708

VTY master : 1 20

VTY if : 11 2640

VTY connected : 5 140

Message handler : 2 120

NSM Client Handler : 1 12428

NSM Client : 1 1268

Host : 1 64

Log information : 2 72

Context : 1 232

----------------------------------- ------------- ---------------

bgp proto specifc allocations : 9408 B

bgp generic allocations : 196333 B

bgp total allocations : 205741 B