blob: 98a441b052af1915261bee1495f1ea4ac3e74fab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# 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]
[Global.GlobalConfig]
As = 64512
RouterId = "192.168.255.1"
[Neighbors]
[[Neighbors.NeighborList]]
[Neighbors.NeighborList.NeighborConfig]
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
```
|