From: Vladislav Bondarenko <admin@sumy.in.ua>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] падение линка и роутинг
Date: Thu, 19 Jul 2007 14:35:46 +0300
Message-ID: <20070719113546.GK21478@sumy.in.ua> (raw)
In-Reply-To: <469F49EE.2060308@altlinux.ru>
Здравствуйте!
Thu, Jul 19, 2007 at 03:24:30PM +0400, stalker wrote:
> Есть сервер га котором крутится 7 редхат (сервер не мой..но разрулить
> надо мне).
> У севрера 2 линка - 1 по pppoe
> 2 - просто эзернет.
> Задача - чтобы при падании линка по pppoe (допустим оптику ктото
> обрезал) чтобы роутинг по деофлту перекидывался на 2 линк. Как проще
> всего такое сделать?
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
либо вариант с зеброй.
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
--
WBR Vladislav Bondarenko
VB79-RIPN
VB79-MNT-RIPN
next prev parent reply other threads:[~2007-07-19 11:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-19 11:24 Anton Gorlov
2007-07-19 11:35 ` Vladislav Bondarenko [this message]
2007-07-19 11:49 ` Vladislav Bondarenko
2007-08-03 10:07 ` Igo
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=20070719113546.GK21478@sumy.in.ua \
--to=admin@sumy.in.ua \
--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