Community discussions

 
bda
Member Candidate
Member Candidate
Topic Author
Posts: 126
Joined: Fri Sep 03, 2010 11:07 am
Location: Russia,Moscow

How to search specific route in specific vrf?

Wed Sep 08, 2010 9:43 am

I have internet table in vrf-internet. For example:
287 ADb  dst-address=1.177.116.0/22 gateway=213.137.224.33 gateway-status=213.137.224.33 on vrf-internet reachable ether3 distance=200 
        scope=40 target-scope=30 routing-mark=vrf-internet bgp-as-path="20485,3491,9318,38091,9845,9845,9845,9845,9845,10155" 
        bgp-local-pref=120 bgp-med=0 bgp-origin=igp received-from=cn-msk02ra 

288 ADb  dst-address=1.177.120.0/22 gateway=213.137.224.33 gateway-status=213.137.224.33 on vrf-internet reachable ether3 distance=200 
        scope=40 target-scope=30 routing-mark=vrf-internet bgp-as-path="20485,3491,9318,38091,9845,9845,9845,9845,9845,10155" 
        bgp-local-pref=120 bgp-med=0 bgp-origin=igp received-from=cn-msk02ra
And try to search specific route in it:
ip route print where dst-address =1.177.124.0/22
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
Or:
ip route print where dst-address =1.177.124.0/22 routing-mark =vrf-internet 
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
That is my mistake? How to unite parameters in search string, applying to routing table?
God bless UNIX!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5934
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to search specific route in specific vrf?

Wed Sep 08, 2010 9:47 am

/ip route print det where dst-address=3.3.3.3/32 routing-mark="lala"
 
bda
Member Candidate
Member Candidate
Topic Author
Posts: 126
Joined: Fri Sep 03, 2010 11:07 am
Location: Russia,Moscow

Re: How to search specific route in specific vrf?

Wed Sep 08, 2010 10:13 am

/ip route print det where dst-address=3.3.3.3/32 routing-mark="lala"
Hmm... Not working.
/ip route print det where dst-address =1.177.124.0/22 routing-mark ="vrf-internet"
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit
But all routes in this vrf. See first post...
God bless UNIX!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5934
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to search specific route in specific vrf?

Wed Sep 08, 2010 10:28 am

Which version you are running? Works fine on v5.
 
bda
Member Candidate
Member Candidate
Topic Author
Posts: 126
Joined: Fri Sep 03, 2010 11:07 am
Location: Russia,Moscow

Re: How to search specific route in specific vrf?

Wed Sep 08, 2010 12:34 pm

Which version you are running? Works fine on v5.
I have 5.0beta6
God bless UNIX!
 
bda
Member Candidate
Member Candidate
Topic Author
Posts: 126
Joined: Fri Sep 03, 2010 11:07 am
Location: Russia,Moscow

Re: How to search specific route in specific vrf?

Sat Sep 11, 2010 11:07 am

I`m still have problem with searching routes in specific vrf... Can anybody help me?
God bless UNIX!
 
bda
Member Candidate
Member Candidate
Topic Author
Posts: 126
Joined: Fri Sep 03, 2010 11:07 am
Location: Russia,Moscow

Re: How to search specific route in specific vrf?

Fri Sep 17, 2010 7:23 am

Dear Dev. Team! Pls help me to resolve this problem. Sorry for bumping.
God bless UNIX!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5934
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to search specific route in specific vrf?

Fri Sep 17, 2010 8:07 am

Try to replace = with ~ it should help.
 
bda
Member Candidate
Member Candidate
Topic Author
Posts: 126
Joined: Fri Sep 03, 2010 11:07 am
Location: Russia,Moscow

Re: How to search specific route in specific vrf?

Mon Oct 04, 2010 1:34 pm

Try to replace = with ~ it should help.
Thanks!
God bless UNIX!

Who is online

Users browsing this forum: No registered users and 5 guests