diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-10-24 16:21:05 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-11-01 15:49:55 +0900 |
commit | 6f88f352e4aa78a637f514fd0302ab7c98942640 (patch) | |
tree | fc4b90c93f3a2295902125520817b028c770ca32 /docs/sources/peer-group.md | |
parent | c18a89f7490d14a6a41843b7aaa02516e3a27f8e (diff) |
doc: Document for Peer Group and Dynamic Neighbor
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'docs/sources/peer-group.md')
-rw-r--r-- | docs/sources/peer-group.md | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/docs/sources/peer-group.md b/docs/sources/peer-group.md new file mode 100644 index 00000000..a9ee39f0 --- /dev/null +++ b/docs/sources/peer-group.md @@ -0,0 +1,81 @@ +# Peer Group + +This page explains how to configure the Peer Group features. +With Peer Group, you can set the same configuration to multiple peers. + +## Contents + +- [Prerequisite](#prerequisite) +- [Configuration](#configuration) +- [Verification](#verification) + +## Prerequisite +Assumed that you finished [Getting Started](getting-started.md). + +## Configuration + +Below is the configuration to create a peer group. + +```toml +[[peer-groups]] + [peer-groups.config] + peer-group-name = "sample-group" + peer-as = 65001 + [[peer-groups.afi-safis]] + [peer-groups.afi-safis.config] + afi-safi-name = "ipv4-unicast" + [[peer-groups.afi-safis]] + [peer-groups.afi-safis.config] + afi-safi-name = "ipv4-flowspec" +``` + +The configurations in this peer group will be inherited to the neighbors which is the member of this peer group. +In addition, you can add additional configurations to each member. + +Below is the configuration to create a neighbor which belongs this peer group. + +```toml +[[neighbors]] + [neighbors.config] + neighbor-address = "172.40.1.3" + peer-group = "sample-group" + [neighbors.timers.config] + hold-time = 99 +``` + +This neighbor belongs to the peer group, so the peer-as is 65001, and ipv4-unicast and ipv4-flowspec are enabled. +Furthermore, an additional configuration is set, the hold timer is 99 secs. + +## Verification + +You can see the neighbor configuration inherits the peer group config by running `gobgp neighbor` command. + +```shell +$ gobgp neighbor 172.40.1.3 +BGP neighbor is 172.40.1.3, remote AS 65001 + BGP version 4, remote router ID 172.40.1.3 + BGP state = established, up for 00:00:05 + BGP OutQ = 0, Flops = 0 + Hold time is 99, keepalive interval is 33 seconds + Configured hold time is 99, keepalive interval is 33 seconds + + Neighbor capabilities: + multiprotocol: + ipv4-unicast: advertised and received + ipv4-flowspec: advertised and received + route-refresh: advertised and received + 4-octet-as: advertised and received + Message statistics: + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 0 0 + Keepalives: 1 1 + Route Refresh: 0 0 + Discarded: 0 0 + Total: 2 2 + Route statistics: + Advertised: 0 + Received: 0 + Accepted: 0 +``` |