summaryrefslogtreecommitdiffhomepage
path: root/docs/sources
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-09-17 15:53:59 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-09-17 18:42:01 +0900
commitccd9164cbb3ca30a0636f647720fb5f8671c92c3 (patch)
tree91f08dfd9e9c651ad811f74cc9da5d10139d48b4 /docs/sources
parent0aa37e5e2487e566e6c2fbf377d8665722f40c05 (diff)
doc: add zebra doc
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
Diffstat (limited to 'docs/sources')
-rw-r--r--docs/sources/zebra.md47
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/sources/zebra.md b/docs/sources/zebra.md
new file mode 100644
index 00000000..076b0170
--- /dev/null
+++ b/docs/sources/zebra.md
@@ -0,0 +1,47 @@
+# Zebra
+
+This page explains how to share routes with zebra included in [Quagga](http://www.nongnu.org/quagga/).
+
+## Prerequisites
+
+Assume you finished [Getting Started](https://github.com/osrg/gobgp/blob/master/docs/sources/getting-started.md) and installing [Quagga](http://www.nongnu.org/quagga/) on the same host with GoBGP.
+
+## Contents
+- [Configuration](#section0)
+- [Check routes from zebra](#section1)
+
+## <a name="section0"> Configuration
+You need to enable the zebra feature in the Global configuration as follows.
+
+```toml
+[Global]
+ [Global.Zebra]
+ Enabled = true
+ Url = "unix:/var/run/quagga/zserv.api"
+
+```
+
+You can skip Url. If it's skipped, GoBGP uses "unix:/var/run/quagga/zserv.api" as the Url.
+This configuration specifies unix domain socket in its Url and you can change it to the one using TCP.
+If you use TCP, Url can be like "tcp:192.168.24.1:2600".
+
+
+## <a name="section1">Check Routes from zebra
+
+Zebra has 3 connected routes in this example's environment.
+ - 172.16.1.100/30
+ - 172.16.6.100/30
+ - 192.168.31.0/24
+
+Let's check these routes with GoBGP cli.
+
+```bash
+$ gobgp global rib
+ Network Next Hop AS_PATH Age Attrs
+*> 172.16.1.100/30 0.0.0.0 00:00:02 [{Origin: i} {Med: 1}]
+*> 172.16.6.100/30 0.0.0.0 00:00:02 [{Origin: i} {Med: 1}]
+*> 192.168.31.0/24 0.0.0.0 00:00:02 [{Origin: i} {Med: 1}]
+```
+
+You can see connected routes stored in the GoBGP global rib.
+