ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: hermit_lists@home.tula.net
To: Igo <altlinux@aaanet.ru>,
	ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] 2 канала, менять шлюз
Date: Mon, 10 Apr 2006 15:09:12 +0400
Message-ID: <1377474399.20060410150912@rospechat.tula.net> (raw)
In-Reply-To: <443A2D27.8050503@aaanet.ru>


Здравствуйте, 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-х пингов - менял дефолтный роутинг.
При появлении пинга на основном - возвращал роутинг обратно.


-- 
//Александр



      parent reply	other threads:[~2006-04-10 11:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-10 10:02 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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377474399.20060410150912@rospechat.tula.net \
    --to=hermit_lists@home.tula.net \
    --cc=altlinux@aaanet.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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