Community discussions

MikroTik App
 
tcreswick
just joined
Topic Author
Posts: 5
Joined: Thu Apr 05, 2012 10:53 am

" show ip bgp" equivalent

Thu Apr 05, 2012 10:56 am

I want to be able to do manual route lookups in a global routing table to see what AS-PATH we're getting.

I notice someone posted this question 3 years ago here: http://forum.mikrotik.com/viewtopic.php?f=2&t=28982 but there was no reply.

I know that I can do an "/ip route print where dst-address=<subnet>", but I want to be able to use a specific IP and see all available routes to that address.

Does RouterOS have any way of achieving this?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: " show ip bgp" equivalent

Thu Apr 05, 2012 11:39 am

/ip route print where 1.1.1.1 in dst-address
 
tcreswick
just joined
Topic Author
Posts: 5
Joined: Thu Apr 05, 2012 10:53 am

Re: " show ip bgp" equivalent

Thu Apr 05, 2012 11:59 am

Great thanks. I hadn't realised you could construct the "where" statement that way around (all examples I had seen were "where dst-address in x.x.x.x/y").

Is there any documentation about how to construct these "where" clauses? I know regex is permitted using ~, but can't see where it's documented.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: " show ip bgp" equivalent

Thu Apr 05, 2012 1:16 pm

after 'where' it's a regular scripting command sequence.

'in' operator with provided example is here:
http://wiki.mikrotik.com/wiki/Manual:Sc ... _Operators

Who is online

Users browsing this forum: No registered users and 19 guests