Discussion:
BGP commands enquiry - advertised-route, received-route, and many more
Jimmy Halim
2012-07-26 02:55:53 UTC
Permalink
Hi guys,

I am very new to BIRD daemon. Can I check with anyone in the mailing list on the equivalent commands for the following in BIRD daemon?

- Show ip bgp neighbors 1.1.1.1 advertised-routes (cisco)

- Show ip bgp neighbors 1.1.1.1 received-routes (cisco)

- Show ip bgp neighbors 1.1.1.1 routes (cisco)

- Bgpctl show rib (OpenBGPD)

- Bgpctl show fib (OpenBGPD)

Thanks in advance!

Cheers,
Jimmy
Alexander V. Chernikov
2012-07-26 08:45:33 UTC
Permalink
Post by Jimmy Halim
Hi guys,
I am very new to BIRD daemon. Can I check with anyone in the mailing
list on the equivalent commands for the following in BIRD daemon?
-Show ip bgp neighbors 1.1.1.1 advertised-routes (cisco)
sh route export <1.1.1.1 peer-name>
Post by Jimmy Halim
-Show ip bgp neighbors 1.1.1.1 received-routes (cisco)
No <easy> way to see routes before applying way. If you desperately
needs this you can make a separate table for this peer, and use pipe
filtering to put needed routes in master table (and vise versa)
Post by Jimmy Halim
-Show ip bgp neighbors 1.1.1.1 routes (cisco)
sh route protocol <1.1.1.1 peer-name> [all]
Post by Jimmy Halim
-Bgpctl show rib (OpenBGPD)
show route [all] (probably) ?
Post by Jimmy Halim
-Bgpctl show fib (OpenBGPD)
show route export kernel (probably) ?
Post by Jimmy Halim
Thanks in advance!
I've translated part of our internal wiki page, regarding bird:
http://bird.mpls.in/projects/mpls-bird/wiki/Bird_cheatsheet

Maybe it can help a bit more.
Post by Jimmy Halim
Cheers,
Jimmy
Ondrej Zajicek
2012-07-26 12:39:02 UTC
Permalink
Post by Alexander V. Chernikov
http://bird.mpls.in/projects/mpls-bird/wiki/Bird_cheatsheet
If you agree, i would copy CLI cheatsheet to BIRD wiki.
Post by Alexander V. Chernikov
You cannot filter routes by protocol name.
That could be done, e.g.:
proto = "ospf1"
proto ~ "ospf*"


Also note that the condition for checking OSPF routes could be easily
expressed (without case) by:
source ~ [RTS_OSPF..RTS_OSPF_EXT2]
--
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: ***@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
Alexander V. Chernikov
2012-07-26 13:32:38 UTC
Permalink
Post by Ondrej Zajicek
Post by Alexander V. Chernikov
http://bird.mpls.in/projects/mpls-bird/wiki/Bird_cheatsheet
If you agree, i would copy CLI cheatsheet to BIRD wiki.
Of course.
Post by Ondrej Zajicek
Post by Alexander V. Chernikov
You cannot filter routes by protocol name.
proto = "ospf1"
proto ~ "ospf*"
Also note that the condition for checking OSPF routes could be easily
source ~ [RTS_OSPF..RTS_OSPF_EXT2]
Even simpler, thanks!
Jimmy Halim
2012-07-31 02:48:48 UTC
Permalink
Hi Alexander, guys,

Thanks a lot for your input. Actually it is great if someone has tried a work around to display the equivalent command of "show ip bgp neighbors 1.1.1.1 received-routes" in BIRD. We are able to do this in OpenBGPD. I have heard before that maybe we need to use community to play around. But I am not sure how to do it. It is appreciated if anyone here can give some light.

Thanks,
Jimmy

-----Original Message-----
From: Alexander V. Chernikov [mailto:***@yandex-team.ru]
Sent: Thursday, July 26, 2012 4:46 PM
To: Jimmy Halim
Cc: bird-***@bird.network.cz
Subject: Re: BGP commands enquiry - advertised-route, received-route, and many more
Post by Jimmy Halim
Hi guys,
I am very new to BIRD daemon. Can I check with anyone in the mailing
list on the equivalent commands for the following in BIRD daemon?
-Show ip bgp neighbors 1.1.1.1 advertised-routes (cisco)
sh route export <1.1.1.1 peer-name>
Post by Jimmy Halim
-Show ip bgp neighbors 1.1.1.1 received-routes (cisco)
No <easy> way to see routes before applying way. If you desperately
needs this you can make a separate table for this peer, and use pipe
filtering to put needed routes in master table (and vise versa)
Post by Jimmy Halim
-Show ip bgp neighbors 1.1.1.1 routes (cisco)
sh route protocol <1.1.1.1 peer-name> [all]
Post by Jimmy Halim
-Bgpctl show rib (OpenBGPD)
show route [all] (probably) ?
Post by Jimmy Halim
-Bgpctl show fib (OpenBGPD)
show route export kernel (probably) ?
Post by Jimmy Halim
Thanks in advance!
I've translated part of our internal wiki page, regarding bird:
http://bird.mpls.in/projects/mpls-bird/wiki/Bird_cheatsheet

Maybe it can
Ondrej Zajicek
2012-08-15 09:59:31 UTC
Permalink
Post by Jimmy Halim
Hi Alexander, guys,
Thanks a lot for your input. Actually it is great if someone has tried
a work around to display the equivalent command of "show ip bgp
neighbors 1.1.1.1 received-routes" in BIRD. We are able to do this in
OpenBGPD. I have heard before that maybe we need to use community to
play around. But I am not sure how to do it. It is appreciated if anyone
here can give some light.
Generally something like:

table t;

protocol bgp {
table t;
import all;
export all;

...
}

protocol pipe {
peer table t;
import < here goes filters for BGP
export < here goes filters for BGP
}

Then 'show route table t protocol bgpX' would show all received routes.
--
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: ***@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
Loading...