home  wiki

BGP

Border Gateway Protocol. Interdomain routing protocol that replaces EGP. BGP exchanges reachability information with other BGP systems. It is defined by External linkRFC1163.
(Source: CISCO)

64512 to 65534
Only these asn's can be used on a private network the other are for public (the Internet)

Here is a basic config (parts taken from node fut)
For quagga BGPD

BGPD.conf

!-*- bgp -*-
!
!BGPd sample configuratin file
!
hostname bgpd
password XXXX or zebra
!enable password please-set-at-here
!
!bgp mulitple-instance -? only if you need to run BGPD more than once Unlikely on mw.
!
router bgp 7675 -? your routers ASN Should be with in this range 64512 to 65534 and connot be the same as another routers in this situation.
bgp router-id 10.10.129.145 -? this is your routers id most likey the same as in your ospf.conf
redistribute ospf -? this will redistribute routes collected by ospfd to bgpd
redistribute connected -? This will distribute Directly connected networks to bgp
network 10.0.0.0/16 -? you can use this for mw or add each subnet that you are connected to i.e: 1network 0.10.128.0/28 network 10.10.129.144/29 and so on
neighbor 10.10.128.97 remote-as 7676 -? for each router on the a subnet that is running bgp will have its own ip(duh!) and its own asn you will need to add a line for each router and there asn here.
!
!access-list all permit any most likely you will not need any access list unless you need to.
!
!The debug section is optional.
debug bgp events
debug bgp filters
debug bgp fsm
debug bgp keepalives
debug bgp updates
!log file bgpd.log
!
log stdout


Simple example for the 10.10.128.0/28 subnet


So in The end your config might look like this if you were on the subnet 10.10.128.0 (example) This is only id the rest of the networks used ospf

!-*- bgp -*-
hostname bgpd
password zebra
!enable password please-set-at-here
!
router bgp 64512
bgp router-id 10.10.128.1
redistribute ospf
network 10.0.0.0/16
neighbor 10.10.128.3 remote-as 64513
neighbor 10.10.128.5 remote-as 64515
neighbor 10.10.128.7 remote-as 64517
neighbor 10.10.128.8 remote-as 64518
!
!log file bgpd.log
!
log stdout


Version 4 (old) modified Mon, 26 Jul 2021 12:49:28 +0000 by daurn
[EditText] [Spelling] [Current] [Raw] [Code] [Diff] [Subscribe] [VersionHistory] [Revert] [Delete] [RecentChanges]
> home> about> events> files> members> maps> wiki board   > home   > categories   > search   > changes   > formatting   > extras> site map

Username
Password

 Remember me.
>

> forgotten password?
> register?
currently 0 users online
Node Statistics
building132
gathering192
interested515
operational242
testing216