From: "Вячеслав Диконов" <sdiconov@mail.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] etcnet i dva IP na fizicheskii interfeis
Date: Mon, 19 Nov 2007 23:30:55 +0300
Message-ID: <1195504255.20789.31.camel@localhost.localdomain> (raw)
In-Reply-To: <4741EC62.9050804@gmail.com>
В Пнд, 19/11/2007 в 22:04 +0200, Andrew Kornilov пишет:
> Хихин Руслан wrote:
> > Здравствуйте Denis Medvedev
> > В сообщении от 19 ноября 2007 Denis Medvedev написал(a):
> > > И я такого же хочу. Чтобы dhcp и static на одном и том же физическом
> > > интерфейсе.
> >
> > Я даже приблизительно вижу как это можно сделать :)
> > Вначале интерфейсу назначить адрес static, поднять сеть, а потом
> > поменять на dhcp-static и перегрузить сеть.
> etcnet умеет:
> case "$BOOTPROTO" in
> static)
> try_static && config_ipv4_routes_rules add
> ;;
> dhcp)
> try_dhcp && config_ipv4_routes_rules add
> ;;
> ipv4ll)
> try_ipv4ll && config_ipv4_routes_rules add
> ;;
> dhcp-static)
> try_dhcp || try_static && config_ipv4_routes_rules add
> ;;
> dhcp-ipv4ll)
> try_dhcp || try_ipv4ll && config_ipv4_routes_rules add
> ;;
> dhcp-ipv4ll-static)
> try_dhcp || try_ipv4ll || try_static && config_ipv4_routes_rules add
> То есть, можно указать в options:
> BOOTPROTO=dhcp-static
> и будет сначала попробован dhcp, потом static метод.
Хочется без тормозного перезапуска сети 2 раза с DHCP и зависимыми PPTP
каналами.
> Попробуйте, должно помочь. Метода "всё, что угодно, а потом static из файла" нет.
> Можно и сделать, в принципе, если Денису объяснить.
Я нашел решение, но оно не слишком интуитивно. При BOOTPROTO=DHCP файл
ipv4address читается и задает второй статический адрес. Остается
добавить маршрут и SNAT для "частных" пакетов.
Однако, я прошу сделать возможными два BOOTPROTO или dhcp+static (для
параллельно существующих адресов). Чтобы далее все автоматом было.
next prev parent reply other threads:[~2007-11-19 20:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-18 22:17 [sisyphus] etcnet и два IP на физический интерфейс Вячеслав Диконов
2007-11-18 22:32 ` Pavlov Konstantin
2007-11-19 9:43 ` Sergey
2007-11-19 19:00 ` [sisyphus] etcnet i dva IP na fizicheskii interfeis Denis Medvedev
2007-11-19 19:32 ` Хихин Руслан
2007-11-19 20:04 ` Andrew Kornilov
2007-11-19 20:22 ` Хихин Руслан
2007-11-19 21:08 ` Andrew Kornilov
2007-11-19 20:30 ` Вячеслав Диконов [this message]
2007-11-19 20:19 ` Sergey
2007-11-19 20:18 ` Вячеслав Диконов
2007-11-19 20:26 ` Хихин Руслан
2007-11-19 20:42 ` Sergey
2007-11-20 7:45 ` Вячеслав Диконов
2007-11-20 12:20 ` Sergey
2007-11-20 14:35 ` Вячеслав Диконов
2007-11-20 14:51 ` Sergey
2007-11-20 15:35 ` Вячеслав Диконов
2007-11-20 17:00 ` Sergey
2007-11-20 6:06 ` Denis Ovsienko
2007-11-19 6:35 ` [sisyphus] etcnet и два IP на физический интерфейс Denis Ovsienko
2007-11-19 18:57 ` Вячеслав Диконов
2007-11-20 5:52 ` Denis Ovsienko
2007-11-20 6:06 ` Хихин Руслан
2007-11-20 8:05 ` Вячеслав Диконов
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=1195504255.20789.31.camel@localhost.localdomain \
--to=sdiconov@mail.ru \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git