superb 54 Posted 2016-04-05 20:33:05 Share Posted 2016-04-05 20:33:05 Есть 2 подключения к провайдерам(PPTP и PPOE). Прероутингами часть адресов завёрнуто на одного провайдера, часть на другого. Как заставить при потере пинга с первого провайдера на 8.8.8.8 все адреса заворачивало на 2-го и наоборот? Нетвачем я так понял уже не отделаюсь? Link to post Share on other sites
Ромка 568 Posted 2016-04-05 20:39:06 Share Posted 2016-04-05 20:39:06 Скрипты... Недавно на хабре проскакивало, гуглите... Link to post Share on other sites
vlin 43 Posted 2016-04-05 21:25:04 Share Posted 2016-04-05 21:25:04 Допустим до провайдера 1 pptp, до 2 - pppoe, сеть х.х.х.х/х через провайдера 1, y.y.y.y/y - через 2 /ip route add dst-address=8.8.8.8 gateway=pptp-out1 scope=10 /ip route add dst-address=8.8.4.4 gateway=pppoe-out1 scope=10 /ip route add dst-address=х.х.х.х/х gateway=8.8.8.8 check-gateway=ping distance=1 /ip route add dst-address=х.х.х.х/х gateway=8.8.4.4 distance=2 /ip route add dst-address=y.y.y.y/y gateway=8.8.4.4 check-gateway=ping distance=1 /ip route add dst-address=y.y.y.y/y gateway=8.8.8.8 distance=2 Link to post Share on other sites
superb 54 Posted 2016-04-06 04:17:28 Author Share Posted 2016-04-06 04:17:28 Допустим до провайдера 1 pptp, до 2 - pppoe, сеть х.х.х.х/х через провайдера 1, y.y.y.y/y - через 2 /ip route add dst-address=8.8.8.8 gateway=pptp-out1 scope=10 /ip route add dst-address=8.8.4.4 gateway=pppoe-out1 scope=10 /ip route add dst-address=х.х.х.х/х gateway=8.8.8.8 check-gateway=ping distance=1 /ip route add dst-address=х.х.х.х/х gateway=8.8.4.4 distance=2 /ip route add dst-address=y.y.y.y/y gateway=8.8.4.4 check-gateway=ping distance=1 /ip route add dst-address=y.y.y.y/y gateway=8.8.8.8 distance=2 Пробовал. Не могу завести роуты те что днс, висят неактивнымы( /ip route add dst-address=8.8.8.8 gateway=pptp-out1 scope=10 /ip route add dst-address=8.8.4.4 gateway=pppoe-out1 scope=10 Где то читал что 1 нат нужен, а не 2. Но еще не пробовал. Link to post Share on other sites
vlin 43 Posted 2016-04-06 05:31:39 Share Posted 2016-04-06 05:31:39 /ip route> add dst-address=8.8.8.8 gateway=pppoe-out2 scope=10 /ip route> print 0 A S 8.8.8.8/32 pppoe-out2 1 Проверил, все отлично добавляется. Что пишет ip route print detail по этому маршруту ? Имя интерфейса верное ? Link to post Share on other sites
Barabashka.yury 0 Posted 2016-04-06 08:01:38 Share Posted 2016-04-06 08:01:38 Есть 2 подключения к провайдерам(PPTP и PPOE) Где то читал что 1 нат нужен, а не 2. Но еще не пробовал. ну и как там один нат может быть????? в личку. пока время есть, настрою удаленно. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now