On 2017 May 27 (Sat) at 11:05:30 +0200 (+0200), Peter Hessler wrote: :On 2016 Sep 26 (Mon) at 20:09:13 +0200 (+0200), Peter Hessler wrote: ::We already have a local AS saved per peer. Let's use it. This is very ::useful when one needs to change their local AS. :: ::" ::neighbor 192.0.2.1 { :: remote-as 65530 :: local-as 131000 ::} ::" :: ::OK? :: : :Updated! : :Now it works far better, it supports "local-as 131000 65000", works :better with prepend-self. : :You MUST use filters to protect yourself from receiving your own routes :over the local-as peer. There be dragons and grues. : :OK? :
Only an updated man page bit: Index: bgpd.conf.5 =================================================================== RCS file: /cvs/openbsd/src/usr.sbin/bgpd/bgpd.conf.5,v retrieving revision 1.152 diff -u -p -u -p -r1.152 bgpd.conf.5 --- bgpd.conf.5 13 Jan 2017 18:59:12 -0000 1.152 +++ bgpd.conf.5 27 May 2017 10:04:03 -0000 @@ -874,6 +874,17 @@ is given, .Xr bgpd 8 binds to this address first. .Pp +.It Ic local-as Ar as-number Op Ar as-number +Set the AS number sent to the remote system. +Used as described above under +.Sx GLOBAL CONFIGURATION +option +.Ic AS . +.Pp +Since there is no AS path loop check, this option is dangerous, and +requires you to add filters to prevent receiving your ASNs. +Intended to be used temporarily, for migrations to another AS. +.Pp .It Ic log no Disable neighbor specific logging. .Pp -- Procrastinators do it tomorrow.