Thanks in advance
It's in the man page:
Solaris TCP/IP allows multiple logical interfaces to be
associated with a physical network interface. This allows a
single machine to be assigned multiple IP addresses, even
though it may have only one network interface. Physical
network interfaces have names of the form driver-name
physical-unit-number, while logical interfaces have names of
the form driver-name physical-unit-number logical-unit-
number. A physical interface is configured into the system
using the plumb sub-command, for example:
ifconfig le0 plumb
Once a physical interface has been "plumbed", additional
local interfaces can be configured by simply naming them in
subsequent ifconfig commands. Logical interfaces do not
need to be "plumbed". Simply mentioning their name in an
ifconfig command is sufficient. For example, the command:
ifconfig le0:1
will allocate a logical interface associated with the physi-
cal interface le0. A logical interface can be configured
with parameters (address, netmask, etc.) different from the
physical interface that it is associated with. And logical
interfaces that are associated with the same physical inter-
face can be given different parameters as well. Each logi-
cal interface must be associated with a physical interface.
So, for example, the logical interface le0:1 can only be
configured after the physical interface le0 has been
plumbed.
--
Barry Margolin, bar...@bbnplanet.com
GTE Internetworking, Powered by BBN, Cambridge, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
me...@cbnet.ns.ca (Martin Eddy) writes:
>Was wondering if anybody knew how to do multiple IP addressing using ifconfig
>on Solaris 2.4
The solaris FAQ says:
4.10) How can I have multiple addresses per interface?
Solaris 2.x provides a feature in ifconfig that allows having more
than one IP address per interfaces. Undocumented but existing
prior to 2.5, documented in 2.5 and later.
Syntax:
ifconfig IF:N ip-address up
where "IF" is an interface (e.g., le0) and N is a number between 1 and
<MAX>. Removing the pseudo interface and associated address is done
with "ifconfig IF:N 0.0.0.0 down".
As with physical interfaces, all you need to do is make the
appropriate /etc/hostname.IF:X file.
The maximum number of virtual interfaces, <MAX> above, is 255 in
Solaris releases prior to 2.6. Solaris 2.6 and Solaris 2.5.1 with
the Solaris Internet Server Supplement (SISS) allow you to set
this value with ndd, upto a hard maximum of 8192.
/usr/sbin/ndd -set /dev/ip ip_addrs_per_if 4000
There's no limit inspired by the code; so if you bring out adb you
can increase the maximum even further.
--- end of excerpt from the FAQ
Questions marked with a * or + have been changed or added since
the FAQ was last posted
The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.