mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 06:15:35 +02:00
bgpgrep, peerindex: add page (#10276)
This commit is contained in:
parent
86393987d7
commit
91ac376568
2 changed files with 42 additions and 0 deletions
29
pages/common/bgpgrep.md
Normal file
29
pages/common/bgpgrep.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# bgpgrep
|
||||||
|
|
||||||
|
> Filter and print BGP data within MRT dumps.
|
||||||
|
> Can read files compressed with gzip, bzip2 and xz.
|
||||||
|
> More information: <https://gitea.it/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}}:*' \)`
|
13
pages/common/peerindex.md
Normal file
13
pages/common/peerindex.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# peerindex
|
||||||
|
|
||||||
|
> Inspect MRT TABLE_DUMPV2 Peer Index Table.
|
||||||
|
> Can read files compressed with gzip, bzip2 and xz.
|
||||||
|
> More information: <https://gitea.it/1414codeforge/ubgpsuite>.
|
||||||
|
|
||||||
|
- Output all peers:
|
||||||
|
|
||||||
|
`peerindex {{master6.mrt}}`
|
||||||
|
|
||||||
|
- Display all peers that have provided routing information:
|
||||||
|
|
||||||
|
`peerindex -r {{master6.mrt}}`
|
Loading…
Add table
Reference in a new issue