From: "Яков Попов" <j.a.popov@mail.ru>
To: Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: Re: [Sarlug] Авто статический маршрут при статическом IP
Date: Thu, 05 Apr 2012 13:03:28 +0400
Message-ID: <4F7D5FE0.1010906@mail.ru> (raw)
In-Reply-To: <CACREa6DOFrJ4pXto7GSKzSgW6fzvsPNNTCy8JpBuby99tDy_ig@mail.gmail.com>
Какая именно система?
В Ubuntu, скажем, можно наделать скриптов и разместить их в
/etc/network/if-up.d (запуск при поднятии интерфейса)
/etc/network/if-post-down.d (запуск после отключения интерфейса)
Тогда при любом изменении интерфейсов будут запускаться ваши скрипты (я
обычно так делаю файрвол)
05.04.2012 12:58, Sicness написал:
> Здравствуйте, Сообщество.
> Вопрос:
> В /etc/network/interfaces статически прописан IP, netmask, gateway.
> Для полноты картины нужно прописывать еще статический маршрут. Пока
> сделал костыль: скрипт добавления маршрута в /etc/rc.local. При
> перезагрузке работает, а после /etc/init.d/networking restart само
> собой нет. Как сделать правильно, что бы при перезапуске сети
> прописывался дополнительный статический маршрут?
>
> За ранее спасибо.
> _______________________________________________
> Sarlug mailing list
> Sarlug@lists.lug.ru
> https://lists.lug.ru/mailman/listinfo/sarlug
next prev parent reply other threads:[~2012-04-05 9:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 8:58 Sicness
2012-04-05 9:03 ` Яков Попов [this message]
2012-04-05 9:03 ` Dmitry Agafonov
2012-04-05 9:05 ` Dmitry Agafonov
2012-04-05 9:09 ` Aleksei Sinitsyn
2012-04-06 4:06 ` Sicness
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=4F7D5FE0.1010906@mail.ru \
--to=j.a.popov@mail.ru \
--cc=sarlug@lists.lug.ru \
/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
Saratov Linux User Group
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/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 sarlug sarlug/ http://lore.altlinux.org/sarlug \
sarlug@lists.lug.ru sarlug@lug.ru
public-inbox-index sarlug
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sarlug
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git