SUMMARY: How do I get multiple IP addresses on one interface?

From: Aaron Nabil (nabil@i.net)
Date: Tue Jan 03 1995 - 17:46:28 CST


The question...

I'd like to get a Solaris 2 machine to respond to multiple IP address on
the same physical interface.

You could do this with multiple interfaces attached to the same ethernet,
but that's not what I'm looking for. I want le0 to respond to 192.1.1.1 and
192.2.1.1 and 192.3.1.1 as if the machine were all of those IP addresses. All
from one physical interface.

The answer...

on Solaris 2.X (it appears to be undocumented, at least I can't find it)

ifconfig le0 192.1.1.1
ifconfig le0:1 192.2.1.1
ifconfig le0:2 192.3.1.1

-a



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:13 CDT