ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Alexei V. Mezin" <alexei_vm@ints.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] Роутинг через 2 канала
Date: Wed, 26 Dec 2007 12:11:25 +0300
Message-ID: <47721ABD.8000008@ints.ru> (raw)

Традиционный (баянистый) вопрос:

два канала, один через сетевуху со статическим адресом и гейтом 
(быстрый), второй через сетевуху с кабельным модемом и DHCP (медленный). 
Хочется, чтоб по умолчанию все шло через быстрый канал, а при его 
падении переключалось на медленный. Нашел тут 
http://lists.altlinux.org/pipermail/sysadmins/2007-July/010784.html 
совет сделать

"
ip r a 0/0 via gw1 metric 5 dev ppp0
ip r a 0/0 via gw2 metric 20 dev eth0

когда проекспайрится арп первого шлюза дефолт развернётся во второй шлюз.

либо более красиво:

ip r a default scope global nexthop via gw1 dev ppp0 weight 2 nexthop 
via gw2 dev eth0 weight 1
"

Подскажите, как это прописать в настройки etcnet. И как быть с тем, что 
gw2 получается от DHCP динамически.


             reply	other threads:[~2007-12-26  9:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-26  9:11 Alexei V. Mezin [this message]
2007-12-26 17:49 ` Maxim Tyurin
2007-12-27  6:03   ` Sergey
2007-12-27  9:11     ` Alexei V. Mezin
2007-12-28 10:26       ` Gennadiy Redko
2007-12-28 10:36         ` Gennadiy Redko
2007-12-29 14:21         ` Alexei V. Mezin
2007-12-29 15:17           ` Gennadiy Redko
2007-12-30 15:24             ` Sergey
2007-12-29 15:40           ` Dmitry Lebkov
2007-12-29 16:15             ` Dmitry Lebkov
2007-12-29 16:33               ` Alexei V. Mezin
2007-12-30 15:26                 ` Sergey
2007-12-30 15:30             ` Sergey

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=47721ABD.8000008@ints.ru \
    --to=alexei_vm@ints.ru \
    --cc=alex783@hotbox.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git