BGPCTL(8)               OpenBSD System Manager's Manual              BGPCTL(8)

NAME
     bgpctl - control the Border Gateway Protocol daemon

SYNOPSIS
     bgpctl [command]

DESCRIPTION
     The bgpctl program controls the bgpd(8) daemon.  The commands are as fol-
     lows:

     show summary
             Show a list of all neighbors, including information about the
             session state and message counters.

     show neighbor address modifier
             Show detailed information about the neighbor identified by
             address, according to the given modifier:

             messages  Show statistics about sent and received BGP messages.
             timers    Show the BGP timers.

     show rib filter
             Show routes from the bgpd Routing Information Base.  filter can
             be an IP address, a CIDR prefix, an AS filter or nothing:

             <address>            Show best matching route for address.
             <address>/<len>      Show RIB entry for this CIDR prefix.
             <address>/<len> all  Show all entries in the specified range.
             as <as>              Show all entries with <as> anywhere in the
                                  AS path.
             source-as <as>       Show all entries with <as> as rightmost AS.
             transit-as <as>      Show all entries with <as> anywhere but
                                  rightmost.

     show fib filter
             Show routes from bgpd's view of the Forward Information Base.
             filter can be an IP address, in which case the route to this ad-
             dress is shown, or a flag:

             connected  Show only connected routes.
             static     Show only static routes.
             bgp        Show only routes originating from bgpd(8) itself.
             nexthop    Show only routes required to reach a BGP nexthop.

     show nexthop
             Show the list of BGP Nexthops and the result of their validity
             check.

     show interface
             Show the interface states.

     reload  Reload the configuration file.

     fib couple
             Insert the learned routes into the Forward Information Base aka
             the kernel routing table.

     fib decouple
             Remove the learned routes from the Forward Information Base aka
             the kernel routing table.

     neighbor address up
             Take the bgp session to the specified neighbor up.

     neighbor address down
             Take the bgp session to the specified neighbor down.

FILES
     /etc/bgpd.conf  bgpctl configuration file.

SEE ALSO
     bgpd.conf(5), bgpd(8)

HISTORY
     The bgpctl program first appeared in OpenBSD 3.5.

OpenBSD 3.5                    December 22, 2003                             2
