---
name: "sbgp"
section: "8"
platform: "linux"
package: "mrt"
version: "2.2.2a-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/sbgp/8"
---

# sbgp(8)

a simple BGP4 speaker and listener

## NAME

sbgp - a simple BGP4 speaker and listener

## DESCRIPTION

Usage: sbgp \[-01av\] \[-i binary\_data\_in\_file\] \[-o binary\_data\_out\_file\]\
             \[-l log\_file\] \[-f config\_file\] \[-c port\] \[-d port\] \[-s src\_addr\]\
             \[-E seconds\_idle\_after\_in\_file\_EOF\]\
             \[ASmy\_as\] \[peer\_ip ASpeer\_as\]...

SBGP is a simple BGP4 speaker and listener. SBGP does not apply policy to routes, nor does it maintain a routing information base (RIB) of routes it has previously learned. Rather, SBGP provides a mechanism for monitoring routing information sent from a peer, and for injecting routing information into a peering session.

  Synopsis

sbgp \[-av\] \[-i binary\_data\_in\_file\] \[-o binary\_data\_out\_file\] \[-l log\_file\] \[-f config\_file\] \[-c port\] \[-d port\] \[my AS\] \[peer\_IP peer\_AS\]...

  Options

\-a

   Accept peering BGP connection from all peers.

\-v

   Turn on verbose logging to standard output.

\-i binary\_data\_in\_file

   Inject routes from this file into every peering session. Use the file\
        name 'stdin' to read input from standard in.

\-o binary\_data\_out\_file

   Save route updates from all peering sessions into this file. Use the\
        file name 'stdout' to write output to standard out.

   \-l log\_file\
    Write logging information to this file. By default, SBGP logs to\
        /tmp/bgp.log.pid, where pid is the process ID number of the SBGP\
        process.

   \-f config\_file\
    Not supported yet

   \-p\
    Not supported yet

   \-c port\
    Connect to this port on all BGP peers.

   \-d port\
    Listen on this port for BGP peering connections.

   \[my AS\] \[peer\_IP peer\_AS\]...\
    Use my AS for my Autonymous System number and open peering sessions\
        with each peer\_IP address.

  Description

   As arguments, SBGP takes the local AS number followed by the IP\
    address and AS number of the BGP4 peer. Multiple peer IP addresses and\
    AS pairs may be specified. For example:

   sbgp AS2011 enss131.t3.ans.net AS690

   attempts to initiate a BGP4 peering session with the old NSFNET\
    backone on enss131. By default, SBGP writes logging information to\
    /tmp/bgp.log.

   The following command directs tracing information to stdout (the -v\
    option) and will save MRT messages containing the contents of BPG4\
    update packets to /tmp/data (the -o option).

   sbgp -vo data AS2011 enss131.t3.ans.net AS690

    Note that the remote peer must be configured to accept a BGP4 peering\
     session from the machine on which SBGP is running.

   The following command will inject routes stored in the binary MRT\
    message file data into the peering sessions with enss131:

   sbgp -vi data AS185 enss131.t3.and.net AS690

You can find more documentation in /usr/share/doc/mrt/html/
