From owner-freebsd-questions Fri Jan 15 02:58:26 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA24219 for freebsd-questions-outgoing; Fri, 15 Jan 1999 02:58:26 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hecate.webcom.com (hecate.webcom.com [209.1.28.39]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA24209 for ; Fri, 15 Jan 1999 02:58:25 -0800 (PST) (envelope-from graeme@echidna.com) Received: from eresh.webcom.com (eresh.webcom.com [209.1.28.49]) by hecate.webcom.com (8.9.1/8.9.1) with SMTP id CAA26224; Fri, 15 Jan 1999 02:56:11 -0800 Received: from [209.122.117.150] by inanna.webcom.com (WebCom SMTP 1.2.1) with SMTP id 10337983; Fri Jan 15 02:53 PST 1999 Message-Id: <369F1EEC.2EE1@echidna.com> Date: Fri, 15 Jan 1999 05:56:44 -0500 From: Graeme Tait Organization: Echidna X-Mailer: Mozilla 2.02 (Win95; I) Mime-Version: 1.0 To: Mark Turpin Cc: Andrzej Szydlo , sysadmin@skynetweb.com, freebsd-questions@FreeBSD.ORG Subject: Re: IP Aliasing... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Turpin wrote: > > Here is what I do: > wave# ifconfig ed1 (do this to get the MAC address) > ed1: flags=8843 mtu 1500 > inet 209.74.175.2 netmask 0xffffffc0 broadcast 209.74.175.63 > ether 00:40:f6:34:4b:19 > wave# ifconfig lo0 (just to show you what I have as default) > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > > wave# ifconfig lo0 alias 209.74.175.61 (ifconfig it) > wave# arp -s 209.74.175.61 00:40:f6:34:4b:19 pub (arp it) Why is the arp necessary? You can just do ifconfig ed1 alias 209.74.175.61 netmask 255.255.255.255 (no arp, no route commands required). See http://www.cypher.net/~black/ipalias.html . This is referenced from the FreeBSD tutorials page. -- Graeme Tait - Echidna To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message