BGPDUMP(1)
π BGPDUMP β okay bestie, let's talk about bgpdump π
bgpdump(1) β the manual page you're literally reading right now. Pull up a chair, grab a boba, we're decoding MRT files together. π§β¨
πΈ NAME πΈ
bgpdump β translates MRT format files into readable output. That's the whole vibe. It takes those cursed binary blobs and makes them legible. π
π VERSION π
Version 1.4.99.15+hg127 β yes, that's the whole number, no cap. π
β¨ SYNOPSIS β¨
Usage, babes:
bgpdump [-m|-M] [-t dump|-t change] [-O <output-file>] <input-file>
That's it. That's the incantation. πͺ
π₯ OPTIONS π₯
π« Output mode π«
Pick your fighter, bestie:
-Hβ multi-line, human-readable. This is the default, so if you don't say anything, this is what you get. π«Ά-mβ one line per entry, with unix timestamps. Compact queen energy.-Mβ one line per entry, with human readable timestamps shaped likeMM/DD/YY HH:MM:SS. And listen β there are other differences between-mand-M, so don't assume they're twins. They are not. π
π Common options π
-Ofile β output goes to file instead ofSTDOUT. Redirect your whole life. π-sβ log to syslog. This is the default, iconic behaviour honestly.-vβ log toSTDERRinstead. For when you want the tea right there in your terminal. π
π¦ Options for -m and -M modes π¦
These only hit different when you're in -m or -M land, iykyk:
-t dumpβ timestamps for RIB dumps reflect the time of the dump. This is the default.-t changeβ timestamps for RIB dumps reflect the last route modification instead.-pβ show the packet index at the second position. Number two. Right there. π
π Special options π
-Tβ run internal tests and then exit. It's giving "I'm just here to check myself, bye". π§
π INPUT FORMATS π
What can you feed this thing? Bestie, let me list it out:
- MRT routing table dump entries in
TABLE_DUMPorTABLE_DUMP_V2types - Zebra/Quagga BGP records:
- BGP messages (
OPEN,UPDATE,NOTIFY,KEEPALIVE) - BGP state changes
- BGP messages (
- File may be gzipped or bzip2'd, and/or passed in through
stdin. Yes, you can pipe it. Live your truth. π«Ά
The file format is described in the Internet Draft grow-mrt-13:
https://tools.ietf.org/html/draft-ietf-grow-mrt-13
Go read it if you want the deep lore. π
π BUGS π
Okay so, not everything is perfect, and we're being honest about it:
- If a single update message contains more than
8192added or withdrawn prefixes, all those above that number are ignored. Gone. Poof. π« - Files with a name longer than
999characters cannot be processed. 999 is the limit, 1000 is a crime scene. - The
bgpdumpprogram is not y2038 compliant. This is inherited from the file format, so it's not even bgpdump's fault, it's generational trauma. π
π DEBIAN π
Besides bug fixes, the following changes were done in the packaging for the Debian distribution:
- The maximum number of prefixes processed from a single update messages was raised from
2050to8192. Debian said "actually, let's raise the ceiling" and honestly? Slay. π
π AUTHOR π
bgpdump was originally written by Dan Ardelean and the RIPE NCC took over maintenance in 2005. Shoutout to the maintainers fr fr. π«Ά
bgpdump is Copyright Β© 2007-2011 RIPE NCC.
This manpage is based on bgpdump's usage output, the bgpdump's homepage, and other sources. It was written for the Debian project by Christoph Biedl <debian.axhn@manchmal.in-ulm.de> but may be used by others. Generous king behaviour. π
And that's the whole page, bestie. You made it to the end ofBGPDUMP(1)β version1.4.99.15+hg127, Debian packaging and all. Periodt. πβ¨π
π¦ where this page comes from
- debian bookworm: bgpdump 1.6.2-2 Β· Old-MIT+GPL2+
- ubuntu jammy: bgpdump 1.6.2-2 Β· Old-MIT+GPL2+
- ubuntu noble: bgpdump 1.6.2-2 Β· Old-MIT+GPL2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms