From owner-freebsd-questions@FreeBSD.ORG Sun Dec 12 13:14:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9910116A4CE for ; Sun, 12 Dec 2004 13:14:08 +0000 (GMT) Received: from web7.zoznam.sk (mail.zoznam.sk [62.65.179.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFE6B43D49 for ; Sun, 12 Dec 2004 13:14:07 +0000 (GMT) (envelope-from goosefreebsd@zoznam.sk) Received: from localhost.localdomain (localhost [127.0.0.1]) by web7.zoznam.sk (8.13.1/8.13.1) with ESMTP id iBCDDMfh071011 for ; Sun, 12 Dec 2004 14:13:22 +0100 (CET) (envelope-from goosefreebsd@zoznam.sk) Message-Id: <200412121313.iBCDDMfh071011@web7.zoznam.sk> Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Date: Sun, 12 Dec 2004 13:13:22 UT From: "goose bla" To: freebsd-questions@freebsd.org X-Mailer: Zoznam Mailer v.1.2 X-Www-Freemail-Ip: 217.73.19.125 Subject: DHCP and 2 subnets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 13:14:08 -0000 hello, I have router with inet and allias. 10.1.0.0/24 10.2.0.0/24. i want allot to pc(client) their IP by their MAC adress. but it's going=20 only with one subnet. i can allot IP only to one subnet. this is running=20 subnet 10.1.0.0 netmask 255.255.255.0 { range 10.1.0.31 10.1.0.60; default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option domain-name "bla.org"; option domain-name-servers 222.222.222.22; option routers 10.1.0.1; } host pc1 { hardware ethernet 00:33:11:22:bb:94; fixed-address 10.1.0.10; } but i need somethink like this: subnet 10.1.0.0 netmask 255.255.255.0 { range 10.1.0.31 10.1.0.60; default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option domain-name "bla.org"; option domain-name-servers 222.222.222.22; option routers 10.1.0.1; } subnet2 10.2.0.0 netmask 255.255.255.0 { range 10.2.0.31 10.2.0.60; default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option domain-name "bla.org"; option domain-name-servers 222.222.222.22; option routers 10.2.0.1; host pc1 { hardware ethernet 00:33:11:22:bb:94; fixed-address 10.1.0.10; } host pc2 { hardware ethernet 00:44:44:22:bb:94; fixed-address 10.2.0.10; }