Page 1 of 1

BGP longer-prefixes

Posted: Tue Sep 22, 2015 6:11 pm
by mickaelmonsieur
Hi,
What is the equivalent in RouterOS of the command "show ip route x.x.x.x/24 longer-prefixes" (used on most systems like Cisco/Juniper/Quagga/...)
Thank you,
Mickael

Re: BGP longer-prefixes

Posted: Thu Sep 24, 2015 12:48 am
by StubArea51
This is the equivalent of longer prefixes:
 ip route print where dst-address in 1.1.1.0/24
This is for an exact prefix length:
 ip route print where dst-address is 1.1.1.0/24

Re: BGP longer-prefixes

Posted: Sat Sep 26, 2015 6:51 pm
by Risty
I tried this command:
[MikroTik] /ip route> print where dst-address in 8.8.8.0/20

On a CCR1009, it looks like even after 10 minutes, nothing appears.
It should show all the routes matching inside the /20.

Any idea why?

Re: BGP longer-prefixes

Posted: Mon Sep 28, 2015 3:34 pm
by faisali
Doing ip route lookup with full tables or multiple tables can take a very long time....
Exact matches are much faster..
or doing route look up of smaller prefix with a listing of all routes with larger prefix within it are faster via winbox.

But in general anything other than exact route look up can be very slow...