Tip

This is the documentation for the 19.02 version. Looking for the documentation of the latest version? Have a look here.

orphan:

BGP Information

TNSR supports several commands to display information about the BGP daemon configuration and its status.

Configuration Information

To view the BGP configuration:

tnsr# show route dynamic bgp config [<as-number>]

To view the routing daemon manager (Zebra) configuration:

tnsr# show route dynamic manager

To view other individual sections of the configuration:

tnsr# show route dynamic access-list [<access-list-name>]
tnsr# show route dynamic bgp as-path [<as-path-name>]
tnsr# show route dynamic bgp community-list [<community-list-name>]
tnsr# show route dynamic prefix-list [<prefix-list-name>]
tnsr# show route dynamic route-map [<route-map-name>]

Status Information

For a brief summary of BGP status information:

tnsr# show route dynamic bgp summary

For lists configured BGP Neighbors and their status details:

tnsr# show route dynamic bgp 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 network <IP Address|Prefix>

BGP Active Session Control

The clear command can be used to reset active BGP sessions. This command is available from within config-route-dynamic-bgp mode. The general form of the command is:

tnsr(config)# route dynamic bgp
tnsr(config-route-dynamic-bgp)# clear (*|<peer>|<asn>) [soft]

The first parameter controls what will be cleared, and values may be completed automatically with tab:

*:

Clears all open BGP sessions

<peer>:

Clears all sessions to a specific peer IP address or peer group name

<asn>:

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 Information

Additional BGP status information can be obtained by using the vtysh program outside of TNSR.

The vtysh program must be run as root:

sudo vtysh

The 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.