Hello,

After looking everywhere I got still problems with OpenBGPD and non OpenBGPD system when announcing /24.

Here is labtest :

Cisco 7206 NPE 200 with c7200-ik91s-mz.122-25.S5.bin ISO.

Configuration (very simple and not total production configuration ) :

Current configuration : 1153 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname rbgp2
!
boot-start-marker
boot system flash c7200-ik91s-mz.122-25.S5.bin
boot-end-marker
!
ip subnet-zero
!
interface FastEthernet0/0
ip address 192.168.0.31 255.255.255.0
duplex half
no clns route-cache
!
router bgp 65334
no synchronization
bgp log-neighbor-changes
neighbor 192.168.0.241 remote-as 65336
neighbor 192.168.0.241 description openbsd
no auto-summary
!
ip default-gateway 192.168.0.254
ip classless
!
no ip http server
!
ip bgp-community new-format
!
!
line con 0
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
!
end

OpenBGPd (3.6, 3.7 or 3.8 / snapshot) configuration :
(Fresh install, only bgpd.conf modified, and bgpd started by hand).

# global configuration
AS 65336
router-id 192.168.0.241
holdtime 180
holdtime min 3
listen on 127.0.0.1
listen on ::1
listen on 192.168.0.241
fib-update no
# route-collector no
log updates
network 193.218.105.1/24
network 19.218.105.0/23
network 192.168.0.0/24

neighbor 192.168.0.31 {
    remote-as 65334
    descr cisco
    local-address 192.168.0.241
    announce all
}

# 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


Now as you see configuration is *very* simple....

But why do I get that :

OpenBSD box :

openbsd# bgpctl sh ip bgp
flags: * = Valid, > = Selected, I = via IBGP, A = Announced
origin: i = IGP, e = EGP, ? = Incomplete

flags destination         gateway          lpref   med aspath origin
AI*>  19.218.104.0/23     0.0.0.0            100     0 i
AI*>  192.168.0.0/24      0.0.0.0            100     0 i
AI*>  193.218.105.0/24    0.0.0.0            100     0 i

Cisco 7206 :
rbgp2#sh ip bgp
BGP table version is 19, local router ID is 192.168.0.31
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 19.218.104.0/23  192.168.0.241                          0 65336 i
r> 192.168.0.0      192.168.0.241                          0 65336 i
*> 193.218.105.0    192.168.0.241                          0 65336 i


As you se the netmask for /24 network has gone between cisco and openbgpd.

Now the question is : how I fix that (don't tell me to trash away my cisco, because this is reproductible *also* on foundry networks boxes, and maybe on other systems).

Why does the /23 correctly announced, but not all /24 ?

Thanks for your attention.
/Xavier

Reply via email to