From da01fa48af05820d8b8731379cf647be049be503 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 8 Jan 2016 14:09:27 +0900 Subject: docs: update Signed-off-by: ISHIDA Wataru --- docs/sources/route-server.md | 61 ++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 34 deletions(-) (limited to 'docs/sources/route-server.md') diff --git a/docs/sources/route-server.md b/docs/sources/route-server.md index f628e02a..95b50efb 100644 --- a/docs/sources/route-server.md +++ b/docs/sources/route-server.md @@ -15,44 +15,37 @@ the configuration file used in [Getting Started](https://github.com/osrg/gobgp/b * GoBGP doesn't try to connect to peers. It only listens and accepts. * MD5 passwords are enabled. -``` -$ cat gobgpd.conf -[Global] - [Global.Config] - As = 64512 - RouterId = "192.168.255.1" - -[Neighbors] - [[Neighbors.NeighborList]] - [Neighbors.NeighborList.Config] - NeighborAddress = "10.0.255.1" - PeerAs = 65001 - AuthPassword = "hoge1" - [Neighbors.NeighborList.Transport] - [Neighbors.NeighborList.Transport.Config] - PassiveMode = true - [Neighbors.NeighborList.RouteServer] - [Neighbors.NeighborList.RouteServer.Config] - RouteServerClient = true - - [[Neighbors.NeighborList]] - [Neighbors.NeighborList.Config] - NeighborAddress = "10.0.255.2" - PeerAs = 65002 - AuthPassword = "hoge2" - [Neighbors.NeighborList.Transport] - [Neighbors.NeighborList.Transport.Config] - PassiveMode = true - [Neighbors.NeighborList.RouteServer] - [Neighbors.NeighborList.RouteServer.Config] - RouteServerClient = true +```toml +[global.config] + as = 64512 + router-id = "192.168.255.1" + +[[neighbors]] + [neighbors.config] + neighbor-address = "10.0.255.1" + peer-as = 65001 + auto-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 + auto-password = "hoge2" + [neighbors.transport.config] + passive-mode = true + [neighbors.route-server.config] + route-server-client = true ``` ## Starting GoBGP Let's start gobgpd: -``` +```bash $ sudo -E gobgpd -f gobgpd.conf {"level":"info","msg":"Peer 10.0.255.1 is added","time":"2015-04-06T22:55:57+09:00"} {"level":"info","msg":"Peer 10.0.255.2 is added","time":"2015-04-06T22:55:57+09:00"} @@ -61,14 +54,14 @@ $ sudo -E gobgpd -f gobgpd.conf GoBGP implements multiple RIBs, that is, each peer has own local RIB. Let's check respectively. -``` +```bash $ gobgp neighbor 10.0.255.1 local Network Next Hop AS_PATH Age Attrs *> 10.3.0.0/24 10.0.255.2 [65002] 00:05:50 [{Origin: 0} {Med: 0}] *> 192.168.2.0/24 10.0.255.2 [65002] 00:05:50 [{Origin: 0} {Med: 0}] ``` -``` +```bash $ gobgp neighbor 10.0.255.2 local Network Next Hop AS_PATH Age Attrs *> 10.3.0.0/16 10.0.255.1 [65001] 00:06:12 [{Origin: 0} {Med: 0}] -- cgit v1.2.3