Skip to content

Commit 14207e4

Browse files
add details on where to get MRT tables from RouteViews.org
1 parent a86069c commit 14207e4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,27 @@ echo "1.1.1.1" | zannotate --geoasn --geoasn-database=/path-to-downloaded-file/G
5656
{"ip":"1.1.1.1","geoasn":{"asn":13335,"org":"CLOUDFLARENET"}}
5757
```
5858

59+
### BGP Routing Tables
60+
1. Go to [https://archive.routeviews.org/route-views2/bgpdata/](https://archive.routeviews.org/route-views2/bgpdata/)
61+
2. Select a month directory (e.g. `2025.09`)
62+
3. Select the `RIBS/` directory
63+
4. Download a BZiped MRT file (e.g. `rib.20250923.1200.bz2`)
64+
5. Unzip the file with:
65+
66+
```shell
67+
bzip2 -d ./path-to-downloaded-file/rib.20250923.1200.bz2
68+
```
69+
70+
6. Test with:
71+
72+
```shell
73+
echo "1.1.1.1" | ./zannotate --routing --routing-mrt-file=/tmp/rib.20250923.1200
74+
```
75+
76+
```json
77+
{"ip":"1.1.1.1","routing":{"prefix":"1.1.1.0/24","asn":13335,"path":[3561,209,3356,13335]}}
78+
```
79+
5980
# Input/Output
6081

6182
## Output

0 commit comments

Comments
 (0)