2023-06-23 08:49:29 +01:00
|
|
|
# bgpgrep
|
|
|
|
|
|
|
|
> Filter and print BGP data within MRT dumps.
|
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 04:46:32 +00:00
|
|
|
> Can read files compressed with `gzip`, `bzip2` and `xz`.
|
2023-07-11 06:45:21 +01:00
|
|
|
> More information: <https://codeberg.org/1414codeforge/ubgpsuite>.
|
2023-06-23 08:49:29 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List all routes:
|
2023-06-23 08:49:29 +01:00
|
|
|
|
|
|
|
`bgpgrep {{master6.mrt}}`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List routes received from a specific peer, determined by the peer's AS number:
|
2023-06-23 08:49:29 +01:00
|
|
|
|
|
|
|
`bgpgrep {{master4.mrt}} -peer {{64498}}`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List routes received from a specific peer, determined by the peer's IP address:
|
2023-06-23 08:49:29 +01:00
|
|
|
|
|
|
|
`bgpgrep {{master4.mrt.bz2}} -peer {{2001:db8:dead:cafe:acd::19e}}`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List routes which have certain ASNs in their AS path:
|
2023-06-23 08:49:29 +01:00
|
|
|
|
|
|
|
`bgpgrep {{master6.mrt.bz2}} -aspath '{{64498 64510}}'`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List routes that lead to a specific address:
|
2023-06-23 08:49:29 +01:00
|
|
|
|
|
|
|
`bgpgrep {{master6.mrt.bz2}} -supernet '{{2001:db8:dead:cafe:aef::5}}'`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List routes that have communities from a specific AS:
|
2023-06-23 08:49:29 +01:00
|
|
|
|
|
|
|
`bgpgrep {{master4.mrt}} -communities \( '{{64497}}:*' \)`
|