From owner-freebsd-questions Tue Oct 17 20:34: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by hub.freebsd.org (Postfix) with ESMTP id 0616E37B4D7 for ; Tue, 17 Oct 2000 20:33:59 -0700 (PDT) Received: from chimp.simianscience.com (cage.simianscience.com [64.7.134.1]) by smtp1.sentex.ca (8.11.0/8.11.0) with SMTP id e9I3Xef20734; Tue, 17 Oct 2000 23:33:45 -0400 (EDT) From: Mike Tancsa To: Kahn@deadbbs.com ("Erin") Cc: questions@freebsd.org Subject: Re: Adding an IP alias without a reboot. Date: Tue, 17 Oct 2000 23:33:40 -0400 Message-ID: References: In-Reply-To: X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 17 Oct 2000 14:20:46 -0400, in sentex.lists.freebsd.questions you = wrote: >I have a production machine whos IP is going to change. I have to add an >aliased IP to it for a while from a completely different subnet then by = the >middle of next month have everything changed over (i.e. defaultrouter, = dns >servers, etc.). I'd like to do this with out rebooting the machine if >possable. lets say its fxp0, old address is 192.168.1.1/24, new address is 172.16.20.1/25 ifconfig fxp0 172.16.20.1 netmask 255.255.255.128 alias later.... ifconfig fxp0 172.16.20.1 netmask 255.255.255.128 -alias ifconfig fxp0 192.168.1.1 netmask 255.255.255.0 -delete arp -da route delete 192.168.1.0/24 ifconfig fxp0 172.16.20.1 netmask 255.255.255.128 ---Mike Mike Tancsa (mdtancsa@sentex.net) =09 Sentex Communications Corp, =09 Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers=20 could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message