github.com/osrg/gobgp/v3@v3.30.0/docs/sources/route-server.md (about)

     1  # Route Server
     2  
     3  This page explains how to set up GoBGP as a [route server](https://tools.ietf.org/html/rfc7947)
     4  
     5  ## Prerequisites
     6  
     7  Assumed that you finished [Getting Started](getting-started.md).
     8  
     9  ## Configuration
    10  
    11  This example uses the following simple configuration file, `gobgpd.conf`. There are three changes from
    12  the configuration file used in [Getting Started](getting-started.md)
    13  
    14  - Peers are configured as route server clients (of course!).
    15  - GoBGP doesn't try to connect to peers. It only listens and accepts.
    16  - MD5 passwords are enabled.
    17  
    18  ```toml
    19  [global.config]
    20    as = 64512
    21    router-id = "192.168.255.1"
    22  
    23  [[neighbors]]
    24    [neighbors.config]
    25      neighbor-address = "10.0.255.1"
    26      peer-as = 65001
    27      auth-password = "hoge1"
    28    [neighbors.transport.config]
    29      passive-mode = true
    30    [neighbors.route-server.config]
    31      route-server-client = true
    32  
    33  [[neighbors]]
    34    [neighbors.config]
    35      neighbor-address = "10.0.255.2"
    36      peer-as = 65002
    37      auth-password = "hoge2"
    38    [neighbors.transport.config]
    39      passive-mode = true
    40    [neighbors.route-server.config]
    41      route-server-client = true
    42  ```
    43  
    44  ## Starting GoBGP
    45  
    46  Let's start gobgpd:
    47  
    48  ```bash
    49  $ sudo -E gobgpd -f gobgpd.conf
    50  {"level":"info","msg":"Peer 10.0.255.1 is added","time":"2015-04-06T22:55:57+09:00"}
    51  {"level":"info","msg":"Peer 10.0.255.2 is added","time":"2015-04-06T22:55:57+09:00"}
    52  ```
    53  
    54  GoBGP implements multiple RIBs, that is, each peer has own local
    55  RIB. Let's check respectively.
    56  
    57  ```bash
    58  $ gobgp neighbor 10.0.255.1 local
    59     Network            Next Hop        AS_PATH    Age        Attrs
    60  *> 10.3.0.0/24        10.0.255.2      [65002]    00:05:50   [{Origin: 0} {Med: 0}]
    61  *> 192.168.2.0/24     10.0.255.2      [65002]    00:05:50   [{Origin: 0} {Med: 0}]
    62  ```
    63  
    64  ```bash
    65  $ gobgp neighbor 10.0.255.2 local
    66     Network            Next Hop        AS_PATH    Age        Attrs
    67  *> 10.3.0.0/16        10.0.255.1      [65001]    00:06:12   [{Origin: 0} {Med: 0}]
    68  *> 10.3.0.1/32        10.0.255.1      [65001]    00:06:12   [{Origin: 0} {Med: 0}]
    69  ```
    70  
    71  Of course, you can also look at the adjacent rib-in and rib-out of each peer as done in [Getting Started](getting-started.md).