Community discussions

MikroTik App
 
mickaelmonsieur
just joined
Topic Author
Posts: 3
Joined: Tue Jan 20, 2015 7:44 pm

BGP longer-prefixes

Tue Sep 22, 2015 6:11 pm

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
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1742
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: BGP longer-prefixes

Thu Sep 24, 2015 12:48 am

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
 
Risty
just joined
Posts: 6
Joined: Sat Sep 26, 2015 6:45 pm

Re: BGP longer-prefixes

Sat Sep 26, 2015 6:51 pm

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?
 
faisali
Member Candidate
Member Candidate
Posts: 180
Joined: Fri Oct 08, 2010 5:11 am

Re: BGP longer-prefixes

Mon Sep 28, 2015 3:34 pm

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...