[1419] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Multiple IP Addrs for an interface

daemon@ATHENA.MIT.EDU (Michael Brennen)
Thu Nov 23 16:09:01 1995

Date: Thu, 23 Nov 1995 10:53:57 -0600 (CST)
From: Michael Brennen <mbrennen@fni.com>
To: Geoffrey Bennett <inet@fni.com>
cc: linux-net@vger.rutgers.edu
In-Reply-To: <199511230059.LAA27866@warp.ipacific.net.au>

On Sun, 6 Aug 1995, Geoffrey Bennett wrote:

> I need to be able to have multiple IP Addresses for an ethernet
> interface.  I know it can be done, as I've seen discussion about

I use the dummy module, as it allows me transparent use between 1.2 and
1.3 kernels.  I won't use ipalias unless it is an integrated part of the
kernel; I don't have time to chase down whatever patches are required to
do ipalias against whatever kernel. 

You need the modules-1.1.87 tools to do this; sunsite will have it
somewhere. 

Compile the dummy as a module, then do a "make modules_install" on 
the kernel.

Put the lines below in /etc/rc.d/rc.inet1 ABOVE the ethernet config lines; 
this must be done before the ethernet is ifconfig'd.  Repeat ad naseum for
more IP addresses by incrementing the count on dummy. 

# Attach subsequent IP addresses for additional domains
/sbin/insmod -o dummy0 /lib/modules/`/bin/uname -r`/net/dummy.o
/sbin/ifconfig dummy0 111.222.333.444 arp
/sbin/route add 111.222.333.444
/sbin/arp -s 111/222/333/444 00:00:xx:xx:xx:xx pub

Michael
---------------------------------------------------------------------
Michael Brennen, President   /           /           mbrennen@fni.com
FishNet, Inc.               / Internet  /         http://www.fni.com/ 
P.O. Box 940451            /  Services /     (214) 783-2553 (vox/fax)
Plano,  TX  75074-0451    /           /  finger me for PGP public key


home help back first fref pref prev next nref lref last post