From: Mikhail Efremov <sem@altlinux.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] DHCPcd and BEELINE
Date: Wed, 23 Dec 2009 21:27:22 +0300
Message-ID: <20091223212722.52f430a8@sem.localdomain> (raw)
In-Reply-To: <875649628.20091223194038@Bk.Ru>
On Wed, 23 Dec 2009 19:40:38 +0300 MisHel64 wrote:
> > Просто в консоли введите команду
> > dhcpcd -T <интерфейс>.
> разница вот в этом:
> new_static_routes='85.21.78.93 10.50.4.1 85.21.79.170 10.50.4.1
> 85.21.79.38 10.50.4.1 194.67.1.203 10.50.4.1 195.14.50.16 10.50.4.1
> 217.118.84.167 10.50.4.1 217.118.84.249 10.50.4.1'
Странно, classless_static_routes тоже не должно быть. У меня dhcpcd
исправно не получает те опции, которые не запрашивались.
А если указать только 121:
dhcpcd -T --nooption=121 <интерфейс>
все равно classless_static_routes присутствуют?
> добавляю в ФАЙЛ options из каталога интерфейса
> DHCP_ARGS="-G -O 33,121,249"
Лучше DHCP_ARGS="-G -O 33 -O 121 -O 249", т.е каждую опцию отдельно,
иначе etcnet может заменить запятые на пробелы и строка опций будет не
правильной.
> Получается, DHCPcd игнорирует команду не использовать
> 121 атрибут (classless_static_routes), и не не хочет
> использовать атрибуты routers и static_routes.
>
> На счет routers и static_routes вопрос:
>
>
> 1) DHCPcd просто не хочет их использовать;
> 2) DHCPcd не обязанн их использовать;
> 3) Эти атрибуты описаны криво, по этому DHCPcd не понимает, в отличии
Маршрут по умолчанию уже есть, поэтому dhcpcd не будет его
устанавливать. Можно сначала его удалить в ifup-pre, например.
А вот со static_routes действительно похоже проблема. Подозреваю,
dhcpcd не понимает, что у них префикс 32. Почитаю код и RFC, тогда
скажу больше.
> > В любом случае, покажите вывод команд, приведенных выше.
>
> На всякий случай, я все правильно делаю?
Насколько я могу судить - да. Вот только мне не понятно почему -O 121
не срабатывает.
--
WBR, Mikhail Efremov
next prev parent reply other threads:[~2009-12-23 18:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-21 19:53 MisHel64
2009-12-22 14:14 ` Mikhail Efremov
2009-12-22 14:58 ` MisHel64
2009-12-22 16:06 ` Mikhail Efremov
2009-12-23 12:34 ` MisHel64
2009-12-23 13:53 ` Mikhail Efremov
2009-12-23 16:40 ` MisHel64
2009-12-23 18:27 ` Mikhail Efremov [this message]
2009-12-23 18:37 ` MisHel64
2009-12-24 15:59 ` Mikhail Efremov
2009-12-23 13:44 ` Maks Re
2009-12-23 15:15 ` MisHel64
2009-12-23 16:05 ` Maks Re
2009-12-23 16:49 ` Mikhail Efremov
2009-12-23 17:11 ` MisHel64
2009-12-23 17:00 ` [Sysadmins] BEELINE (ex corbina) MisHel64
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=20091223212722.52f430a8@sem.localdomain \
--to=sem@altlinux.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