From a7ee9eed9e5e8bc27a5328b993b775585e536e07 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 24 Jun 2015 10:48:50 +0900 Subject: docs: add mrt document Signed-off-by: ISHIDA Wataru --- docs/sources/mrt.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docs/sources/mrt.md (limited to 'docs/sources/mrt.md') diff --git a/docs/sources/mrt.md b/docs/sources/mrt.md new file mode 100644 index 00000000..f2610330 --- /dev/null +++ b/docs/sources/mrt.md @@ -0,0 +1,46 @@ +# MRT route injector + +This page explains how to inject MRT routes to gobgp. + +## Prerequisites + +Assume you finished [Getting Started](https://github.com/osrg/gobgp/blob/master/docs/sources/getting-started.md). + +## Install GoMRT + +In addition to gobgpd and gobgp, you have to install `gomrt` + +```bash +$ go get github.com/osrg/gobgp/gomrt +``` + +## Configuration + +you don't need any special configuration for mrt + +``` +$ cat gobgpd.conf +[Global] + As = 64512 + RouterId = "192.168.255.1" +[[NeighborList]] + NeighborAddress = "10.0.255.1" + PeerAs = 65001 +``` + +## Start GoBGP + +```bash +$ sudo -E gobgpd -f gobgpd.conf +{"level":"info","msg":"Peer 10.0.255.1 is added","time":"2015-04-06T20:32:28+09:00"} +{"level":"info","msg":"Peer 10.0.255.2 is added","time":"2015-04-06T20:32:28+09:00"} +``` + +## Inject MRT Routes! + +Currently gomrt supports TABLE_DUMP_V2 format ([RFC6396](https://tools.ietf.org/html/rfc6396)). +You can get the Internet full route dump from [here](http://archive.routeviews.org/) + +``` +$ gomrt -i rib.20150617.2000 +``` -- cgit v1.2.3