From owner-freebsd-questions@FreeBSD.ORG Tue Nov 18 14:27:31 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 AD2EE16A4CF for ; Tue, 18 Nov 2003 14:27:31 -0800 (PST) Received: from pursued-with.net (adsl-66-125-9-242.dsl.sndg02.pacbell.net [66.125.9.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0D5043FEC for ; Tue, 18 Nov 2003 14:27:30 -0800 (PST) (envelope-from kevin_stevens@pursued-with.net) Received: from [192.168.168.42] (babelfish.pursued-with.net [192.168.168.42]) by babelfish.pursued-with.net (Postfix) with ESMTP id B5B183D131; Sat, 15 Nov 2003 12:21:45 -0800 (PST) In-Reply-To: <20031115132923.J5131-100000@floyd.gnulife.org> References: <20031115132923.J5131-100000@floyd.gnulife.org> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <553B01E2-17A9-11D8-A904-000A95D7C3C6@pursued-with.net> Content-Transfer-Encoding: 7bit From: Kevin Stevens Date: Sat, 15 Nov 2003 12:21:45 -0800 To: Jamie X-Mailer: Apple Mail (2.606) cc: freebsd-questions@freebsd.org Subject: Re: Fastest way to change IP addresses 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: Tue, 18 Nov 2003 22:27:31 -0000 On Nov 15, 2003, at 11:35, Jamie wrote: > I want to change the IP address from 200.80.11.7 to 200.80.11.8 > on a FreeBSD machine as quickly as possible. Despite my efforts, I can > only get the change to work by editing rc.conf and rebooting the > machine. > Isn't there a more elegant way?? That *is* the elegant way. You want a more expedient way. > In order to switch to 200.80.11.8 I've tried: > > 1) ifconfig de0 200.80.11.8 255.255.255.0 > > ifconfig -a then gives me: > > fxp0: flags=8843 mtu 1500 > inet 200.80.11.8 netmask 0xffffff00 broadcast 200.88.11.255 > ether 00:03:47:b1:d6:1c > media: 10BaseT/UTP status: active That is not the correct broadcast address for that network... > But then I cannot ping the gateway, > > ping 200.80.11.1 > > 5 Packets transmitted, 0 packets received 100% packet loss It should work. Two thoughts: If you've been bouncing around between addresses while testing, you may have confused the arp cache on the gateway device, which would need to be flushed or time out before speaking to you again. When you make the IP change directly, it's then incumbent on you to also make any appropriate routing updates - this is handled automatically during boot by the rc.conf procedure. Since you're changing addresses within the same subnet it shouldn't be a major deal (you shouldn't be attempting to route), but it should be checked anyway. netstat -nr. KeS