BGP interaction setup

You can use gobgp from our docker registry if you need to announce prefixes via BGP.

Setup of BGP speaker

gobgp is available on port defined by the environment variables:

  • COLLECTOR_BGP_PORT (default: 179)

Setup instruction:

  1. Create folder config/gobgp and configuration file config/gobgp/gobgpd.yml.

  2. Set settings into config/gobgp/gobgpd.yml using documentation.

    For example:

    global:
        config:
            as: 64512
            router-id: 192.168.255.1
    neighbors:
        - config:
            neighbor-address: 10.0.255.1
            peer-as: 65001
        - config:
            neighbor-address: 10.0.255.2
            peer-as: 65002
  3. Add gobgp module into docker-compose.override.yml. If docker-compose.override.yml is absent you need to create it.

    version: "2.2"
    services:
      ...
    
      gobgp:
        command: ["/gobgpd", "-f", "/gobgp.d/gobgpd.yml"]
  4. Run gobgp.

    docker-compose up -d

Execute command for applying config/gobgp/gobgpd.yml changes without restarting gobgp daemon:

docker-compose kill -s HUP gobgp