1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/bgpgrep.md
Marek Küthe e5f619c83c
bgpgrep, peerindex: update links (#10476)
Since gitea.it no longer allows registrations, neither issues nor PRs can be created. Therefore the main repo was moved from to Codeberg.
2023-07-11 11:15:21 +05:30

29 lines
886 B
Markdown

# bgpgrep
> Filter and print BGP data within MRT dumps.
> Can read files compressed with gzip, bzip2 and xz.
> More information: <https://codeberg.org/1414codeforge/ubgpsuite>.
- 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}}:*' \)`