Moved guide about route collector to site

This commit is contained in:
Pavel Odintsov 2018-07-21 13:24:55 +01:00 committed by GitHub
parent ee1f1c0e00
commit c9b7ba8987
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1 @@
### Here you can find some nice scripts for subnet's collection from the BGP route server
- Clone ExaBGP master's repository:
```bash
# yum/apt-get install -y python-pip
pip install exabgp
```
- Download configs and scripts:
```bash
wget https://raw.githubusercontent.com/pavel-odintsov/fastnetmon/master/src/scripts/exabgp_network_collector.conf -O/etc/exabgp_network_collector.conf
wget https://raw.githubusercontent.com/pavel-odintsov/fastnetmon/master/src/scripts/bgp_network_retriever.py -O/usr/local/bin/bgp_network_retriever.py
wget https://raw.githubusercontent.com/pavel-odintsov/fastnetmon/master/src/scripts/bgp_network_collector.py -O/usr/local/bin/bgp_network_collector.py
chmod +x /usr/local/bin/bgp_network_retriever.py /usr/local/bin/bgp_network_collector.py
```
- Run ExaBGP:
```bash
cd /usr/src/exabgp
env exabgp.log.level=DEBUG exabgp.daemon.user=root exabgp.tcp.bind="0.0.0.0" exabgp.tcp.port=179 exabgp.daemon.daemonize=false exabgp.daemon.pid=/var/run/exabgp.pid exabgp.log.destination=/var/log/exabgp.log exabgp /etc/exabgp_network_collector.conf
```
- Wait a few minutes while all route announcements are received (depends on router server size)
- Retrieve learned networks from database (/var/lib/bgp_network_collector.db): ```python /usr/local/bin/bgp_network_retriever.py```
We moved documentation to our [site](https://fastnetmon.com/subnet-collection-from-bgp-peering-session/)