From owner-freebsd-questions@FreeBSD.ORG Fri May 9 10:53:43 2003 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 6C7B037B401 for ; Fri, 9 May 2003 10:53:43 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 613F643FBD for ; Fri, 9 May 2003 10:53:42 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.6p2/8.12.6) with ESMTP id h49Hq3EJ042886; Fri, 9 May 2003 12:52:03 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)h49Hpxhh042882; Fri, 9 May 2003 12:52:03 -0500 (CDT) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Fri, 9 May 2003 12:51:59 -0500 (CDT) From: Eduardo Viruena Silva To: Ronald Weinrich In-Reply-To: <3EBBF9AE.11268.19DEC66@localhost> Message-ID: <20030509123418.L41420@Gina.esfm.ipn.mx> References: <3EBBF03C.24811.17909CC@localhost> <3EBBF9AE.11268.19DEC66@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: dhcp 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: Fri, 09 May 2003 17:53:43 -0000 On Fri, 9 May 2003, Ronald Weinrich wrote: --- I cut this part. --- > ok that's it every user gets a 192.xxx...... > look at my topolgy > > > INTERNET ip xx.xx.xx.xx of my provider > | > | > ------------------- ip xx.xx.xx.xx outside of my router > | | > | MY ROUTER| > | | > -------------------- ip 213.47.28.161 > | > | > ----------------------------------- > | switch 2 | > ----------------------------------- > | > | > ------------------------- ed0 213.47.28.166 > | Freebsd-box | > | Firewall | > | ipfilter ipnat | > -------------------------- ep0 192.168.1.1 > | > | > ----------------------------------- > | switch 1 | > ----------------------------------- > | | | ^ > ^ ^ ^ | > ----------------- > | | > | DHCP | > | | > ------------------ > > > hier I like to install the DHCP Box with 1nic so that every user who > connects to the switch 1 will get a ip from 192.168.0.2 - 192.168.0.50 > you mean, a new box inside your network acting as dhcpd server? My topology is equal to yours. Your FreeBSD box --the firewall above-- can be used as DHCP server. You don't need another computer doing the job inside your network. Perhaps this can help you: ---------/usr/local/etc/dhcpd.conf----------- ddns-update-style none; subnet 192.168.1.0 netmask 255.255.255.0 { option domain-name-servers your_name_server_ip; option domain-name "your_domain_name"; range 192.168.1.2 192.168.1.50; option routers 192.168.1.1; option broadcast-address 192.168.1.255; default-lease-time 600; max-lease-time 7200; } --------------------------------------------- just change your_name_server_ip and your_domain_name, accordingly. Eduardo. -- 2B | ~ 2B == ? Hamlet