This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tools:brt [2019/11/21 14:30] veera |
tools:brt [2019/11/21 14:36] (current) veera [4.1 Convert the MRT format update file to a format acceptable by brt using bgpdump] |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| - | 1. Download BRT from http://caia.swin.edu.au/tools/bgp/brt/downloads.html | + | ===== 1. Download BRT ===== |
| + | |||
| + | |||
| + | You can find it here http://caia.swin.edu.au/tools/bgp/brt/downloads.html | ||
| <note important> | <note important> | ||
| - | **mp_ methods** | + | **Error with mp_ methods** |
| + | |||
| + | There seems to be an issue with the Net::BGP module. | ||
| We are getting the following error with version 0.2 ''Can't locate object method "mp_unreach_nlri" via package "Net::BGP::Update" at brt-0.2.pl line 263, <$fh> line 2.'' | We are getting the following error with version 0.2 ''Can't locate object method "mp_unreach_nlri" via package "Net::BGP::Update" at brt-0.2.pl line 263, <$fh> line 2.'' | ||
| - | As a hack you can comment out the mp_unreach_nlri and mp_reach_nlri , if you arent interested in multipath. There seems to be an issue with the Net::BGP module. | + | As a hack you can comment out the mp_unreach_nlri and mp_reach_nlri , you will lose the multipath updates. |
| Line 21: | Line 26: | ||
| - | 2. Install the Perl Net::BGP module | + | ===== 2. Install the Perl Net::BGP module ===== |
| <code> | <code> | ||
| Line 27: | Line 33: | ||
| </code> | </code> | ||
| - | 3. On router under test | + | ===== 3. On router under test ===== |
| + | |||
| + | Add the BRT as a peer say with AS 300 | ||
| + | |||
| + | Lets say the router has an AS 400 | ||
| - | say it has AS 400 | ||
| <code> | <code> | ||
| sh bgp neighbors | sh bgp neighbors | ||
| Line 40: | Line 49: | ||
| - | 4. Download a route update file in MRT format. The easiest way is to download from a collector see http://archive.routeviews.org/ | + | ===== 4. Prepare a route update file ===== |
| + | |||
| + | Download a route update file in MRT format. The easiest way is to download from a collector see http://archive.routeviews.org/ | ||
| + | |||
| + | |||
| + | ==== 4.1 Convert the MRT format update file to a format acceptable by brt using bgpdump ==== | ||
| - | 5. Convert the MRT format update file to a format acceptable by brt using bgpdump | ||
| BRT tool needs a human readable BGP update file | BRT tool needs a human readable BGP update file | ||
| Line 52: | Line 65: | ||
| Convert the file using bgpdump | Convert the file using bgpdump | ||
| - | '' | + | |
| + | <code> | ||
| bgpdump -m updates.20191101.0130 > updates.20191101.0130.bgpdump | bgpdump -m updates.20191101.0130 > updates.20191101.0130.bgpdump | ||
| + | </code> | ||
| - | '' | ||
| + | ===== 5. Now you can inject routes into the router table. ===== | ||
| - | 6. Now you can inject routes into the router table. | ||
| - | '' | + | Run BRT , use the -v to keep an eye on errors. |
| + | |||
| + | <code> | ||
| sudo perl brt-0.2.pl -brtas 300 -brtip 192.168.3.33 -peeras 400 -peerip 192.168.3.200 -f ~/updates.20191101.0130.bgpdump -v | sudo perl brt-0.2.pl -brtas 300 -brtip 192.168.3.33 -peeras 400 -peerip 192.168.3.200 -f ~/updates.20191101.0130.bgpdump -v | ||
| - | '' | + | </code> |
| + | |||
| + | |||
| + | Use the following command on the router | ||
| + | |||
| + | <code> | ||
| + | |||
| + | sh ip route | ||
| + | sh bgp summ | ||
| + | sh bgp neighbors | ||
| + | |||
| + | </code> | ||
| + | |||
| + | |||
| + | |||
| + | BRT is a useful tool to test Trisul ISP (needs license) | ||