.\" $OpenBSD: bgpd.8,v 1.16 2006/01/24 17:55:09 jmc Exp $ .\" .\" Copyright (c) 2003, 2004 Henning Brauer .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd December 22, 2003 .Dt BGPD 8 .Os .Sh NAME .Nm bgpd .Nd "Border Gateway Protocol daemon" .Sh SYNOPSIS .Nm bgpd .Bk -words .Op Fl dnv .Oo Xo .Fl D Ar macro Ns = Ns Ar value Oc .Xc .Op Fl f Ar file .Op Fl r Ar path .Ek .Sh DESCRIPTION .Nm is a Border Gateway Protocol .Pq BGP daemon which manages the network routing tables. Its main purpose is to exchange information concerning .Qq network reachability with other BGP systems. .Nm uses the Border Gateway Protocol, Version 4, as described in RFC 1771. Please refer to that document for more information about BGP. .Pp .Nm is usually started at boot time, and can be enabled by setting the following in .Pa /etc/rc.conf.local : .Pp .Dl bgpd_flags=\&"\&" .Pp See .Xr rc 8 and .Xr rc.conf 8 for more information on the boot process and enabling daemons. .Pp When .Nm starts up, it reads settings from a configuration file, typically .Xr bgpd.conf 5 . A running .Nm process can be controlled using the .Xr bgpctl 8 utility. .Pp The options are as follows: .Bl -tag -width "-f fileXXX" .It Fl D Ar macro Ns = Ns Ar value Define .Ar macro to be set to .Ar value on the command line. Overrides the definition of .Ar macro in the configuration file. .It Fl d Do not daemonize. If this option is specified, .Nm will run in the foreground and log to .Em stderr . .It Fl f Ar file Use .Ar file as the configuration file, instead of the default .Pa /etc/bgpd.conf . .It Fl n Configtest mode. Only check the configuration file for validity. .It Fl r Ar path Open a second, restricted, control socket that .Xr bgpctl 8 can use. Only .Em show requests are allowed on this socket. .It Fl v Produce more verbose output. .El .Sh FILES .Bl -tag -width "/etc/bgpd.confXXX" -compact .It Pa /etc/bgpd.conf default .Nm configuration file .El .Sh SEE ALSO .Xr bgpd.conf 5 , .Xr bgpctl 8 .Rs .%R RFC 1771 .%T "A Border Gateway Protocol 4 (BGP-4)" .%D March 1995 .Re .Rs .%R RFC 1997 .%T "BGP Communities Attribute" .%D August 1996 .Re .Rs .%R RFC 2385 .%T "Protection of BGP Sessions via the TCP MD5 Signature Option" .%D August 1998 .Re .Rs .%R RFC 2858 .%T "Multiprotocol Extensions for BGP-4" .%D June 2000 .Re .Rs .%R RFC 2918 .%T "Route Refresh Capability for BGP-4" .%D September 2000 .Re .Rs .%R RFC 3392 .%T "Capabilities Advertisement with BGP-4" .%D January 1999 .Re .Rs .%R RFC 3765 .%T "NOPEER Community for Border Gateway Protocol" .%D April 2004 .Re .Sh HISTORY The .Nm program first appeared in .Ox 3.5 .