Community discussions

MikroTik App
 
sindutzz
just joined
Topic Author
Posts: 22
Joined: Wed Nov 12, 2008 4:53 am

"show ip bgp neighbors xxx received-routes" on mikrotik?

Tue Jun 30, 2009 11:29 am

Hi,

What command on mikrotik to do "show ip bgp neighbors 114.57.172.50 received-routes" like Cisco ?
Already try to search on this forum, but only got Mikrotik version of "show ... advertised-routes"

Thank you before.

Aldhy
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: "show ip bgp neighbors xxx received-routes" on mikrotik?

Tue Jun 30, 2009 12:24 pm

As far as I know there isn't alternative for such command.
One way you can try is
/ip route print were gateway="x.x.x.x"
This will work if gateway is the same as peer's IP address.
 
sindutzz
just joined
Topic Author
Posts: 22
Joined: Wed Nov 12, 2008 4:53 am

Re: "show ip bgp neighbors xxx received-routes" on mikrotik?

Tue Jun 30, 2009 12:58 pm

As far as I know there isn't alternative for such command.
One way you can try is
/ip route print were gateway="x.x.x.x"
This will work if gateway is the same as peer's IP address.
Thank you mrz for your quick reply ;)

I already tried that command, and it work :D
Yes you are right, it will work only when the gateway have the same ip with peer.
There is no hope for multihop peer.

BTW, I need to know the AS-PATH. When i try your command, it will not show the AS-PATH.
I already use "detail" on the command, but the AS-PATH still not shown.

/ip route print detail were gateway="x.x.x.x"

Any option?

Thank you

Aldhy
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: "show ip bgp neighbors xxx received-routes" on mikrotik?

Tue Jun 30, 2009 1:17 pm

If you use where and print detail together then detailed information is not printed. We will fix that behavior in future versions.

Currently you can use another method

/ip route print detail from=[find gateway~"^xx.xx.xx.xx[0x00-0xff]*"]

where xx.xx.xx.xx is desired gateway.
 
sindutzz
just joined
Topic Author
Posts: 22
Joined: Wed Nov 12, 2008 4:53 am

Re: "show ip bgp neighbors xxx received-routes" on mikrotik?

Tue Jun 30, 2009 2:02 pm

If you use where and print detail together then detailed information is not printed. We will fix that behavior in future versions.

Currently you can use another method

/ip route print detail from=[find gateway~"^xx.xx.xx.xx[0x00-0xff]*"]

where xx.xx.xx.xx is desired gateway.
It works on peer with 6000~ received routes.
But when I tried on peer with 270.000(full route) routes, the terminal stop responding and the cpu load become 100% and memory keep decreasing.
I still able to close the terminal and open again the terminal but it is not responding and cpu load still 100% and memory keep decreasing..
So I have to reboot the router.

I think that command load the cpu twice since it need to run the -find gateway~"^xx.xx.xx.xx[0x00-0xff]*"- first and then run the detail.

Anyway, thank you for your help ;)
I'll wait for the next Mikrotik version.
BTW, It would be nice if the next version also have BGP route table for each peer and have command to explore it. I know it will consume cpu and memory resources, but on RB1000 with 2 full route peers and 40Mbps traffic the router only consume 40% cpu and there is still about 300MB mem available, so i think adding BGProute table on the next version will not hurt RB1000 so much :D
Just a noob 2 cents.

Once again thank you for your help ;)
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: "show ip bgp neighbors xxx received-routes" on mikrotik?

Tue Jun 30, 2009 2:28 pm

Searching in full feed table will take approximately 1 to 2 minutes.
 
jami
just joined
Posts: 6
Joined: Fri Jun 01, 2007 5:40 am

Re: "show ip bgp neighbors xxx received-routes" on mikrotik

Wed Jul 16, 2014 5:20 am

You can refer to this FAQ http://wiki.mikrotik.com/wiki/Manual:BGP_HowTo_%26_FAQ

ip route print where received-from=<peer_name>