Multiple IP addresses for one interface?

Multiple IP addresses for one interface?

Post by John Brzezni » Sun, 05 Feb 1995 01:18:01



Hi,

I'm using solaris 2.3 and am wondering if there is any way to assign multiple
IP addresses to a network interface. Is it possible to set up dummy interfaces
and then route all traffice through one real interface. I need to be able
to assign 48 different IP addresses to our sun for testing purposes and I
don't see any way of doing this short of buying 48 ethernet cards.

Any help?

Thanks...

-- John

 
 
 

Multiple IP addresses for one interface?

Post by Terry Rosenba » Sun, 05 Feb 1995 03:14:51


  Hi,

  I'm using solaris 2.3 and am wondering if there is any way to assign multiple
  IP addresses to a network interface. Is it possible to set up dummy interfaces
  and then route all traffice through one real interface. I need to be able
  to assign 48 different IP addresses to our sun for testing purposes and I
  don't see any way of doing this short of buying 48 ethernet cards.

  Any help?

  Thanks...

  -- John

I don't know if there's a limit to how many "aliases" you can have for
one interface, but yes, there is a way (2.4, don't know about 2.3 -- try it).

Just ifconfig the interface with the desired parameters, appending a ":#"
(where # is 1, 2, ...) after the interface name (le0:1, for example).

Here's the output of ifconfg -a on my system now:

lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
        inet 127.0.0.1 netmask ff000000
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 35.8.160.5 netmask fff80000 broadcast 35.15.255.255
        ether 8:0:20:18:13:24
le0:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 35.8.160.2 netmask fff80000 broadcast 35.15.255.255

And, sure enough, my machine answers to either 35.8.160.5 or 35.8.160.2.

-Terry
--
______________________________________________________________________________


  Michigan State University        Phone:    517/355-0120
  Radiology Department             Fax:      517/355-2405
  B-220 Clinical Center            Alt. Fax: 517/432-2849
  138 Service Rd
  East Lansing  MI 48824-1315  USA
______________________________________________________________________________

 
 
 

Multiple IP addresses for one interface?

Post by Casper H.S. D » Sun, 05 Feb 1995 07:56:51



>I don't know if there's a limit to how many "aliases" you can have for
>one interface, but yes, there is a way (2.4, don't know about 2.3 -- try it).

The limit is 256. (leX:0 ... leX:255).
(OK, I confess: I actually tried this)

It works in 2.3, just like in 2.4.

Casper

 
 
 

Multiple IP addresses for one interface?

Post by Frank San Filip » Tue, 07 Feb 1995 10:22:18


I am doing this on a Sparc2 running Solaris 2.3, and am noticing an
unreasonable amount of packet loss with these aliased ethernet addresses--
in the neigborhood of 50%. What could be causing this? What can I do about
it?


Quote:Brzezniak) writes:
>   Hi,

>   I'm using solaris 2.3 and am wondering if there is any way to assign
multiple
>   IP addresses to a network interface....

<deletia>
 
 
 

Multiple IP addresses for one interface?

Post by Jeremy Doi » Wed, 08 Feb 1995 20:34:37




>I'm using solaris 2.3 and am wondering if there is any way to assign multiple
>IP addresses to a network interface. Is it possible to set up dummy interfaces
>and then route all traffice through one real interface. I need to be able
>to assign 48 different IP addresses to our sun for testing purposes and I
>don't see any way of doing this short of buying 48 ethernet cards.

Check out :

http://www.thesphere.com/%7Edlp/TwoServers/

for some relevant info.

Jeremy

 
 
 

1. IP Aliaseing (Multiple IP address to one interface)

I have a fresh install of SUSE 7.1 on a machine and I want to configure
multiple IP addresses to the same Network card can anybody point me in the
direction of a handy tutorial for doing this or give me the required steps
includeing any kernal compiles i need to do-it

Thanks
Alan

2. Network-error in 2.2.5

3. assigning multiple IP address to one interface via dhcpd

4. Python interface to Oracle

5. Multiple IP Addresses for one Interface.

6. web based printer monitoring?

7. multiple IP-Addresses on one interface

8. 20 Questions

9. Assigning multiple IP addresses to one interface

10. Question with multiple IP addresses on one Interface

11. Multiple IP-Addresses on one Ethernet Interface?

12. Multiple IP addresses (or hosts) on one LAN interface