Assigning Multiple IP addresses question

Assigning Multiple IP addresses question

Post by Aldo Kiki Febr » Thu, 21 Nov 1996 04:00:00



Hi all,

I would like to assign 2 or 3 IP addresses to my old 3C509 ethernet card.
I'm still running kernel 1.2.13.
Is there any HOWTO that I can read on this matter ?
Thanks for any pointer.

Aldo

 
 
 

Assigning Multiple IP addresses question

Post by B.A.McCau.. » Tue, 26 Nov 1996 04:00:00



Quote:

>I would like to assign 2 or 3 IP addresses to my old 3C509 ethernet card.
>I'm still running kernel 1.2.13.

You can't.  You can however install several "dummy" network devices
modules with on IP address each and use proxy-arp to make your
ethernet card respond to arp requests for those addresses too.

Quote:>Is there any HOWTO that I can read on this matter ?

There is but I can't recall which.

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/


 
 
 

Assigning Multiple IP addresses question

Post by Marco Roberto Land » Tue, 26 Nov 1996 04:00:00



> Hi all,

> I would like to assign 2 or 3 IP addresses to my old 3C509 ethernet card.
> I'm still running kernel 1.2.13.
> Is there any HOWTO that I can read on this matter ?
> Thanks for any pointer.

> Aldo

I had a little file which explained all, but I have no more it.
Anyway, I will describe my configuration:

I have a 'real' IP address (130.251.14.1, belva.infomus.dist.unige.it)
and a 'virtual' address (130.251.14.8 (AIMI.infomus.dist.unige.it, I use
it for a second WWW server with Apache).

To setup them I configured my kernel to use the dummy module, and I add
in /etc/rc.d/rc.inet1 the following lines:

# Setting up virtual address
exec /etc/IP_Alias &

And the script IP_Alias is in the attachment.

Edit it to adapt to your configuration, reboot and check if it works.


Bye,
        Marco.

[ IP_Alias < 1K ]
#!/bin/bash

# current ethernet address
echo "Starting IP_Alias..."
# This is my net-card HWaddress. You can find it with 'ifconfig'
ETH=00:40:33:24:EE:9C

# list of machine names to act as
# (The list of names to give to the virtual machines)
names="AIMI.dist.unige.it"

count=0

if [ "$1" = "stop" ]; then
  for addr in $names
  do
    /sbin/route del $addr
    /sbin/ifconfig dummy$count down
    /sbin/arp -d $addr
    /sbin/rmmod dummy$count
    echo dummy$count \!= $addr
    let count=$count+1
  done
elif [ "$1" = "start" -o "$1" = "" ]; then
  for addr in $names
  do
    echo dummy$count -\> $addr
    /sbin/insmod -o dummy$count /lib/modules/1.2.13/net/dummy.o
    /sbin/ifconfig dummy$count $addr -broadcast
    /sbin/route add $addr dummy$count
    /sbin/arp -s $addr $ETH pub
    let count=$count+1
  done
else
  echo 'Usage: '$0' [start|stop]'
fi

 
 
 

Assigning Multiple IP addresses question

Post by Javier Henderso » Tue, 26 Nov 1996 04:00:00




>>I would like to assign 2 or 3 IP addresses to my old 3C509 ethernet card.
>>I'm still running kernel 1.2.13.
>You can't.  You can however install several "dummy" network devices
>modules with on IP address each and use proxy-arp to make your
>ethernet card respond to arp requests for those addresses too.

Yes, you can, but you need to patch your kernel. The IP aliasing became part
of the kernel starting 1.3.5something (so 2.0 kernels have it).

Thorough instructions can be found in NET2-HOWTO.

-javier