On Mon, Aug 29, 2005 at 06:11:49PM +0200, Xavier Beaudouin wrote: > Hi there, > > I currently use openbsd bgpd (w/ openbsd 3.6) with announcing /24 but it > seems that bgpd removes the /24 when announcing to peers. > > Config : > > > peer="10.1.1.1" > > # global configuration > AS 65789 > router-id 10.218.105.1 > holdtime 180 > holdtime min 3 > listen on 10.1.1.2 > listen on 10.218.105.1 > #fib-update no > fib-update yes > # route-collector yes > log updates > network 10.218.105.0/24 > > neighbor $peer { > remote-as 65345 > descr Peer 1 > multihop 20 > local-address 10.1.1.2 > 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 > > > Result on a peer : > > * 10.218.105.0 10.1.1.2 0 65789 i > > As we see we don't get any /24 announce > > example of a /24 announce of peer: > > *> 10.18.208.0/24 10.28.3.183 1000 0 65257 i > *> 10.18.210.0/24 10.28.3.183 1000 0 65257 i > > Is there any problem on my configuration or is this a software bug ? >
It looks like the output is not from the same box. bgpctl will always include a netmask but other tools try to be smart and leave them away if it is obvious. So please try to find out what kind of netmask the other bgp router added to his fib. Btw it works for me: > bgpctl network add 10.218.105.0/24 request sent. > bgpctl show rib 10/8 all flags: * = Valid, > = Selected, I = via IBGP, A = Announced origin: i = IGP, e = EGP, ? = Incomplete flags destination gateway lpref med aspath origin ... *> 10.218.105.0/24 194.42.48.2 100 0 65001 i -- :wq Claudio