BGP commands enquiry - advertised-route, received-route, and many more
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
On 26.07.2012 06:55, Jimmy Halim wrote:
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>
-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)
-Show ip bgp neighbors 1.1.1.1 routes (cisco) sh route protocol <1.1.1.1 peer-name> [all]
-Bgpctl show rib (OpenBGPD) show route [all] (probably) ?
-Bgpctl show fib (OpenBGPD) show route export kernel (probably) ?
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.
Cheers,
Jimmy
On Thu, Jul 26, 2012 at 12:45:33PM +0400, Alexander V. Chernikov wrote:
I've translated part of our internal wiki page, regarding bird: http://bird.mpls.in/projects/mpls-bird/wiki/Bird_cheatsheet
If you agree, i would copy CLI cheatsheet to BIRD wiki. Note that there is one error in the cheatsheet:
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: santiago@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."
On 26.07.2012 16:39, Ondrej Zajicek wrote:
On Thu, Jul 26, 2012 at 12:45:33PM +0400, Alexander V. Chernikov wrote:
I've translated part of our internal wiki page, regarding bird: http://bird.mpls.in/projects/mpls-bird/wiki/Bird_cheatsheet
If you agree, i would copy CLI cheatsheet to BIRD wiki. Of course.
Note that there is one error in the cheatsheet:
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] Even simpler, thanks!
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:melifaro@yandex-team.ru] Sent: Thursday, July 26, 2012 4:46 PM To: Jimmy Halim Cc: bird-users@bird.network.cz Subject: Re: BGP commands enquiry - advertised-route, received-route, and many more On 26.07.2012 06:55, Jimmy Halim wrote:
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>
-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)
-Show ip bgp neighbors 1.1.1.1 routes (cisco) sh route protocol <1.1.1.1 peer-name> [all]
-Bgpctl show rib (OpenBGPD) show route [all] (probably) ?
-Bgpctl show fib (OpenBGPD) show route export kernel (probably) ?
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.
Cheers,
Jimmy
On Tue, Jul 31, 2012 at 10:48:48AM +0800, Jimmy Halim wrote:
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: santiago@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."
participants (3)
-
Alexander V. Chernikov -
Jimmy Halim -
Ondrej Zajicek