* [Comm] 2 канала, менять шлюз
@ 2006-04-10 10:02 Igo
2006-04-10 10:09 ` Dmitriy L. Kruglikov
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Igo @ 2006-04-10 10:02 UTC (permalink / raw)
To: ALT Linux Community
Привет всем
будет ли всё работать как я думаю (использоваться один канал и в случие
проподания его работать другой )
есть 2 канала (80.80.123.124 и 213.123.124.128) от разных провайдеров
будут прописаны route
add -net 80.80.123.1 netmask 255.255.255.255 dev eth0
add -net 213.123.124.1 netmask 255.255.255.255 dev eth1
скрипт в кроне будет переодически пинговать 213.123.124.1 и 80.80.123.1
и менять шлюз в соответсвии с результатами
route del default
route add default gw ethX
будет ли так работать?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] 2 канала, менять шлюз
2006-04-10 10:02 [Comm] 2 канала, менять шлюз Igo
@ 2006-04-10 10:09 ` Dmitriy L. Kruglikov
2006-04-10 10:39 ` Igo
2006-04-10 10:40 ` Gennadiy Redko
2006-04-10 11:09 ` hermit_lists
2 siblings, 1 reply; 6+ messages in thread
From: Dmitriy L. Kruglikov @ 2006-04-10 10:09 UTC (permalink / raw)
To: community
On Mon, 10 Apr 2006 14:02:15 +0400
Igo wrote:
> Привет всем
> будет ли всё работать как я думаю (использоваться один канал и в случие
> проподания его работать другой )
> есть 2 канала (80.80.123.124 и 213.123.124.128) от разных провайдеров
> будут прописаны route
> add -net 80.80.123.1 netmask 255.255.255.255 dev eth0
> add -net 213.123.124.1 netmask 255.255.255.255 dev eth1
> скрипт в кроне будет переодически пинговать 213.123.124.1 и 80.80.123.1
> и менять шлюз в соответсвии с результатами
> route del default
> route add default gw ethX
> будет ли так работать?
>
Правильнее было бы поднять какой-либо протокол маршрутизации ...
Типа RIP-2
--
Best regards,
Dmitriy L. Kruglikov .--.
Dmitriy.Kruglikov@orionagro.com.ua |@_@ |
DKR6-RIPE |!_/ |
ICQ# 13047326 // \ \
XMPP:dkr6@jabber.ru (| | )
/'\_ _/`\
Powered by Linux \___)=(___/
-- Мысль --
- Что может быть лучше гладкой и нежной кожи?
- Только румяная хрустящая корочка.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] 2 канала, менять шлюз
2006-04-10 10:09 ` Dmitriy L. Kruglikov
@ 2006-04-10 10:39 ` Igo
2006-04-10 12:14 ` Dmitriy L. Kruglikov
0 siblings, 1 reply; 6+ messages in thread
From: Igo @ 2006-04-10 10:39 UTC (permalink / raw)
To: ALT Linux Community
но для RIP мне надо с провайдером и не одним договариваться, как я понимаю
>On Mon, 10 Apr 2006 14:02:15 +0400
>Igo wrote:
>
>
>
>>Привет всем
>>будет ли всё работать как я думаю (использоваться один канал и в случие
>>проподания его работать другой )
>>есть 2 канала (80.80.123.124 и 213.123.124.128) от разных провайдеров
>>будут прописаны route
>>add -net 80.80.123.1 netmask 255.255.255.255 dev eth0
>>add -net 213.123.124.1 netmask 255.255.255.255 dev eth1
>>скрипт в кроне будет переодически пинговать 213.123.124.1 и 80.80.123.1
>>и менять шлюз в соответсвии с результатами
>>route del default
>>route add default gw ethX
>>будет ли так работать?
>>
>>
>>
>Правильнее было бы поднять какой-либо протокол маршрутизации ...
>Типа RIP-2
>
>
>--
>Best regards,
> Dmitriy L. Kruglikov .--.
> Dmitriy.Kruglikov@orionagro.com.ua |@_@ |
> DKR6-RIPE |!_/ |
> ICQ# 13047326 // \ \
> XMPP:dkr6@jabber.ru (| | )
> /'\_ _/`\
>Powered by Linux \___)=(___/
>
>-- Мысль --
>- Что может быть лучше гладкой и нежной кожи?
>- Только румяная хрустящая корочка.
>_______________________________________________
>Community mailing list
>Community@lists.altlinux.org
>https://lists.altlinux.org/mailman/listinfo/community
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] 2 канала, менять шлюз
2006-04-10 10:39 ` Igo
@ 2006-04-10 12:14 ` Dmitriy L. Kruglikov
0 siblings, 0 replies; 6+ messages in thread
From: Dmitriy L. Kruglikov @ 2006-04-10 12:14 UTC (permalink / raw)
To: community
On Mon, 10 Apr 2006 14:39:35 +0400
Igo wrote:
> но для RIP мне надо с провайдером и не одним договариваться, как я понимаю
Да ... Придется, если вы выберете этот вариант ...
Мне удавалось :)
Ну а вариант скрипта и передергивания канала всегда останется в
резерве ...
--
Best regards,
Dmitriy L. Kruglikov .--.
Dmitriy.Kruglikov@orionagro.com.ua |@_@ |
DKR6-RIPE |!_/ |
ICQ# 13047326 // \ \
XMPP:dkr6@jabber.ru (| | )
/'\_ _/`\
Powered by Linux \___)=(___/
-- Мысль --
Если кто-то один, это не значит, что тем самым он и одинок, так же, как
если кто-то в толпе, это не значит, что он не одинок.
-- Эпиктет
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] 2 канала, менять шлюз
2006-04-10 10:02 [Comm] 2 канала, менять шлюз Igo
2006-04-10 10:09 ` Dmitriy L. Kruglikov
@ 2006-04-10 10:40 ` Gennadiy Redko
2006-04-10 11:09 ` hermit_lists
2 siblings, 0 replies; 6+ messages in thread
From: Gennadiy Redko @ 2006-04-10 10:40 UTC (permalink / raw)
To: altlinux, ALT Linux Community
Igo пишет:
> Привет всем
> будет ли всё работать как я думаю (использоваться один канал и в случие
> проподания его работать другой )
> есть 2 канала (80.80.123.124 и 213.123.124.128) от разных провайдеров
> будут прописаны route
> add -net 80.80.123.1 netmask 255.255.255.255 dev eth0
> add -net 213.123.124.1 netmask 255.255.255.255 dev eth1
> скрипт в кроне будет переодически пинговать 213.123.124.1 и 80.80.123.1
> и менять шлюз в соответсвии с результатами
> route del default
> route add default gw ethX
> будет ли так работать?
Проще прописать два умолчательных маршрута с разными метриками.
(man route. Ключевое слово - metric)
Другое дело, что это не спасает от пропадания связи между
провайдером и Инетом или какой-то его частью...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] 2 канала, менять шлюз
2006-04-10 10:02 [Comm] 2 канала, менять шлюз Igo
2006-04-10 10:09 ` Dmitriy L. Kruglikov
2006-04-10 10:40 ` Gennadiy Redko
@ 2006-04-10 11:09 ` hermit_lists
2 siblings, 0 replies; 6+ messages in thread
From: hermit_lists @ 2006-04-10 11:09 UTC (permalink / raw)
To: Igo, ALT Linux Community
Здравствуйте, Igo.
I> Привет всем
Добрый день!
I> будет ли всё работать как я думаю (использоваться один канал и в случие
I> проподания его работать другой )
I> есть 2 канала (80.80.123.124 и 213.123.124.128) от разных провайдеров
I> будут прописаны route
I> add -net 80.80.123.1 netmask 255.255.255.255 dev eth0
I> add -net 213.123.124.1 netmask 255.255.255.255 dev eth1
I> скрипт в кроне будет переодически пинговать 213.123.124.1 и 80.80.123.1
I> и менять шлюз в соответсвии с результатами
I> route del default
I> route add default gw ethX
I> будет ли так работать?
будет, но только вот по одному пингу нехорошо дергать канал. Лучше по
состоянию соединения, а в случае невоможности контролировать - то
делать несколько попыток.
у меня были два канала, на которых нельзя было отследить состояние
кроме как пингом... раз в минуту запускался из крона скрипт, который
запускал один пинг до гетевея основного канала.
При непрохождении 3-х пингов - менял дефолтный роутинг.
При появлении пинга на основном - возвращал роутинг обратно.
--
//Александр
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-10 12:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-10 10:02 [Comm] 2 канала, менять шлюз Igo
2006-04-10 10:09 ` Dmitriy L. Kruglikov
2006-04-10 10:39 ` Igo
2006-04-10 12:14 ` Dmitriy L. Kruglikov
2006-04-10 10:40 ` Gennadiy Redko
2006-04-10 11:09 ` hermit_lists
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git