FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.31k stars 1.25k forks source link

BGP does not sent our prefixes #12266

Closed messyjoes closed 1 year ago

messyjoes commented 1 year ago

BGP goes into "Established" state but my ISP not see announced prefix. If I set no bgp ebgp-requires-policy and remove prefix-lists my ISP see only 0.0.0.0/0 from me.

OS: Debian 11 FRR: 8.3.1

Our prefix: 1.1.1.0/24 ISP IP: 222.X.X.1 Our IP: 222.X.X.2

Config:

router bgp 11111
 bgp router-id 1.1.1.252
 neighbor 222.X.X.1 remote-as 33333
 neighbor 222.X.X.1 description ISP1
 !
 address-family ipv4 unicast
  network 1.1.1.0/24
  neighbor 222.X.X.1 soft-reconfiguration inbound
  neighbor 222.X.X.1 prefix-list inputall in
  neighbor 222.X.X.1 prefix-list upstream-out out
 exit-address-family
exit

ip prefix-list upstream-out seq 10 permit 1.1.1.0/24
ip prefix-list inputall seq 5 permit any

show ip bgp neighbors 222.X.X.1 advertised-routes returns nothing

show ip bgp summary 

IPv4 Unicast Summary (VRF default):
BGP router identifier 1.1.1.252, local AS number 11111 vrf-id 0
BGP table version 37
RIB entries 4, using 768 bytes of memory
Peers 1, using 723 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
222.X.X.1    4       33333      8081      7892        0    0    0 00:00:11            1        0 ISP1

Total number of neighbors 1

debug:

# clear bgp *
#
2022-11-05 23:33:23.241 [DEBG] bgpd: [PVWK5-TDQW8] 222.X.X.1 remove from all update group
2022-11-05 23:33:23.241 [DEBG] bgpd: [HJ5WV-GHWVE] peer 222.X.X.1 deleted from subgroup s17 peer cnt 0
2022-11-05 23:33:23.242 [DEBG] bgpd: [SMH5H-KG5HW] delete subgroup u18:s17
2022-11-05 23:33:23.242 [DEBG] bgpd: [Y0X84-XQSWJ] delete update group 18
2022-11-05 23:33:23.302 [DEBG] bgpd: [G7K80-KF0HM] Tx route delete VRF 0 0.0.0.0/0
2022-11-05 23:33:29.389 [DEBG] bgpd: [JANKZ-VWB1H] create update group 19
2022-11-05 23:33:29.389 [DEBG] bgpd: [H27WP-RKYEA] create subgroup u19:s18
2022-11-05 23:33:29.389 [DEBG] bgpd: [J17A0-KD5QR] peer 222.X.X.1 added to subgroup s18
2022-11-05 23:33:29.389 [DEBG] bgpd: [WRRRF-XQPX7] u19:s18 add peer 222.X.X.1
2022-11-05 23:33:29.589 [DEBG] bgpd: [T5AAP-5GA85] 222.X.X.1(Unknown) rcvd UPDATE w/ attr: nexthop 222.X.X.1, origin i, path 33333
2022-11-05 23:33:29.589 [DEBG] bgpd: [PCFFM-WMARW] 222.X.X.1(Unknown) rcvd UPDATE wlen 0 attrlen 20 alen 1
2022-11-05 23:33:29.589 [DEBG] bgpd: [YCKEM-GB33T] 222.X.X.1(Unknown) rcvd 0.0.0.0/0 IPv4 unicast
2022-11-05 23:33:29.639 [DEBG] bgpd: [K423X-ETGCQ] group_announce_route_walkcb: afi=IPv4, safi=unicast, p=0.0.0.0/0
2022-11-05 23:33:29.639 [DEBG] bgpd: [KR6T7-EW7AS] bgp_zebra_announce: p=0.0.0.0/0, extra is NULL, no label
2022-11-05 23:33:29.639 [DEBG] bgpd: [V15FP-4CPVK] Tx route add VRF 0 0.0.0.0/0 metric 0 tag 0 count 1 nhg 0
2022-11-05 23:33:29.639 [DEBG] bgpd: [JQXM8-V0CKB]   nhop [1]: 222.X.X.1 if 0 VRF 0 wt 0   
2022-11-05 23:33:29.639 [DEBG] bgpd: [JMVGR-VQ1M1] bgp_zebra_announce: 0.0.0.0/0: announcing to zebra (recursion NOT set)
2022-11-05 23:33:29.700 [DEBG] bgpd: [K423X-ETGCQ] group_announce_route_walkcb: afi=IPv4, safi=unicast, p=1.1.1.0/24
2022-11-05 23:33:30.440 [DEBG] bgpd: [K9G3A-CJ5QQ] u19:s18 announcing routes upon coalesce timer expiry(1050 ms)
2022-11-05 23:33:30.440 [DEBG] bgpd: [VWD21-4A1ZJ] 222.X.X.1 [Update:SEND] 0.0.0.0/0 is filtered
2022-11-05 23:33:34.110 [DEBG] bgpd: [PCFFM-WMARW] 222.X.X.1(Unknown) rcvd UPDATE wlen 0 attrlen 0 alen 0
2022-11-05 23:33:34.110 [DEBG] bgpd: [G3V0W-FSWRC] bgp_best_path_select_defer: processing route for IPv4 Unicast : cnt 0
2022-11-05 23:33:34.110 [INFO] bgpd: [M59KS-A3ZXZ] bgp_update_receive: rcvd End-of-RIB for IPv4 Unicast from 222.X.X.1 in vrf default
donaldsharp commented 1 year ago

have you tried no bgp network import-check since you have a network statement?

messyjoes commented 1 year ago

@donaldsharp Thank you so much! This is what I need.