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.
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 22.214.171.124 netmask fff80000 broadcast 126.96.36.199
le0:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 188.8.131.52 netmask fff80000 broadcast 184.108.40.206
And, sure enough, my machine answers to either 220.127.116.11 or 18.104.22.168.
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