From owner-freebsd-questions@FreeBSD.ORG Mon Dec 13 03:44:37 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 1641516A4CE for ; Mon, 13 Dec 2004 03:44:37 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA23B43D46 for ; Mon, 13 Dec 2004 03:44:36 +0000 (GMT) (envelope-from moliveri@gmail.com) Received: by rproxy.gmail.com with SMTP id z35so607035rne for ; Sun, 12 Dec 2004 19:44:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=J7SBvunh9RPXqS9QjqazZezQJX6Ws6+P9oZ6dzHWgLM7+H+Igedj6VAxKLSW2rA34WNiF3Xkhv7pO5v5tXKryGjz7TzFpEIruM7ZaKChZ2KG7Ep6SOaaU5FXROqivuvd5J/K0q8EAyrcNmanFaWIgM6iQeFdOXX/V/pz8Anmlgg= Received: by 10.38.75.31 with SMTP id x31mr650974rna; Sun, 12 Dec 2004 19:44:33 -0800 (PST) Received: by 10.38.96.35 with HTTP; Sun, 12 Dec 2004 19:44:32 -0800 (PST) Message-ID: <1e58dbf604121219447cd741c6@mail.gmail.com> Date: Sun, 12 Dec 2004 21:44:32 -0600 From: Mike Oliveri To: goose bla In-Reply-To: <200412121313.iBCDDMfh071011@web7.zoznam.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200412121313.iBCDDMfh071011@web7.zoznam.sk> cc: freebsd-questions@freebsd.org Subject: Re: DHCP and 2 subnets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mike Oliveri List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 03:44:37 -0000 I assume you have two different interfaces on the box, one for each box? Judging by the router addresses, these would be 10.1.0.1 and 10.2.0.1. If the hardware-reserved hosts are connected to the appropriate interface, I would guess the second would be working. Otherwise, can you put the host declarations in with the subnet definitions? It's been a while since I've read through man dhcpd, so you might want to take a look at it to be sure. Take care, Mike On Sun, 12 Dec 2004 13:13:22 UT, goose bla wrote: > 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 > only with one subnet. i can allot IP only to one subnet. > > this is running > > 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; > } > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >