diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-15 09:24:49 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-15 09:24:49 +0900 |
commit | 2c12fa2b92c3372d8639e84be6ee89a9ab581158 (patch) | |
tree | 22de5e752ecb359f319d790bb838eee91123e315 /docs/sources/mrt.md | |
parent | cdca8b5ceffd12ff702903e3369f3cafff2787ae (diff) |
mrt: support per-peer table dump with route server configuration
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'docs/sources/mrt.md')
-rw-r--r-- | docs/sources/mrt.md | 72 |
1 files changed, 69 insertions, 3 deletions
diff --git a/docs/sources/mrt.md b/docs/sources/mrt.md index 99f92afc..85a311f1 100644 --- a/docs/sources/mrt.md +++ b/docs/sources/mrt.md @@ -22,9 +22,7 @@ $ gobgp mrt inject global <dumpfile> [<number of prefix to inject>] ### <a name="section1.1"> Configuration With the following configuration, gobgpd continuously dumps BGP update -messages to `/tmp/updates.dump` file in the BGP4MP format and dumps -routes in the global rib to `/tmp/table.dump` file in the TABLE_DUMPv2 -format every 60 seconds. +messages to `/tmp/updates.dump` file in the BGP4MP format. ```toml [global.config] @@ -72,4 +70,72 @@ router-id = "10.0.255.254" rotation-interval = 180 ``` +## <a name="section1"> Dump the RIB in MRT TABLE_DUMPv2 format +### <a name="section1.1"> Configuration + +With the following configuration, gobgpd continuously dumps routes in +the global rib to `/tmp/table.dump` file in the TABLE_DUMPv2 format +every 60 seconds. + + +```toml +[global.config] +as = 64512 +router-id = "10.0.255.254" + +[[neighbors]] + [neighbors.config] + peer-as = 65001 + neighbor-address = "10.0.255.1" + +[[mrt-dump]] + [mrt-dump.config] + dump-type = "table" + file-name = "/tmp/table.dump" + dump-interval = 60 +``` + +With a route server configuration, gobgpd can dump routes in each +peer's RIB. + + +```toml +[global.config] + as = 64512 + router-id = "192.168.255.1" + +[[neighbors]] + [neighbors.config] + neighbor-address = "10.0.255.1" + peer-as = 65001 + auth-password = "hoge1" + [neighbors.transport.config] + passive-mode = true + [neighbors.route-server.config] + route-server-client = true + +[[neighbors]] + [neighbors.config] + neighbor-address = "10.0.255.2" + peer-as = 65002 + auth-password = "hoge2" + [neighbors.transport.config] + passive-mode = true + [neighbors.route-server.config] + route-server-client = true + +[[mrt-dump]] + [mrt-dump.config] + dump-type = "table" + file-name = "/tmp/table-1.dump" + table-name = "10.0.255.1" + dump-interval = 60 + +[[mrt-dump]] + [mrt-dump.config] + dump-type = "table" + file-name = "/tmp/table-2.dump" + table-name = "10.0.255.2" + dump-interval = 60 +``` |