Тема: Обновляемая таблица локальных маршрутов
Можно ли как-то получать актуальную таблицу маршрутов пиринга без использования rip (в виде файла например)?
Я вот взял маршруты с home-ix.ru и получился вот такой файл для заливки в мой DIR-300 по телнет:
route add -net 178.173.0.0 netmask 255.255.128.0 gw 10.202.32.254 eth0.2
route add -net 195.91.128.0 netmask 255.255.128.0 gw 10.202.32.254 eth0.2
route add -net 93.123.128.0 netmask 255.255.128.0 gw 10.202.32.254 eth0.2
route add -net 109.225.192.0 netmask 255.255.192.0 gw 10.202.32.254 eth0.2
route add -net 46.160.192.0 netmask 255.255.192.0 gw 10.202.32.254 eth0.2
route add -net 81.5.64.0 netmask 255.255.192.0 gw 10.202.32.254 eth0.2
route add -net 86.62.64.0 netmask 255.255.192.0 gw 10.202.32.254 eth0.2
route add -net 90.155.192.0 netmask 255.255.192.0 gw 10.202.32.254 eth0.2
route add -net 93.182.0.0 netmask 255.255.192.0 gw 10.202.32.254 eth0.2
route add -net 95.154.128.0 netmask 255.255.192.0 gw 10.202.32.254 eth0.2
route add -net 188.72.96.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 195.54.192.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 195.94.224.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 195.98.160.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 212.7.224.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 46.150.160.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 62.176.0.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 62.84.96.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 77.233.192.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 77.238.224.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 78.158.192.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 78.25.128.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 78.25.160.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 82.194.224.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 89.189.96.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 90.155.160.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 93.175.0.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 94.45.0.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 94.45.192.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 95.171.0.0 netmask 255.255.224.0 gw 10.202.32.254 eth0.2
route add -net 109.106.144.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 109.207.160.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 109.74.128.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 178.209.96.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 188.244.32.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 217.173.64.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 217.194.240.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 77.246.240.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 80.251.224.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 80.71.240.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 81.17.144.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 81.200.80.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 81.222.176.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 81.25.48.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 81.88.208.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 81.95.32.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 83.69.224.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 89.250.0.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 90.155.144.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 93.185.192.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 94.158.96.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 94.228.192.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 94.231.160.0 netmask 255.255.240.0 gw 10.202.32.254 eth0.2
route add -net 109.106.136.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 109.95.216.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 178.209.112.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 178.217.104.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 178.22.48.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 188.35.16.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 193.124.232.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 193.125.128.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 193.125.32.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 193.125.88.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 195.128.56.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 213.108.136.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 213.5.24.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 46.44.16.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 62.122.192.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 62.122.96.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 77.105.184.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 77.243.104.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 77.247.184.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 77.74.8.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 79.170.24.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 80.84.112.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 81.9.56.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 83.69.240.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 85.142.192.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 85.142.208.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 87.239.24.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 87.239.32.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 90.155.136.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 92.39.128.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 93.188.184.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 93.94.152.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 93.94.232.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 93.95.160.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 94.198.104.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 94.199.216.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 94.232.64.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 94.247.120.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 95.131.176.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 95.131.208.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 95.215.96.0 netmask 255.255.248.0 gw 10.202.32.254 eth0.2
route add -net 193.218.176.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 194.187.204.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 194.28.208.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 194.85.80.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 195.211.192.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 62.122.208.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 62.182.48.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 77.243.100.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 77.243.96.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 80.252.152.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 80.77.160.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 82.179.236.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 85.142.200.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 89.222.164.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 89.222.232.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 90.155.132.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.192.92.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.200.224.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.202.24.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.202.84.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.203.196.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.203.80.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.205.144.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.211.104.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.211.52.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.211.60.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.214.96.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.219.24.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 91.222.164.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 94.143.52.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 94.79.44.0 netmask 255.255.252.0 gw 10.202.32.254 eth0.2
route add -net 193.125.142.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 193.169.4.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 193.33.242.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 194.152.34.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 194.247.190.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 195.191.158.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 195.191.208.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 195.254.186.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 213.208.186.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 213.79.64.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 62.117.104.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 62.140.240.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 77.108.114.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 79.142.106.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 80.84.122.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 82.138.18.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 82.138.4.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 82.138.42.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 82.179.208.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 82.179.234.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 87.245.138.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 87.245.172.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 91.193.220.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 91.194.112.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 91.194.246.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 91.195.60.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 91.196.208.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 94.228.168.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 94.228.200.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 94.253.94.0 netmask 255.255.254.0 gw 10.202.32.254 eth0.2
route add -net 178.208.159.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 192.188.189.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 193.138.70.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 194.0.225.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 194.154.88.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 195.239.126.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 195.239.133.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 213.171.56.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 24.156.41.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 62.117.85.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 62.122.212.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 62.140.229.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 62.140.232.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 62.181.56.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 77.94.175.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 79.98.12.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 80.84.121.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 84.47.135.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 84.47.161.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 87.245.170.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 88.210.51.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 91.216.126.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 93.174.79.0 netmask 255.255.255.0 gw 10.202.32.254 eth0.2
route add -net 212.59.99.128 netmask 255.255.255.128 gw 10.202.32.254 eth0.2
route add -net 62.140.228.128 netmask 255.255.255.128 gw 10.202.32.254 eth0.2
route add -net 85.112.113.128 netmask 255.255.255.128 gw 10.202.32.254 eth0.2
route add -net 87.245.141.128 netmask 255.255.255.128 gw 10.202.32.254 eth0.2
route add -net 85.112.115.128 netmask 255.255.255.192 gw 10.202.32.254 eth0.2
route add -net 85.112.117.128 netmask 255.255.255.192 gw 10.202.32.254 eth0.2
route add -net 85.112.114.160 netmask 255.255.255.224 gw 10.202.32.254 eth0.2
route add -net 85.112.117.192 netmask 255.255.255.224 gw 10.202.32.254 eth0.2
route add -net 85.112.117.224 netmask 255.255.255.224 gw 10.202.32.254 eth0.2
route add -net 80.249.152.16 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.112.16 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.112.64 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.112.80 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.112.96 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.113.96 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.114.208 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.114.224 netmask 255.255.255.240 gw 10.202.32.254 eth0.2
route add -net 85.112.112.48 netmask 255.255.255.248 gw 10.202.32.254 eth0.2
route add -net 85.112.113.88 netmask 255.255.255.248 gw 10.202.32.254 eth0.2
route add -net 85.112.114.0 netmask 255.255.255.248 gw 10.202.32.254 eth0.2
route add -net 85.112.114.64 netmask 255.255.255.248 gw 10.202.32.254 eth0.2
route add -net 212.118.44.104 netmask 255.255.255.252 gw 10.202.32.254 eth0.2
route add -net 212.118.46.228 netmask 255.255.255.252 gw 10.202.32.254 eth0.2
route add -net 81.95.40.240 netmask 255.255.255.252 gw 10.202.32.254 eth0.2
route add -net 85.112.112.4 netmask 255.255.255.252 gw 10.202.32.254 eth0.2
route add -net 85.112.115.16 netmask 255.255.255.252 gw 10.202.32.254 eth0.2
route add -net 80.249.152.20 netmask 255.255.255.255 gw 10.202.32.254 eth0.2
Часть маршрутов неправильна, но в целом это не ощущается и закачка по пирингу идет значительно чаще.
В телнет-сессию закидываю содержимое через буфер в ручную после перезагрузки длинка. Если надо удалить маршруты, то можно просто перезагрузить или поменять add на del. Можно было бы автоматизировать процесс: если где-то будет выложена актуальная версия файла, то можно написать скрипт заливки и добавить его в планировщик - получился бы некий аналог динамической маршрутизации.