Date created: Thursday, March 31, 2022 2:46:54 PM. Last modified: Tuesday, May 24, 2022 4:35:49 PM

gobgp CLI

GoBGP Global

Show local BGP details:

$ ./path/to/gobgp global
AS: 65001
Router-ID: 217.92.69.18
Listening Port: 179, Addresses: 0.0.0.0, ::

 

Global RIB Management

Show current RIB route count:

$ ./path/to/gobgp global rib summary
Table afi:AFI_IP safi:SAFI_UNICAST
Destination: 875134, Path: 875134

$ ./path/to/gobgp global rib summary -a ipv6
Table afi:AFI_IP6 safi:SAFI_UNICAST
Destination: 140041, Path: 140041

 

Inject static route:

$ ./path/to/gobgp global rib add 10.1.1.1/32
$ ./path/to/gobgp global rib del 2001:DB8::/64 -a ipv6

 

Neighbor Management

Show summary of all neighbours:

$ ./path/to/gobgp neighbor
Peer AS Up/Down State |#Received Accepted
85.232.240.179 57355 04:29:35 Establ | 875133 875130
2001:1A68:2C:2::179 57355 2d 02:50:52 Establ | 140045 140043

 

Show details of specific peer:

$ ./path/to/gobgp neighbor 85.232.240.179
BGP neighbor is 85.232.240.179, remote AS 57355
BGP version 4, remote router ID 85.232.240.179
BGP state = ESTABLISHED, up for 04:29:44
BGP OutQ = 0, Flops = 0
Hold time is 90, keepalive interval is 30 seconds
Configured hold time is 90, keepalive interval is 30 seconds
...

 


Previous page: Example GoBGP Config
Next page: Packet Capture