Senin, 11 Februari 2008

Generate routes for stress testing BGP functionality

Here is a script that we used to quickly generate 65000 routes for stress testing bgp peer sessions on 2.9.x.

# Removing old route table.
/ip route remove [/ip route find routing-mark=bgptest]

# Start new routing entries.
:local startip 10.100.1.0
:for i from=1 to=65535 do={

:log info ("adding route " . ($startip $i�
/ip route add dst-address=�startip $i) . "/32") gateway=10.20.0.1 routing-mark=bgptest

}

source: http://wiki.mikrotik.com/wiki/Generate_routes_for_stress_testing_BGP_functionality

Tidak ada komentar: