Need help with rustybgp?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

191 Stars 16 Forks Apache License 2.0 181 Commits 2 Opened issues


BGP implemented in the Rust Programming Language

Services available


Need anything else?

Contributors list

RustyBGP: BGP implementation in Rust

The mission is to develop a high-performance, low-memory-footprint, and safe BGP implementation; an experiment to implement aged and rusty BGP protocol in a modern language.

RustyBGP supports the gRPC APIs same as GoBGP; your code to manage GoBGP via the APIs should work with RustyBGP. If you need CLI, GoBGP's CLI command allows you to manage RustyBGP. RustyBGP also supports the same configuration file format as GoBGP (only toml for now).

Get Started

You can easily build RusyBGP on any system that has Docker running. You don't need Rust development environment. You can build the x86_64 statically-linked binary as follows:

$ git clone
$ cd rustybgp
$ docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder cargo build --release
$ ls -lh target/x86_64-unknown-linux-musl/release/rustybgpd
-rwxr-xr-x 2 ubuntu ubuntu 12M May 10 14:52 target/x86_64-unknown-linux-musl/release/rustybgpd
$ sudo ./target/x86_64-unknown-linux-musl/release/rustybgpd -f gobgpd.conf
Hello, RustyBGP (32 cpus)!

Then you can manage the daemon on a different terminal with GoBGP's CLI command.

$ gobgp neighbor
Peer        AS Up/Down State       |#Received  Accepted 65002   never Idle        |        0         0

If you just want to check out the performance, start the daemon with

option. The daemon accepts any peers without configuration.
$ sudo ./target/x86_64-unknown-linux-musl/release/rustybgpd --as-number 65001 --router-id --any-peers
Hello, RustyBGP (32 cpus)!

Supported Features

Currently, the very basic BGP features are supported; eBGP and iBGP, acstive/passive connection, etc with the following gRPC APIs.

|API |Relevant CLI | Note | |--------------|-------------------------------------------------------|-------------| |startbgp|

gobgp global as  router-id 
|| |getbgp|

gobgp global
|| |addpeer|
gobgp neighbor add  as  router-id 
| only v4/v6 families supported, no fancy capabilities like addpath| |delete
gobgp neighbor del 
|| |listpeer|
gobgp neighbor
gobgp neighbor 
|| |enable
gobgp neighbor  enable
|| |disablepeer|
gobgp neighbor  disable
|| |add
gobgp global rib add 
|| |deletepath|
gobgp global rib del 
|| |list
gobgp global rib
gobgp neighbor  [adj-in\|adj-out]
|| |addpathstream|
gobgp mrt global inject [FILE]
|| |gettable|
gobgp global rib summary
|| |add
gobgp rpki server  add
|| |listrpki|
gobgp rpki server
|| |list
gobgp rpki table

Community, discussion and support

You have code or documentation for RustyBGP? Awesome! Send a pull request. No CLA, board members, governance, or other mess. See
for info on code contributing.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.