From owner-freebsd-questions@FreeBSD.ORG Sat Nov 11 03:34:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5C2E016A403 for ; Sat, 11 Nov 2006 03:34:48 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from zeus.dfwlp.com (zeus.dfwlp.com [208.11.134.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F87243D6D for ; Sat, 11 Nov 2006 03:34:27 +0000 (GMT) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by zeus.dfwlp.com (8.13.6/8.13.6) with ESMTP id kAB3YET8045298 for ; Fri, 10 Nov 2006 21:34:15 -0600 (CST) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Fri, 10 Nov 2006 21:34:13 -0600 User-Agent: KMail/1.9.4 References: <720B687A-66B6-497A-9F16-9D01B7B1441A@lafn.org> In-Reply-To: <720B687A-66B6-497A-9F16-9D01B7B1441A@lafn.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611102134.14061.freebsd@dfwlp.com> X-Spam-Status: No, score=-1.4 required=3.6 tests=ALL_TRUSTED autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on zeus.dfwlp.com Subject: Re: Network Setup Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2006 03:34:48 -0000 On Friday 10 November 2006 19:17, Doug Hardie wrote: > I have a bit of an unusual network setup situation. I have a machine > that is only used to store backups. It gets moved around to > different locations occasionally so it has to be able to live on a > 192.168.1.x or a 10.0.1.x network without reconfiguration. I also > need a fixed last address byte so I can connect to it remotely. I > initially set it up with DHCP and then used an alias for the .250 > address on both networks. That worked, but caused problems for the > local network in one location. The particular user couldn't > understand why sometimes his computer got different IP addresses. So > I tried to establish the 192.168.1.250 as the primary address and > added an alias of 10.0.1.250. That works in both environments > except that there is no default route. Is there a way to negotiate > just a default route via DHCP and not an IP address? or is there a > way to set the default route based on which IP address is in use? > Thanks. > _______________________________________________ dhclient.conf can get pretty granular as to exactly what you want from your DHCP server. myself, i use it to get everything, but to ignore the domain search mine tries to provide. man dhclient.conf and you will see tons of options (and some really good examples too). cheers, jonathan