ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Nikolay <sn_kirovograd_sub@rambler.ru>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] Маршрут через 2-а канала.
Date: Mon, 6 Jun 2011 09:59:31 +0300
Message-ID: <201106060959.32029.sn_kirovograd_sub@rambler.ru> (raw)

Доброго дня.
Не подскажет ли уважаемый народ как правильно в /etc/net/ прописать маршрут 
через 2-а канала к некой под сети.
Есть правило вида 
ip route add 192.168.32.0/24  nexthop via $P1 dev $IF1 weight 1 \
                       nexthop via $P2 dev $IF2 weight 1

Есть $IF1
 ipv4route 
192.168.32.0/24 via 10.0.1.2 table wimax
192.168.32.0/24 via 10.0.1.2
ipv4rule
to 192.168.32.0/24 table wimax prio 220

Есть $IF2
 ipv4route 
192.168.32.0/24 via 10.0.0.2 table tunnel
192.168.32.0/24 via 10.0.0.2
ipv4rule
to 192.168.32.0/24 table tunnel prio 210

Хочется чтобы при пропадании одного из них автоматом работал другой с низшим 
приоритетом.
Но не совсем понятно как это реализовать посредством etc/net

С, уважением, Николай

             reply	other threads:[~2011-06-06  6:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06  6:59 Nikolay [this message]
2011-06-06  7:28 ` Patlasov YuriI
2011-06-06  7:46   ` Nikolay

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=201106060959.32029.sn_kirovograd_sub@rambler.ru \
    --to=sn_kirovograd_sub@rambler.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