开发者

Quagga Loc_RIB and Dump BGP packets,table?

My first question might sound a little stupid. But here goes:

By the command: "show ip bgp" We can display entries in the BGP routing table. Now, is this the BGP Loc-RIB that quagga has created? If n开发者_开发知识库ot, then what is the quagga command that lets one see the Loc-RIB?

Second question: Does quagga dump BGP packets,tables automatically? Or only if I give the command "dump bgp all output_path_and_file_name" does the dumping occur?

My ultimate goal is to read the BGP loc-RIB with the help of a C program. Can the C library "libbgpdump" help me achieve this? Anyone have any code snippet accessing dumped BGP packets/tables using "libbgpdump"?


  1. when you execute command like "show ip bgp" or "show ip route", it shows you FIB entries (not RIB entries). From these entries, those which are marked with ">" are injected into kernel routing table (RIB table). (normally FIB entries are RIB entries are same, so if you see all entries with ">", then your FIB and RIB are copies of each other)

  2. Yep, its zebra command. More details here: http://www.quagga.net/docs/docs-multi/Dump-BGP-packets-and-table.html

  3. Yes,this is very much possible. You can either use libbgpdump or pybgpdump (python). Both have example scripts / programs included. libgbpdump has example.c which clearly shows how you can access BGP dump. But it would require considerable amount of effort on your part to produce results.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜