From owner-freebsd-questions@FreeBSD.ORG Fri Oct 1 22:39:16 2004 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 BF8FB16A4CF for ; Fri, 1 Oct 2004 22:39:16 +0000 (GMT) Received: from wingfoot.org (caduceus.wingfoot.org [64.32.179.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D35C43D45 for ; Fri, 1 Oct 2004 22:39:16 +0000 (GMT) (envelope-from ges@wingfoot.org) Received: from localhost (localhost.wingfoot.org [127.0.0.1]) by wingfoot.org (Postfix) with ESMTP id D59621F4496; Fri, 1 Oct 2004 18:39:15 -0400 (EDT) Received: from wingfoot.org ([127.0.0.1]) by localhost (caduceus.wingfoot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 40492-09; Fri, 1 Oct 2004 18:39:14 -0400 (EDT) Received: from [127.0.0.1] (unknown [64.32.179.50]) by wingfoot.org (Postfix) with ESMTP id A01AC1F4498; Fri, 1 Oct 2004 18:39:14 -0400 (EDT) Message-ID: <415DDC8D.9070605@wingfoot.org> Date: Fri, 01 Oct 2004 18:39:09 -0400 From: Glenn Sieb User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Thunderbird/0.8 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20041001222957.026415C40@richard.syix.com> In-Reply-To: <20041001222957.026415C40@richard.syix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at wingfoot.org cc: richard@syix.com Subject: Re: Quickie... Hopefully! 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: Fri, 01 Oct 2004 22:39:16 -0000 Richard Marriner said the following on 10/1/2004 6:25 PM: >Dear list, > > Just wondering if there is anyway (preferably simple.) to have two ip >addresses on the same NIC that are different networks. > > First, I would test things out by adding an ifconfig alias (man ifconfig) and adding a new route to the new gateway IP (using the route command). Then, once you're sure things are working, add an ifconfig alias in rc.conf. You probably want the *new* IP to be the non-alias address, and the *old* IP to be the alias. Make sure that defaultrouter is set in rc.conf to be the new gateway IP. You'll need to also add the route for the aliased IP to the route table using the route command. Then, test away--make sure traffic from both IP blocks makes it through! Traceroute is your friend! :) (I'm not a total network geek, but IIRC, this is one way of doing what you're looking for. If there are better ways of doing this, I look forward to reading the replies and learning better ways! :) ) Best, Glenn -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." ~Benjamin Franklin, Historical Review of Pennsylvania, 1759