FastNetMon has complete support for GoBGP for BGP announce and includes compatible GoBGP in our official packages.

NB! For FastNetMon Advanced edition please use this guide instead.

Next version of FastNetMon Community will use gobgp_3_12_0, please changed command paths accordingly.

We have following configuration options for GoBGP in /etc/fastnetmon.conf:

gobgp = on
gobgp_next_hop =
gobgp_announce_host = on
gobgp_announce_whole_subnet = off

To establish BGP session with your network equipment you need to create configuration for GoBGP in /etc/gobgpd.conf file:

  as = 65001
  router-id = ""

    neighbor-address = ""
    peer-as = 65001
      enabled = true

      afi-safi-name = "ipv4-unicast"

      afi-safi-name = "ipv6-unicast"

      local-address = ""

Run it:

sudo /opt/fastnetmon-community/libraries/gobgp_2_16_0/gobgpd -f /etc/gobgpd.conf

After that, you will see following log message when BGP session was established successfully:

{"Key":"","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2020-05-24T14:42:12+01:00"}

You may check neighbor’s status this way:

/opt/fastnetmon-community/libraries/gobgp_2_16_0/gobgp nei

Example output:

BGP neighbor is, remote AS 65001
  BGP version 4, remote router ID
  BGP state = ESTABLISHED, up for 00:01:24
  BGP OutQ = 0, Flops = 0
  Hold time is 90, keepalive interval is 30 seconds
  Configured hold time is 90, keepalive interval is 30 seconds
  Neighbor capabilities:
        ipv4-unicast:	advertised and received
        ipv6-unicast:	received
    route-refresh:	advertised and received
    4-octet-as:	advertised and received
  Message statistics:
                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                0          0
    Keepalives:             3          4
    Route Refresh:          0          0
    Discarded:              0          0
    Total:                  4          5
  Route statistics:
    Advertised:             0
    Received:               0
    Accepted:               0

Check announced routes:

/opt/fastnetmon-community/libraries/gobgp_2_16_0/gobgp global rib 
    Network             Next Hop             AS_PATH              Age        Attrs
*>                                   00:00:08   [{Origin: ?}]

Announce custom route:

/opt/fastnetmon-community/libraries/gobgp_2_16_0/gobgp global rib add -a ipv4

Withdraw route:

/opt/fastnetmon-community/libraries/gobgp_2_16_0/gobgp global rib del -a ipv4

To control BGP announces directly from FastNetMon you may consider using command line tool.

24/7 Tech Support

Email Us