summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2020-04-23 17:12:59 +0000
committersthen <sthen@openbsd.org>2020-04-23 17:12:59 +0000
commit5d501c9e6032aa53e192937d5cb970c963df7793 (patch)
tree736b728e7f172e92cc06e1e13a22212be38b5c90 /etc
parentTry to document 'no local-address' (diff)
downloadwireguard-openbsd-5d501c9e6032aa53e192937d5cb970c963df7793.tar.xz
wireguard-openbsd-5d501c9e6032aa53e192937d5cb970c963df7793.zip
"local-address" can be specified for both address families now, so
no more need for separate v4/v6 groups. ok claudio@
Diffstat (limited to 'etc')
-rw-r--r--etc/examples/bgpd.conf15
1 files changed, 6 insertions, 9 deletions
diff --git a/etc/examples/bgpd.conf b/etc/examples/bgpd.conf
index 2782bbe6bee..9ae6737239e 100644
--- a/etc/examples/bgpd.conf
+++ b/etc/examples/bgpd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: bgpd.conf,v 1.18 2020/02/16 20:02:21 kn Exp $
+# $OpenBSD: bgpd.conf,v 1.19 2020/04/23 17:12:59 sthen Exp $
# example bgpd configuration file, see bgpd.conf(5)
# define our own ASN as a macro
@@ -51,18 +51,15 @@ prefix-set bogons {
network prefix-set mynetworks set large-community $ASN:1:1
# assume simple network with 3 routers in IBGP full mesh
-group "ibgp mesh v4" {
+group "ibgp mesh" {
remote-as $ASN
- # use loopback for IBGP sessions, assume its distributed in OSPF
+ # use loopback for IBGP sessions, assume it's distributed in OSPF
local-address 192.0.2.1
- neighbor 192.0.2.2 # router 2 ipv4
- neighbor 192.0.2.3 # router 3 ipv4
-}
-# define the IPv6 IBGP sessions
-group "ibgp mesh v6" {
- remote-as $ASN
local-address 2001:db8:abcd::1
+
+ neighbor 192.0.2.2 # router 2 ipv4
neighbor 2001:db8:abcd::2 # router 2 ipv6
+ neighbor 192.0.2.3 # router 3 ipv4
neighbor 2001:db8:abcd::3 # router 3 ipv6
}