That's right Erwan.

Donald also shared about 'bgp network import-check', I didnt know that command but I guess it solves the problem without the static routes.



Em 26/07/2024 03:24, Erwan David escreveu:
On Fri, Jul 26, 2024 at 12:47:33AM CEST, Doug Tucker via frog <frog@lists.frrouting.org> said:
From: Doug Tucker <doug.tucker@navigaglobal.com>
To: Leonardo <leonardo.porto@iw.net.br>, Donald Sharp
 <donaldsharp72@gmail.com>
CC: "frog@lists.frrouting.org" <frog@lists.frrouting.org>
Subject: Re: [FROG] Migration scripts for FRR from Quagga
Date: Thu, 25 Jul 2024 22:47:33 +0000

ip route help doesn't show that syntax as correct...any chance you have where you set that so it wasn't lost on a reboot and what it looks like?

Usage: ip route { list | flush } SELECTOR
       ip route save SELECTOR
       ip route restore
       ip route showdump
       ip route get [ ROUTE_GET_FLAGS ] ADDRESS
                            [ from ADDRESS iif STRING ]
                            [ oif STRING ] [ tos TOS ]
                            [ mark NUMBER ] [ vrf NAME ]
                            [ uid NUMBER ] [ ipproto PROTOCOL ]
                            [ sport NUMBER ] [ dport NUMBER ]
       ip route { add | del | change | append | replace } ROUTE

Assuming "add" is needed, it doesn't like the Null0 at the end.

 ip route add 10.223.0.0/22 Null0
Error: either "to" is duplicate, or "Null0" is a garbage.
You are looking at the ip linux command, I think Leonardo spoke of the ip route configuration command in FRR