From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 02:13:46 2014 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B7C32FFB for ; Sat, 2 Aug 2014 02:13:46 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A34C2792 for ; Sat, 2 Aug 2014 02:13:45 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s722DhIS084914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 1 Aug 2014 20:13:43 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s722DgcA084911; Fri, 1 Aug 2014 20:13:43 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 1 Aug 2014 20:13:42 -0600 (MDT) From: Warren Block To: al plant Subject: Re: switch to DCHP from static ip In-Reply-To: <53DC43AA.8080509@hdk5.net> Message-ID: References: <53DC43AA.8080509@hdk5.net> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 01 Aug 2014 20:13:43 -0600 (MDT) Cc: "freebsd-questions@FreeBSD.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2014 02:13:46 -0000 On Fri, 1 Aug 2014, al plant wrote: > Aloha, > > The Telcom here in Honolulu has brought in FiberOptic lines in my > neighborhood since the old copper was really bad speed. Cost was reduced and > speed is now excellent. > > I need a how-to for moving an APSfilter print server on my static IP lan to > working with a DHCP network. The Telcom installed a PACE wireless and told me > I can add as many computers as I need using a Netgear Gigabit switch. > > I have installed one desktop on the switch and it has worked fine so far. > > I never ised DHCP befor so any help would be appreciated. > > /etc/rc.conf > ------------- > lpd_enable="YES" > FreeBSD 8.* hostname="mano.intra.net" > ifconfig-re0="192.168.1.50 netmask 255.255.255.0" > > -------------- > For desktop I used > > ifconfig-re0="DHCP" to replace IP address. I seems to find the network fine. > Now I cant find any information about putting a print server on the lan. Figure what netblock is used by DHCP, probably the same one already being used (192.168.1.1/24), figure out what range of those addresses are not handed out by the DHCP server, and use one of those addresses for the print server. For example, if the DHCP server is providing addresses from 192.168.1.100-150, give the print server a static address of, say, 192.168.1.200. Technically, you can probably continue to use the same address. A decent DHCP server will ping an address before handing it out, to make sure that address is not already being used. In practice, the firmware in routers can be terrible and should be replaced, if possible, with third-party firmware for sanity and safety. Expert level for bonus points: set the DHCP server to hand out a fixed address to the print server based on MAC address. The router might have a web interface to set this up. Summary: continue to use a static IP address for the print server. Just make sure that address is inside the same netblock as the DHCP addresses, but preferably outside the range of dynamic addresses.