From 91ac376568af2ede5ddd66114c60f469fe9c3248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BCthe?= Date: Fri, 23 Jun 2023 09:49:29 +0200 Subject: [PATCH] bgpgrep, peerindex: add page (#10276) --- pages/common/bgpgrep.md | 29 +++++++++++++++++++++++++++++ pages/common/peerindex.md | 13 +++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pages/common/bgpgrep.md create mode 100644 pages/common/peerindex.md diff --git a/pages/common/bgpgrep.md b/pages/common/bgpgrep.md new file mode 100644 index 000000000..b53232dce --- /dev/null +++ b/pages/common/bgpgrep.md @@ -0,0 +1,29 @@ +# bgpgrep + +> Filter and print BGP data within MRT dumps. +> Can read files compressed with gzip, bzip2 and xz. +> More information: . + +- Output all routes: + +`bgpgrep {{master6.mrt}}` + +- Output all routes received from a specific peer, determined by the peer's AS number: + +`bgpgrep {{master4.mrt}} -peer {{64498}}` + +- Output all routes received from a specific peer, determined by the peer's IP address: + +`bgpgrep {{master4.mrt.bz2}} -peer {{2001:db8:dead:cafe:acd::19e}}` + +- Output all routes which have certain ASNs in their AS path: + +`bgpgrep {{master6.mrt.bz2}} -aspath '{{64498 64510}}'` + +- Output all routes that lead to a specific address: + +`bgpgrep {{master6.mrt.bz2}} -supernet '{{2001:db8:dead:cafe:aef::5}}'` + +- Output all routes that have communities from a specific AS: + +`bgpgrep {{master4.mrt}} -communities \( '{{64497}}:*' \)` diff --git a/pages/common/peerindex.md b/pages/common/peerindex.md new file mode 100644 index 000000000..f273fc5aa --- /dev/null +++ b/pages/common/peerindex.md @@ -0,0 +1,13 @@ +# peerindex + +> Inspect MRT TABLE_DUMPV2 Peer Index Table. +> Can read files compressed with gzip, bzip2 and xz. +> More information: . + +- Output all peers: + +`peerindex {{master6.mrt}}` + +- Display all peers that have provided routing information: + +`peerindex -r {{master6.mrt}}`