From owner-freebsd-questions@FreeBSD.ORG Fri Sep 16 02:39:12 2005 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 C78B116A41F for ; Fri, 16 Sep 2005 02:39:12 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D29943D46 for ; Fri, 16 Sep 2005 02:39:12 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j8G2c4CR010953; Thu, 15 Sep 2005 21:38:25 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <432A3000.8020607@daleco.biz> Date: Thu, 15 Sep 2005 21:37:52 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050823 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lisa Casey References: <000a01c5ba63$13d238c0$14d71840@casey> In-Reply-To: <000a01c5ba63$13d238c0$14d71840@casey> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Can I do this? 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: Fri, 16 Sep 2005 02:39:12 -0000 Lisa Casey wrote: >Hi, > >I posted earlier today about setting up a FreeBSD 5.3 box to replace a 3.2 >box. I've got the 5.3 set up on a different IP address (for now) and apache >and bind seem to be working OK. All the web sites and DNS zone files are >transferred over. Tomorrow I need to change the IP address of this box to >the IP that the 3.2 box is currently on, remove the 3.2 box from the network >and make sure the new one actually does OK in production. > > > Glad to hear it. >What's the quickest & easiest way to change the IP address on the new 5.3 >box? Should I do it via /stand/sysinstall or should I change it in >/etc/rc.conf and /etc/hosts (or do I need to do something with ifconfig - >which I'm least comfortable with). > >Thanks, > >Lisa Casey > > Let's say, for the sake of argument, that the boss is a cheapskate and we have a RealTek 8139 NIC (just one). As root, of course: $ifconfig rl0 down --- the interface is "off". $ifconfig rl0 1.2.3.4 netmask 255.255.255.0 --- the interface is back "up" at the address 1.2.3.4. You'll want to use your assigned IP and netmask (your upstream should know what this is if you don't --- but of course, it's the same as the old box, right?) Also enter it in /etc/rc.conf in this format: ifconfig_rl0="1.2.3.4 netmask 255.255.255.0" You're good as gold at the next reboot. HTH, Kevin Kinsey