[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bgpd and lost networks after reload ?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: bgpd and lost networks after reload ?
- From: Peter Galbavy <peter_(_dot_)_galbavy_(_at_)_knowtion_(_dot_)_net>
- Date: Tue, 08 Feb 2005 18:34:22 +0000
I have set up a very basic test network to reproduce an issue I was
seeing on the weekend.
I have two bgpd's, config files appended. Both running sort of -current,
one amd64 and another i386.
The behaviour is this:
# bgpctl network sh
flags: S = Static
flags destination
*S 213.253.23.112/28
# bgpctl reload
reload request sent.
# bgpctl network sh
flags: S = Static
flags destination
#
Where did my networks go ? After a reload, local networks get withdrawn.
I will start to read code shortly.
Peter
test iBGP router, with one (connected) network advertised.
# global configuration
AS 65001
router-id 10.0.0.1
# holdtime 180
# holdtime min 3
# listen on 127.0.0.1
# listen on ::1
fib-update no
# route-collector no
log updates
# network 10.0.1.0/24
network 213.253.23.112/28
neighbor 10.0.0.2 {
remote-as 65001
descr bgp2
local-address 10.0.0.1
announce self
}
# filter out prefixes longer than 24 or shorter than 8 bits
deny from any
allow from any prefixlen 8 - 24
# do not accept a default route
deny from any prefix 0.0.0.0/0
# filter bogus networks
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
test iBGP router, simply receiving adverts.
# global configuration
AS 65001
router-id 10.0.0.1
# holdtime 180
# holdtime min 3
# listen on 127.0.0.1
# listen on ::1
fib-update no
# route-collector no
log updates
# network 10.0.1.0/24
neighbor 10.0.0.1 {
remote-as 65001
descr bgp1
local-address 10.0.0.2
announce none
}
# filter out prefixes longer than 24 or shorter than 8 bits
deny from any
allow from any prefixlen 8 - 24
# do not accept a default route
deny from any prefix 0.0.0.0/0
# filter bogus networks
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
Visit your host, monkey.org