From owner-freebsd-questions@FreeBSD.ORG Mon Dec 13 07:04:12 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 9BEC016A4CE for ; Mon, 13 Dec 2004 07:04:12 +0000 (GMT) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EA4743D45 for ; Mon, 13 Dec 2004 07:04:09 +0000 (GMT) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) iBD7456c047786; Mon, 13 Dec 2004 08:04:05 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.12.10/8.12.10) with ESMTP id iBD740Vd047778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 13 Dec 2004 08:04:00 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.13.1/8.13.1) with ESMTP id iBD73x2c027469; Mon, 13 Dec 2004 08:03:59 +0100 (CET) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.13.1/8.13.1/Submit) id iBD73xAA027468; Mon, 13 Dec 2004 08:03:59 +0100 (CET) (envelope-from jpulz) Date: Mon, 13 Dec 2004 08:03:57 +0100 (CET) From: Joerg Pulz To: goose bla In-Reply-To: <200412121313.iBCDDMfh071011@web7.zoznam.sk> Message-ID: <20041213074945.M12124@hades.admin.frm2> References: <200412121313.iBCDDMfh071011@web7.zoznam.sk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: at mailhost.frm2.tum.de 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 07:04:12 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 12 Dec 2004, 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. > > [stripped] Hi, don't know if i got you roght, but here are my thoughts. if you want to serve more than one ip network over one physical wire you have to define a shared network. here is an example. (remeber, host declarations have to be inside! the subnet they belong to) shared-network MYNETWORK { 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; } } 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 pc2 { hardware ethernet 00:44:44:22:bb:94; fixed-address 10.2.0.10; } } } as far as i can tell, this setups work here for me. i don't know the exact behavior of dhcpd if you declare dynamic ranges in more than one ip subnet. i've only one dynamic range in one! subnet. regards Joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBvT7fSPOsGF+KA+MRAntAAKCVOy85a1hGnjzJPPZZrBHEszQ+kACcCT7x d/2WSZOBLILhENRRV3BnJqc= =v6L+ -----END PGP SIGNATURE-----