From owner-freebsd-net@FreeBSD.ORG Tue Feb 24 07:25:50 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABE5F16A4CE for ; Tue, 24 Feb 2004 07:25:50 -0800 (PST) Received: from mail.butovo-online.ru (mail.b-o.ru [212.5.78.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 017AB43D1F for ; Tue, 24 Feb 2004 07:25:50 -0800 (PST) (envelope-from resident@b-o.ru) Received: from [192.168.92.185] (helo=192.168.92.185) by mail.butovo-online.ru with esmtp (Exim 4.24) id 1Aveb7-000AAC-7O for freebsd-net@freebsd.org; Tue, 24 Feb 2004 18:35:49 +0300 Date: Tue, 24 Feb 2004 18:27:39 +0300 From: Andrew Riabtsev X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <10425218782.20040224182739@b-o.ru> To: freebsd-net@freebsd.org In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re[2]: ifconfig and route problem. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew Riabtsev List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 15:25:50 -0000 >> # ifconfig rl0 $ip (where ip can be also 192.168.100.1), my >> default route is deleted, cut off server for my net. >> SDS> Say you wanted to change from 192.168.100.1/24 to 10.0.0.1/24 SDS> With default gateway changed from 192.168.100.254 to 10.0.0.254 SDS> ifconfig rl0 inet 10.0.0.1/24 alias SDS> route change default 10.0.0.254 SDS> ifconfig rl0 inet 192.168.100.1/24 -alias What if I need to change ip from 192.168.100.1/24 to 192.168.100.2/24? Can I alias IP-address from same subnet? I think no. Andrew mailto:resident@b-o.ru