From owner-freebsd-net@FreeBSD.ORG Wed Sep 26 19:15:39 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC2BF106566B for ; Wed, 26 Sep 2012 19:15:39 +0000 (UTC) (envelope-from universite@ukr.net) Received: from ffe16.ukr.net (ffe16.ukr.net [195.214.192.51]) by mx1.freebsd.org (Postfix) with ESMTP id 0C9D28FC18 for ; Wed, 26 Sep 2012 19:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Date:Message-Id:From:To:References:In-Reply-To:Subject:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=NAxvtLGe8K94G8RVuWXAEMd69k/WsxbWpINd37N6/uk=; b=JHXM+VUq/sud/T1a056fwqz5EKy7gaw2kiyBisCh4dX3pAG0ckdd1PL1R5gKGzH3849le1vHqfXAl6FSE6t1q463zMcEJJMnMP38ZVTSRJTKQ/HwxmJ8mP3RDeV77D4as4cGcWAYxWRBYAJyw2e9w3aEh/7xIQbJrz/WpRmoer0=; Received: from mail by ffe16.ukr.net with local ID 1TGwpI-000NUp-8H for freebsd-net@freebsd.org; Wed, 26 Sep 2012 21:59:16 +0300 MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: binary Content-Type: text/plain; charset="windows-1251" In-Reply-To: References: To: freebsd-net@freebsd.org From: =?WINDOWS-1251?B?wuvg5Ojx6+DiIM/w7uTg7Q==?= X-Mailer: freemail.ukr.net 4.0 X-Originating-Ip: [79.140.11.10] Message-Id: <89244.1348685956.1887024400859660288@ffe16.ukr.net> X-Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Date: Wed, 26 Sep 2012 21:59:16 +0300 Subject: Re: DHCP server with a group of mac address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 19:15:39 -0000 --- Исходное сообщение --- От кого: "ded1@MyBSD.org.my" Кому: freebsd-net@freebsd.org Дата: 26 сентября 2012, 21:22:31 Тема: DHCP server with a group of mac address > Hi, > > i'm installing isc-dhcp42-server and run in the network for like 1000 node. i > have like 1000 mac address (servers, PC's, printers, phones, etc) which i put > in the text file. > > FYI, > > Any mac address (which is in the text file) who plug into the network will get > the ip address based on the vlan configured on the switch. Any mac address > who's NOT in the text file, will not getting any IP and they will not authorize > to be in our network. > > Is this possible to do with isc-dhcp ? I try to search around these topic but > not much help. > > Anyone have any tips / shed me some light ? > Reset the MAC Address table. Then read from a file line IP-MAC. All unoccupied IP score MAC address 00:00:00:00:00:00 Well, on the switch is enabled, if there is, the option "Port security" arp -d -a > /dev/null arp -f /etc/ethers > /dev/null echo 'Static ARP-table is loaded' $cat /etc/ethers 10.0.0.62 00:26:18:b8:d0:30 #Serg 10.0.0.64 D8:5D:4C:80:B1:4C #Valya ... 10.0.0.253 00:00:00:00:00:00 10.0.0.254 00:00:00:00:00:00 -- Vladislav V. Prodan System & Network Administrator http://support.od.ua +380 67 4584408, +380 99 4060508 VVP88-RIPE