* [Comm] Что за файл /etc/sysconfig/dhcpd ?
@ 2005-05-20 7:56 Ivanov Maxim
2005-05-20 8:11 ` Slava Dubrovskiy
2005-05-20 8:12 ` Ivanov Maxim
0 siblings, 2 replies; 10+ messages in thread
From: Ivanov Maxim @ 2005-05-20 7:56 UTC (permalink / raw)
To: community
Здравствуйте, community.
В /etc/sysconfig/
есть файл dhcpd, в нем единственная строка:
# The following variables are recognized:
DHCPDARGS=
Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
работает только для интерфейса eth1). Где про него посмотреть? В
рассылке не нашел, в документации - тоже. Система - Мастер 2.4
________________
С уважением,
Максим Иванов
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 7:56 [Comm] Что за файл /etc/sysconfig/dhcpd ? Ivanov Maxim
@ 2005-05-20 8:11 ` Slava Dubrovskiy
2005-05-20 8:24 ` Re[2]: " Ivanov Maxim
2005-05-20 8:12 ` Ivanov Maxim
1 sibling, 1 reply; 10+ messages in thread
From: Slava Dubrovskiy @ 2005-05-20 8:11 UTC (permalink / raw)
To: community
Ivanov Maxim пишет:
>В /etc/sysconfig/
>есть файл dhcpd, в нем единственная строка:
># The following variables are recognized:
>DHCPDARGS=
>
>Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
>работает только для интерфейса eth1). Где про него посмотреть? В
>рассылке не нашел, в документации - тоже. Система - Мастер 2.4
>
>
Это используется для передачи аргументов в /etc/init.d/dhcpd
Я думаю, что Вам нужен /etc/dhcpd.conf
man dhcpd.conf
--
С уважением,
Дубровский Вячеслав.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re[2]: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 8:11 ` Slava Dubrovskiy
@ 2005-05-20 8:24 ` Ivanov Maxim
2005-05-20 8:53 ` Slava Dubrovskiy
0 siblings, 1 reply; 10+ messages in thread
From: Ivanov Maxim @ 2005-05-20 8:24 UTC (permalink / raw)
To: Slava Dubrovskiy
Здравствуйте, Slava.
Вы писали 20 мая 2005 г., 12:11:36:
> Ivanov Maxim пишет:
>>В /etc/sysconfig/
>>есть файл dhcpd, в нем единственная строка:
>># The following variables are recognized:
>>DHCPDARGS=
>>
>>Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
>>работает только для интерфейса eth1). Где про него посмотреть? В
>>рассылке не нашел, в документации - тоже. Система - Мастер 2.4
>>
>>
> Это используется для передачи аргументов в /etc/init.d/dhcpd
> Я думаю, что Вам нужен /etc/dhcpd.conf
> man dhcpd.conf
А вот тут (http://www.cpqlinux.com/dhcpd.html) написано что
If more than one network card resides in the DHCP server, it is
recommended to specify which interface(s) the DHCP server will use.
Edit /etc/sysconfig/dhcpd by adding the appropriate interface to the
DHCPDARGS= line. The entry in /etc/sysconfig/dhcpd should appear as
follows:
DHCPDARGS=eth0
The dhcpd server loads without problem after adding this entry.
_______________
С уважением,
Максим Иванов
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 8:24 ` Re[2]: " Ivanov Maxim
@ 2005-05-20 8:53 ` Slava Dubrovskiy
2005-05-20 9:02 ` Re[2]: " Ivanov Maxim
0 siblings, 1 reply; 10+ messages in thread
From: Slava Dubrovskiy @ 2005-05-20 8:53 UTC (permalink / raw)
To: community
Ivanov Maxim пишет:
>>>В /etc/sysconfig/
>>>есть файл dhcpd, в нем единственная строка:
>>># The following variables are recognized:
>>>DHCPDARGS=
>>>
>>>Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
>>>работает только для интерфейса eth1). Где про него посмотреть? В
>>>рассылке не нашел, в документации - тоже. Система - Мастер 2.4
>>>
>>>
>>Это используется для передачи аргументов в /etc/init.d/dhcpd
>>Я думаю, что Вам нужен /etc/dhcpd.conf
>>man dhcpd.conf
>>
>>
>А вот тут (http://www.cpqlinux.com/dhcpd.html) написано что
>
>If more than one network card resides in the DHCP server, it is
>recommended to specify which interface(s) the DHCP server will use.
>Edit /etc/sysconfig/dhcpd by adding the appropriate interface to the
>DHCPDARGS= line. The entry in /etc/sysconfig/dhcpd should appear as
>follows:
>
>DHCPDARGS=eth0
>
>
Как хотите. Насколько я помню, говорили, что dhcpd автоматически слушает
только те интерфейсы, ip которых указаны в subnet.
--
С уважением,
Дубровский Вячеслав.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re[2]: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 8:53 ` Slava Dubrovskiy
@ 2005-05-20 9:02 ` Ivanov Maxim
2005-05-20 9:09 ` Re[3]: " Ivanov Maxim
0 siblings, 1 reply; 10+ messages in thread
From: Ivanov Maxim @ 2005-05-20 9:02 UTC (permalink / raw)
To: Slava Dubrovskiy
Здравствуйте, Slava.
Вы писали 20 мая 2005 г., 12:53:41:
> Ivanov Maxim пишет:
>>>>В /etc/sysconfig/
>>>>есть файл dhcpd, в нем единственная строка:
>>>># The following variables are recognized:
>>>>DHCPDARGS=
>>>>
>>>>Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
>>>>работает только для интерфейса eth1). Где про него посмотреть? В
>>>>рассылке не нашел, в документации - тоже. Система - Мастер 2.4
>>>>
>>>>
>>>Это используется для передачи аргументов в /etc/init.d/dhcpd
>>>Я думаю, что Вам нужен /etc/dhcpd.conf
>>>man dhcpd.conf
>>>
>>>
>>А вот тут (http://www.cpqlinux.com/dhcpd.html) написано что
>>
>>If more than one network card resides in the DHCP server, it is
>>recommended to specify which interface(s) the DHCP server will use.
>>Edit /etc/sysconfig/dhcpd by adding the appropriate interface to the
>>DHCPDARGS= line. The entry in /etc/sysconfig/dhcpd should appear as
>>follows:
>>
>>DHCPDARGS=eth0
>>
>>
> Как хотите. Насколько я помню, говорили, что dhcpd автоматически слушает
> только те интерфейсы, ip которых указаны в subnet.
Вы совершенно правы. Именно об этом и говорится в
/var/log/daemons/errors:
May 20 12:41:28 server dhcpd: No subnet declaration for eth0 (172.19.118.100).
May 20 12:41:28 server dhcpd: ** Ignoring requests on eth0. If this is not what
May 20 12:41:28 server dhcpd: you want, please write a subnet declaration
May 20 12:41:28 server dhcpd: in your dhcpd.conf file for the network segment
May 20 12:41:28 server dhcpd: to which interface eth0 is attached. **
Хотел изъять данное сообщение.
_______________
С уважением,
Максим Иванов
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re[3]: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 9:02 ` Re[2]: " Ivanov Maxim
@ 2005-05-20 9:09 ` Ivanov Maxim
0 siblings, 0 replies; 10+ messages in thread
From: Ivanov Maxim @ 2005-05-20 9:09 UTC (permalink / raw)
To: Ivanov Maxim
И опять же:
в файле /etc/rc.d/init.d/dhcpd
легко найти такие строки:
# Source networking configuration.
SourceIfNotEmpty /etc/sysconfig/network
PIDFILE=/var/run/dhcpd.pid
CONFFILE=/etc/dhcp/dhcpd.conf
LOCKFILE=/var/lock/subsys/dhcpd
# Source config.
SourceIfNotEmpty /etc/sysconfig/dhcpd
RETVAL=0
start()
{
is_yes "$NETWORKING" && [ -s "$CONFFILE" ] || return 0
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user dhcpd -- dhcpd $DHCPDARGS
RETVAL=$?
return $RETVAL
}
Это про что?
_______________
С уважением,
Максим Иванов
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 7:56 [Comm] Что за файл /etc/sysconfig/dhcpd ? Ivanov Maxim
2005-05-20 8:11 ` Slava Dubrovskiy
@ 2005-05-20 8:12 ` Ivanov Maxim
2005-05-20 8:44 ` Andriy Dobrovol's'kii
1 sibling, 1 reply; 10+ messages in thread
From: Ivanov Maxim @ 2005-05-20 8:12 UTC (permalink / raw)
To: Ivanov Maxim
Здравствуйте, Ivanov.
Вы писали 20 мая 2005 г., 11:56:34:
> Здравствуйте, community.
> В /etc/sysconfig/
> есть файл dhcpd, в нем единственная строка:
> # The following variables are recognized:
> DHCPDARGS=
> Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
> работает только для интерфейса eth1). Где про него посмотреть? В
> рассылке не нашел, в документации - тоже. Система - Мастер 2.4
Вот тут нашел, это не оно, часом?
http://www.marine.csiro.au/~sakov/cluster/cluster/etc-sysconfig-dhcpd
_______________
С уважением,
Максим Иванов
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 8:12 ` Ivanov Maxim
@ 2005-05-20 8:44 ` Andriy Dobrovol's'kii
2005-05-20 8:50 ` Re[2]: " Ivanov Maxim
0 siblings, 1 reply; 10+ messages in thread
From: Andriy Dobrovol's'kii @ 2005-05-20 8:44 UTC (permalink / raw)
To: community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ivanov Maxim wrote:
| Здравствуйте, Ivanov.
|
|>Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
|>работает только для интерфейса eth1). Где про него посмотреть? В
|>рассылке не нашел, в документации - тоже. Система - Мастер 2.4
|
| Вот тут нашел, это не оно, часом?
| http://www.marine.csiro.au/~sakov/cluster/cluster/etc-sysconfig-dhcpd
|
|
Вы бы лучше четко задачу сформулировали. Может оно, а может и
никаким боком...
- --
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 525-7824 Department of Gas Electronics
Fax: (380-44) 525-2329 Institute of Physics of NASU
*********************************************************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCjaN0Yy1tb7+AynYRArtTAKCKlp8FZuL6+6Juw7wOOr/0bDLbLACgqLZo
V0avKMujh2xgy1ymTpefSXU=
=AG9q
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re[2]: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 8:44 ` Andriy Dobrovol's'kii
@ 2005-05-20 8:50 ` Ivanov Maxim
2005-05-20 9:06 ` Slava Dubrovskiy
0 siblings, 1 reply; 10+ messages in thread
From: Ivanov Maxim @ 2005-05-20 8:50 UTC (permalink / raw)
To: Andriy Dobrovol's'kii
Здравствуйте, Andriy.
Вы писали 20 мая 2005 г., 12:44:37:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Ivanov Maxim wrote:
> | Здравствуйте, Ivanov.
> |
|>>Сильно подозреваю, что это то, что мне надо (прописать, что DHCPD
|>>работает только для интерфейса eth1). Где про него посмотреть? В
|>>рассылке не нашел, в документации - тоже. Система - Мастер 2.4
> |
> | Вот тут нашел, это не оно, часом?
> |
> http://www.marine.csiro.au/~sakov/cluster/cluster/etc-sysconfig-dhcpd
> |
> |
> Вы бы лучше четко задачу сформулировали. Может оно, а может и
> никаким боком...
Да задача проста и тривиальна: при запуске dhcpd в логах такая ругань:
May 20 12:41:28 server dhcpd: No subnet declaration for eth0 (172.19.118.100).
May 20 12:41:28 server dhcpd: ** Ignoring requests on eth0. If this is not what
May 20 12:41:28 server dhcpd: you want, please write a subnet declaration
May 20 12:41:28 server dhcpd: in your dhcpd.conf file for the network segment
May 20 12:41:28 server dhcpd: to which interface eth0 is attached. **
Дальше все работает, адреса раздаются, машины их получают, все в
шоколаде.
Просто мыслю, как избавится от этой ругани: надо явно сказать dhcp,
какой конкретно интерфейс слушать, а именно - eth1.
_______________
С уважением,
Максим Иванов
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Comm] Что за файл /etc/sysconfig/dhcpd ?
2005-05-20 8:50 ` Re[2]: " Ivanov Maxim
@ 2005-05-20 9:06 ` Slava Dubrovskiy
0 siblings, 0 replies; 10+ messages in thread
From: Slava Dubrovskiy @ 2005-05-20 9:06 UTC (permalink / raw)
To: community
Ivanov Maxim пишет:
>Да задача проста и тривиальна: при запуске dhcpd в логах такая ругань:
>
>May 20 12:41:28 server dhcpd: No subnet declaration for eth0 (172.19.118.100).
>May 20 12:41:28 server dhcpd: ** Ignoring requests on eth0. If this is not what
>May 20 12:41:28 server dhcpd: you want, please write a subnet declaration
>May 20 12:41:28 server dhcpd: in your dhcpd.conf file for the network segment
>May 20 12:41:28 server dhcpd: to which interface eth0 is attached. **
>
>Дальше все работает, адреса раздаются, машины их получают, все в
>шоколаде.
>Просто мыслю, как избавится от этой ругани: надо явно сказать dhcp,
>какой конкретно интерфейс слушать, а именно - eth1.
>
"Не лезь в машину, не мешай аппарату работать" (С) :-)
Ведь работет же.
--
С уважением,
Дубровский Вячеслав.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-05-20 9:09 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-20 7:56 [Comm] Что за файл /etc/sysconfig/dhcpd ? Ivanov Maxim
2005-05-20 8:11 ` Slava Dubrovskiy
2005-05-20 8:24 ` Re[2]: " Ivanov Maxim
2005-05-20 8:53 ` Slava Dubrovskiy
2005-05-20 9:02 ` Re[2]: " Ivanov Maxim
2005-05-20 9:09 ` Re[3]: " Ivanov Maxim
2005-05-20 8:12 ` Ivanov Maxim
2005-05-20 8:44 ` Andriy Dobrovol's'kii
2005-05-20 8:50 ` Re[2]: " Ivanov Maxim
2005-05-20 9:06 ` Slava Dubrovskiy
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git