[FROG] BGP: /32 network cannot be advertised unless "no bgp network import-check" is present

Amol Lad Amol.Lad at 4rf.com
Mon Sep 28 10:44:01 UTC 2020


Hi,

I've configured a dummy interface (in Linux) with IP Address 1.1.1.1/32 and advertising it in BGP. However, this network is not getting advertised unless I also give "no bgp network import-check" command. Please see below for more details and advise what could be going wrong or I'm missing some other configuration.

(Same is true with IPv6 address with /128 prefix - this also cannot be advertised unless no import-check is given even though the address present in IPv6 routing table)

Thanks
Amol

Current configuration:
!
frr version 7.4
frr defaults traditional
hostname FRR
log syslog
!
router bgp 1
no bgp ebgp-requires-policy
neighbor 10.10.10.2 remote-as 2
!
address-family ipv4 unicast
  network 1.1.1.1/32
exit-address-family
!
line vty
!
end

====

FRR(config-router)# do show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

K * 1.1.1.1/32 [0/10] is directly connected, loop0, 00:54:33
C>* 1.1.1.1/32 is directly connected, loop0, 00:54:33

===

[ As you can see "*>" is missing before 1.1.1.1/32. However, If I give "no bgp network import-check" then *> comes here and network is advertised to neighbor]

FRR(config-router)# do show bgp ipv4 unicast
BGP table version is 2, local router ID is 172.17.1.106, vrf id 0
Default local pref 100, local AS 64512
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
   1.1.1.1/32       0.0.0.0                  0         32768 i

Displayed  1 routes and 1 total paths

===

root at FRR:/# ip addr show loop0
6: loop0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether 52:db:5f:99:52:d4 brd ff:ff:ff:ff:ff:ff
    inet 1.1.1.1/32 brd 255.255.255.255 scope global loop0
       valid_lft forever preferred_lft forever
    inet6 fe80::50db:5fff:fe99:52d4/64 scope link
       valid_lft forever preferred_lft forever

===



More information about the frog mailing list