summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2006-04-04 12:39:19 +0000
committerhenning <henning@openbsd.org>2006-04-04 12:39:19 +0000
commit0875cd0986929bc589423d508cdd03d3dc4fb5d4 (patch)
treeb2a852ed1eb6ec667437fed988394407b23ea6bc
parentadd "set nexthop self", force nexthop to be set to own address even with IBGP (diff)
downloadwireguard-openbsd-0875cd0986929bc589423d508cdd03d3dc4fb5d4.tar.xz
wireguard-openbsd-0875cd0986929bc589423d508cdd03d3dc4fb5d4.zip
document set nexthop self, and improve that section whil eon it, claudio ok
-rw-r--r--usr.sbin/bgpd/bgpd.conf.522
1 files changed, 17 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/bgpd.conf.5 b/usr.sbin/bgpd/bgpd.conf.5
index 3850b97d188..ba01d9bc9a6 100644
--- a/usr.sbin/bgpd/bgpd.conf.5
+++ b/usr.sbin/bgpd/bgpd.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bgpd.conf.5,v 1.68 2006/03/23 20:26:44 claudio Exp $
+.\" $OpenBSD: bgpd.conf.5,v 1.69 2006/04/04 12:39:19 henning Exp $
.\"
.\" Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
.\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -619,9 +619,10 @@ See also the
.Sx ATTRIBUTE SET
section.
Set parameters are applied to the received prefixes; the only exceptions are
-.Ic prepend-self
+.Ic prepend-self ,
+.Ic nexthop no-modify
and
-.Ic nexthop no-modify .
+.Ic nexthop self .
These sets are rewritten into filter rules and can be viewed with
.Dq bgpd -nv .
.Pp
@@ -966,18 +967,29 @@ otherwise it will be set to
.Po Ar address \*(Ba
.Ic blackhole \*(Ba
.Ic reject \*(Ba
+.Ic self \*(Ba
.Ic no-modify Pc
.Sm on
.Xc
Set the
.Em NEXTHOP
AS path attribute
-to a different nexthop address, use blackhole or reject routes,
-or do not modify it.
+to a different nexthop address or use blackhole or reject routes.
+If set to
+.Em no-modify ,
+the nexthop attribute is not modified.
+Unless set to
+.Em self ,
+the nexthop is left unmodified for IBGP
+sessions.
+.Em self
+forces the nexthop to be set to the local interface address.
.Bd -literal -offset indent
set nexthop 192.168.0.1
set nexthop blackhole
set nexthop reject
+set nexthop no-modify
+set nexthop self
.Ed
.Pp
.It Ic pftable Ar table