Date created: 05/24/22 16:35:43. Last modified: 05/24/22 16:35:49

Example GoBGP Config

Example GoBGP config to receive routes from AS57355. As of 2022-05-24, receiving 1x full IPv4 table (880177 prefixes) and 1x full Ipv6 table (148137 prefixes) is consuming approximately 1.5GBs of RAM.

$ cat as57355.toml
[global.config]
  as = 65001
  router-id = "217.92.69.18"

[[neighbors]]
  [neighbors.config]
    neighbor-address = "85.232.240.179"
    peer-as = 57355
  #[neighbors.transport.config]
  #  local-address = "217.92.69.18"
  [neighbors.ebgp-multihop.config]
    enabled = true
    multihop-ttl = 14
  [[neighbors.afi-safis]]
    [neighbors.afi-safis.config]
      afi-safi-name = "ipv4-unicast"
  [neighbors.apply-policy.config]
    import-policy-list = ["allow-all"]
    export-policy-list = ["deny-all"]

[[neighbors]]
  [neighbors.config]
    neighbor-address = "2001:1A68:2C:2::179"
    peer-as = 57355
  #[neighbors.transport.config]
  #  local-address = "2003:a:e44:cc01:dea6:32ff:fe0d:33a1"
  [neighbors.ebgp-multihop.config]
    enabled = true
    multihop-ttl = 14
  [[neighbors.afi-safis]]
    [neighbors.afi-safis.config]
      afi-safi-name = "ipv6-unicast"
  [neighbors.apply-policy.config]
    import-policy-list = ["allow-all"]
    export-policy-list = ["deny-all"]

[[policy-definitions]]
    name = "allow-all"
    [[policy-definitions.statements]]
      name = "a1"
      [policy-definitions.statements.actions]
        route-disposition = "accept-route"

[[policy-definitions]]
    name = "deny-all"
    [[policy-definitions.statements]]
      name = "d1"
      [policy-definitions.statements.actions]
        route-disposition = "reject-route"

[[mrt-dump]]
  [mrt-dump.config]
    dump-type = "updates"
    file-name = "/media/usb0/downloads/lukasz/update/20060102.1504.dump"
    rotation-interval = 600

 


Previous page: Dockerfile
Next page: gobgp CLI