bgpd is a Border Gateway Protocol 4 (BGP-4) protocol daemon. BGP-4 is described in RFC1771. bgpd also supports Multi Protocol Extension for BGP-4 (sometimes known as BGP-4+ or MBGP) which is described in RFC2283.
BGP-4 is one of the EGPs (Exterior Gateway Protocols) and is used for inter-domain routing messages.
Menu |
---|
Invoking bgpd |
bgpd Configuration |
bgpd Terminal Mode Commands |
bgpd Sample Session |
bgpd Log Format |
How to Set Up A 6-Bone Connection |
There are several commands used to configure bgpd. The default configuration file is bgpd.conf.
router bgp 1 network 10.0.0.0/8This configuration example says that network 10.0.0.0/8 will be announced to all neighbors. Some vendor's routers don't advertize routes if they aren't present in its IGP routing tables; bgp doesn't care about IGP routes when announcing its routes.
router bgp 1 neighbor 10.0.0.1 remote-as 2In this case my router, in AS-1, is trying to peer with AS-2 at 10.0.0.1.
This command must be the first command used when configuring a neighbor. If the remote-as is not specified, bgpd will complain like this:
can't find neighbor 10.0.0.1
BGPd outputs logging information to a terminal or to the specified file. It includes routing updates and peer status change information. It also includes date, time, packet type, the peer's IP address, and other routing information.
1999/03/29 17:42:18 Update:[202.216.226.1] 130.58.0.0/16 med: 0 lpref: 0 nexthop: 202.216.226.1 aspath: 4691 3561 5119 3576 3782 i
zebra configuration =================== ! ! Actually there is no need to configure zebra ! bgpd configuration ================== ! ! This means that routes go through zebra and into the kernel. ! router zebra ! ! BGP-4+ configuraion ! router bgp 7675 bgp router-id 10.0.0.1 network 3ffe:506::/32 neighbor 3ffe:1cfa:0:2:2a0:c9ff:fe9e:f56 remote-as AS-NUMBER neighbor 3ffe:1cfa:0:2:2a0:c9ff:fe9e:f56 route-map set-nexthop out neighbor 3ffe:1cfa:0:2:2c0:4fff:fe68:a231 remote-as AS-NUMBER neighbor 3ffe:1cfa:0:2:2c0:4fff:fe68:a231 route-map set-nexthop out ! access-list all permit any ! ! Set output nexthop address. ! route-map set-nexthop permit 10 match ip address all set ip nexthop 10.0.0.1 set ipv6 nexthop global 3ffe:1cfa:0:2:2c0:4fff:fe68:a225 set ipv6 nexthop local fe80::2c0:4fff:fe68:a225 ! ! logfile FILENAME is obsolete. Please use log file FILENAME ! log file bgpd.log !
(C) Copyright 1999 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation.