TNSR supports several commands to display information about the BGP daemon configuration and its status.
For more general dynamic routing status information, see Dynamic Routing Manager Status
To view the BGP configuration:
tnsr# show route dynamic bgp config [<as-number>]
To view other individual sections of the configuration:
tnsr# show route dynamic bgp as-path [<as-path-name>] tnsr# show route dynamic bgp community-list [<community-list-name>]
For a brief summary of BGP status information:
tnsr# show route dynamic bgp (ipv4|ipv6) summary
For a list of configured BGP Neighbors and their status details:
tnsr# show route dynamic bgp (ipv4|ipv6) neighbors [[<peer>] [advertised-routes| dampened-routes|flap-statistics|prefix-counts|received|received-routes|routes]]
For information about a specific BGP peer group:
tnsr# show route dynamic bgp peer-group <peer-group-name>
For a list of valid BGP next hops:
tnsr# show route dynamic bgp nexthop [detail]
For details about an address or prefix in the BGP routing table:
tnsr# show route dynamic bgp (ipv4|ipv6) network <IP Address|Prefix>
BGP Active Session Control¶
clear command can be used to reset active BGP sessions. This command
is available from within
config-frr-bgp mode. The general form of
the command is:
tnsr(config)# route dynamic bgp tnsr(config-frr-bgp)# clear (*|<peer>|<asn>) [soft]
The first parameter controls what will be cleared, and values may be completed
Clears all open BGP sessions
Clears all sessions to a specific peer IP address or peer group name
Clears all sessions to a specific AS number
The second parameter,
soft is optional and controls whether or not the
command will trigger a soft reconfiguration.
Additional BGP status information can be obtained by using the
outside of TNSR.
The vtysh program must be run as root:
vtysh interface offers numerous commands. Of particular interest for BGP
status are the following:
- show bgp summary
A brief summary of BGP status information.
- show bgp neighbors
Lists configured BGP Neighbors and their status details.
- show ip bgp
A list of routes and paths for networks involved in BGP.
- show ip route
The IP routing table managed by the FRR Zebra daemon, which marks the origin of routes to see which entries were obtained via BGP.