From: "Коротков Георгий" <george@eor.samara.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] dhcp раздача IP только известным MAC
Date: Wed, 08 Jul 2009 18:13:42 +0500
Message-ID: <4A549B86.4080508@eor.samara.ru> (raw)
In-Reply-To: <1933566668.20090706172710@Bk.Ru>
>
>> как сделать чтобы сервер dhcp обслуживал только определенные MAC адреса
>> без жесткой привязки MAC - IP
>>
>
> А если определить хост, указать ему мак, но не присваивать ип,
> а дальше через пул для известных.
> Не работает?
>
>
работает! спсб за наводку, почему я сразу так не начал делать :)
вот рабочий конфиг
в пуле из 2х адресов выдается первый свободный
для 3х известных MAC
если пул занят (фактически или по времени lease) - третьему известному
"обломись", всем остальным "обломись" и подавно
option domain-name "mygoup";
option domain-name-servers 192.168.0.1;
option routers 192.168.0.2;
ddns-update-style none;
default-lease-time 14400;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.21;
deny unknown-clients;
default-lease-time 14400;
max-lease-time 172800;
host buk1 {
hardware ethernet 00:1C:25:A2:C3:05;
}
host buk2 {
hardware ethernet 00:1B:38:12:30:92;
}
host buk3 {
hardware ethernet 00:24:8c:05:9c:62;
}
}
Единственно - напрягает копипаст конструкции host
Никак нельзя считать MAC просто из текстового файла?
next prev parent reply other threads:[~2009-07-08 13:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 7:37 Коротков Георгий
2009-07-06 10:24 ` Maxim Tyurin
2009-07-06 11:03 ` Коротков Георгий
2009-07-06 11:36 ` Maxim Tyurin
2009-07-06 14:24 ` Коротков Георгий
2009-07-06 14:52 ` Maxim Tyurin
2009-07-07 13:51 ` Olvin
2009-07-07 16:05 ` Коротков Георгий
2009-07-08 7:20 ` Olvin
2009-07-08 7:39 ` Dmitriy Kruglikov
2009-07-24 19:47 ` Michael Shigorin
2009-07-06 13:27 ` [Sysadmins] dhcp ÒÁÚÄÁÞÁ IP ÔÏÌØËÏ ÉÚ×ÅÓÔÎÙÍ MAC MisHel64
2009-07-08 13:13 ` Коротков Георгий [this message]
2009-07-12 18:55 ` [Sysadmins] dhcp раздача IP только известным MAC George V. Kouryachy
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=4A549B86.4080508@eor.samara.ru \
--to=george@eor.samara.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