From owner-freebsd-questions Mon Mar 18 12:44:36 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA11742 for questions-outgoing; Mon, 18 Mar 1996 12:44:36 -0800 (PST) Received: from mail.calweb.com (mail.calweb.com [165.90.138.20]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA11730 for ; Mon, 18 Mar 1996 12:44:33 -0800 (PST) Received: from calweb.calweb.com (calweb.calweb.com [165.90.138.3]) by mail.calweb.com (8.7.3/8.7.3) with ESMTP id MAA28919; Mon, 18 Mar 1996 12:43:54 -0800 (PST) Received: from web1.calweb.com (rdugaue@web1.calweb.com [165.90.138.10]) by calweb.calweb.com (8.7.3/8.7.3) with SMTP id UAA17670; Mon, 18 Mar 1996 20:43:53 GMT Date: Mon, 18 Mar 1996 12:44:20 -0800 (PST) From: Robert Du Gaue To: David Brockus cc: FreeBSD questions Subject: Re: IP aliasing In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > network_interfaces="ep0 lo0" > ifconfig_ep0="inet xxx.xxx.xxx.131 netmask 255.255.255.224" > ifconfig_lo0="inet localhost" > ifconfig_ep0="alias xxx.xxx.xxx.132 netmask 255.255.255.224" > > Is this the correct syntax and location to add the alias? > > And where do I need to add a route to the second IP number? You also need to add a default route of that IP to localhost. route add -host xxx.xxx.xxx.132 127.0.0.1 should do the trick. Here's sample on how we do it: echo -n 'starting ftp spoofs:' echo -n 'ftp.gigo.com ' /sbin/ifconfig de0 inet 165.90.138.208 alias 255.255.255.0 /sbin/route add 165.90.138.208 127.0.0.1