From owner-freebsd-questions@FreeBSD.ORG Sat Nov 15 11:35:42 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 41F5B16A4CE for ; Sat, 15 Nov 2003 11:35:42 -0800 (PST) Received: from floyd.gnulife.org (floyd.gnulife.org [199.86.41.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7423A43F75 for ; Sat, 15 Nov 2003 11:35:41 -0800 (PST) (envelope-from jamie@gnulife.org) Received: by floyd.gnulife.org (Postfix, from userid 1000) id 216974346B; Sat, 15 Nov 2003 13:35:52 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by floyd.gnulife.org (Postfix) with ESMTP id C64EE43469 for ; Sat, 15 Nov 2003 13:35:52 -0600 (CST) Date: Sat, 15 Nov 2003 13:35:52 -0600 (CST) From: Jamie To: freebsd-questions@freebsd.org Message-ID: <20031115132923.J5131-100000@floyd.gnulife.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: 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: Sat, 15 Nov 2003 19:35:42 -0000 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?? The man page for ifconfig seems to cover changing IP ALIASES, but not the primary IP of an interface. 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 But then I cannot ping the gateway, ping 200.80.11.1 5 Packets transmitted, 0 packets received 100% packet loss 2) I've tried editing /etc/rc.conf with the desired IP address. I then run: sh /etc/netstart It gives me the same output listed in (1), but I still cannot ping the gateway. The only way I can change the IP address is to make the change in /etc/rc.conf and reboot the whole machine. Then it works just fine. I would have to think there has GOT to be a better way. Am I doing something wrong somewhere, or is it just a requirement that you need to restart? Thanks, - Jamie Greetings from Minneapolis, MN, United States "A friend is someone who lets you have total freedom to be yourself."