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
______________________________________________________________________________