From owner-freebsd-questions Tue Jan 12 23:21:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA07727 for freebsd-questions-outgoing; Tue, 12 Jan 1999 23:21:52 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from maciek.gv.edu.pl (netserv.gv.edu.pl [195.117.86.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA07694 for ; Tue, 12 Jan 1999 23:21:45 -0800 (PST) (envelope-from andrzej@maciek.gv.edu.pl) Received: (from andrzej@localhost) by maciek.gv.edu.pl (8.9.2/8.9.1) id IAA14020; Wed, 13 Jan 1999 08:23:26 +0100 (CET) (envelope-from andrzej) Message-ID: <19990113082325.F13581@gv.edu.pl> Date: Wed, 13 Jan 1999 08:23:25 +0100 From: Andrzej Szydlo To: sysadmin@skynetweb.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: IP Aliasing... References: <369AA6A2.12810085@skynetweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <369AA6A2.12810085@skynetweb.com>; from Phillip Ryker - System Administrator on Mon, Jan 11, 1999 at 08:34:26PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 11, 1999 at 08:34:26PM -0500, Phillip Ryker - System Administrator wrote: > List, > > I have been using the 'ifconfig' command in conjunction with the 'route' > command to add ip aliases to the ethernet interface in my freebsd box. > After experimenting a little I have found that I do not need to use the > 'route' command at all for the addresses to work. > > I simply use: > > ifconfig vx0 inet 208.239.248.xxx netmask 255.255.255.xxx alias > > and it adds the ip numbers and the route in the kernels routing table. > > My question is: Do I really need to be adding a route for each IP or can > I just simply use the 'ifconfig' command to add ip aliases?? What is the > CORRECT way of doing this?? I only ask because after going through the > e-mail archives and tutorials I have seen examples in using both. It depends on what you want to achieve, but if it works without "route", you don't need it in this case. Andrzej To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message