From: Aleksei Sinitsyn <a.sinitsin@gmail.com>
To: Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: Re: [Sarlug] Авто статический маршрут при статическом IP
Date: Thu, 5 Apr 2012 13:09:29 +0400
Message-ID: <CAF_a_DPUL-=BhwD7q_WEwtLZVchxfmHjK_SXNO-FYbVQV9vkCg@mail.gmail.com> (raw)
In-Reply-To: <CACREa6DOFrJ4pXto7GSKzSgW6fzvsPNNTCy8JpBuby99tDy_ig@mail.gmail.com>
5 апреля 2012 г. 12:58 пользователь Sicness <sicness@darklogic.ru> написал:
> Здравствуйте, Сообщество.
> Вопрос:
> В /etc/network/interfaces статически прописан IP, netmask, gateway.
> Для полноты картины нужно прописывать еще статический маршрут. Пока
> сделал костыль: скрипт добавления маршрута в /etc/rc.local. При
> перезагрузке работает, а после /etc/init.d/networking restart само
> собой нет. Как сделать правильно, что бы при перезапуске сети
> прописывался дополнительный статический маршрут?
>
Как то так:
http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html
Или так:
http://www.small-admin.net/2009/01/09/setup-static-routing-on-redhat-centos/
--
WBR, sinaps. http://saratov.lug.ru
JID:sinaps@jabber.org gtalk:a.sinitsin
next prev parent reply other threads:[~2012-04-05 9:09 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 ` Яков Попов
2012-04-05 9:03 ` Dmitry Agafonov
2012-04-05 9:05 ` Dmitry Agafonov
2012-04-05 9:09 ` Aleksei Sinitsyn [this message]
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='CAF_a_DPUL-=BhwD7q_WEwtLZVchxfmHjK_SXNO-FYbVQV9vkCg@mail.gmail.com' \
--to=a.sinitsin@gmail.com \
--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