Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 05:56:44 -0500
From:      Graeme Tait <graeme@echidna.com>
To:        Mark Turpin <yoonix@fidnet.com>
Cc:        Andrzej Szydlo <andrzej@maciek.gv.edu.pl>, sysadmin@skynetweb.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: IP Aliasing...
Message-ID:  <369F1EEC.2EE1@echidna.com>
References:  <Pine.LNX.4.04.9901142129260.17889-100000@two.fidnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Turpin wrote:
> 
> Here is what I do:
> wave# ifconfig ed1  (do this to get the MAC address)
> ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet 127.0.0.1 netmask 0xff000000
>         <snip to save space>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?369F1EEC.2EE1>