Hello everybody.
I am setting up OpenBGP for the first time in replacement to Cisco.
However, I am having some troubles which I could not realize the
reason myself, so I
#macros
peer_gvt=200.139.89.37
peer_intelig=200.184.196.18
#peer_intelig=201.70.200.1
# Configuracao Global
AS 28660
router-id 201.87.224.253
# route-reflector 3381352702
log updates
#holdtime 180
#holdtime min 3
holdtime 4
holdtime min 3
#listen on <ip router>
#fib-update no
fib-update yes
#route-collector yes
#network 201.87.224.0/20 # full routing
network 201.87.224.0/23 # partial routing
# neighbors and peers
#group "peering AS4230" {
# remote-as 4230
# neighbor $peer1 {
# descr "ASN4230 Embratel"
# announce self
# tcp md5sig password 7890
# }
#}
group "peering GVT" {
remote-as 18881
neighbor $peer_gvt {
descr "GVT"
#multihop 2
#local-address <ip router twi>
#softreconfig in yes
depend on em1
#passive
holdtime 3
holdtime min 3
announce self # ebgp = self, ibgp = all - twi sera ebgp
}
}
group "peering Intelig" {
remote-as 17379
neighbor $peer_intelig {
descr "Intelig"
multihop 4
#local-address 201.70.200.2
#softreconfig in yes
#depend on em0
#passive
holdtime 3
holdtime min 3
announce self # ebgp = self, ibgp = all - twi sera ebgp
}
}
#
# Filtros
#
deny from any
allow from any prefixlen 8 - 24 # publicacao de 8 a 24 bits, nem mais nem menos
deny from any prefix 0.0.0.0/0 # nao aceita publicacao de rota padrao
# Redes as quais nunca permitiremos publicacao de rotas
deny from any prefix 10.0.0.0/8 prefixlen >= 8
deny from any prefix 172.16.0.0/12 prefixlen >= 12
deny from any prefix 192.168.0.0/16 prefixlen >= 16
deny from any prefix 169.254.0.0/16 prefixlen >= 16
deny from any prefix 192.0.2.0/24 prefixlen >= 24
deny from any prefix 224.0.0.0/4 prefixlen >= 4
deny from any prefix 240.0.0.0/4 prefixlen >= 4
I have lowered holdtime and holdtime min just for testing purposes.
Here is the relevant Cisco config
router bgp 28660
no synchronization
bgp router-id 201.87.224.253
bgp cluster-id 3381352702
bgp log-neighbor-changes
network 201.87.224.0 mask 255.255.240.0
neighbor 200.139.89.37 remote-as 18881
neighbor 200.139.89.37 description Conexao a GVT
neighbor 200.139.89.37 ebgp-multihop 2
neighbor 200.139.89.37 update-source FastEthernet2
neighbor 200.139.89.37 soft-reconfiguration inbound
neighbor 200.139.89.37 route-map OUT out
neighbor 200.184.196.18 remote-as 17379
neighbor 200.184.196.18 description Conexao a Intelig
neighbor 200.184.196.18 ebgp-multihop 4
neighbor 200.184.196.18 update-source Loopback0
neighbor 200.184.196.18 version 4
neighbor 200.184.196.18 soft-reconfiguration inbound
neighbor 200.184.196.18 route-map OUT out
no auto-summary
!
The problem I get is:
neighbor 200.184.196.18 (Intelig): state change Connect -> OpenSent,
reason: Connection opened
neighbor 200.184.196.18 (Intelig): state change OpenSent -> Active,
reason: Connection closed
# bgpctl sh nei Intelig timers
BGP neighbor is 200.184.196.18, remote AS 17379
Description: Intelig
BGP version 4, remote router-id 0.0.0.0
BGP state = Active
Last read Never, holdtime 240s, keepalive interval 80s
IdleHoldTimer: not running Interval: 30s
ConnectRetryTimer: due in 00:01:51 Interval: 120s
HoldTimer: due in 00:03:51 Interval: 240s
KeepaliveTimer: not running Interval: 80s
Local host: 201.87.225.16, Local port: 61684
Remote host: 200.184.196.18, Remote port: 179
--
===========
Eduardo Meyer