Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: field@cs.pitt.edu (Brian Field)
Subject: mult IP address on same network interface?
Date: 1995/04/17	[thread overview]
Message-ID: <3mungm$6c2@usenet.srv.cis.pitt.edu> (raw)

I'm writing a piece of code which needs to emulate n hosts with
different IP addresses.  Rather than run this piece of code physically
on n different hosts, I'd like to run it on a single host, but
configure this host to appear as n different IP address (all within
the same subnet).  This host has a single network interface.

Can I do something like:

	ifconfig ln0   inet a.b.c.d
	ifconfig ln0:1 inet a.b.c.e
	...

such that traffic for IP address a.b.c.[d, e, ..] are all routed to ln0?

Can I configure this in rc.config?  Something like:

	NETDEV_0="ln0"
	NETDEV_1="ln0"
	...

	IFCONFIG_0="a.b.c.d ..."
	IFCONFIG_1="a.b.c.e ..."
	...

Will this support multiple IP addresses on ln0, or will ln0 have the
IP address from the last IFCONFIG_? line?

I know this is possible in Solaris, AIX, and a few other flavors of
unix.  Does this work in OSF?

Brian

[I had posted this question to a couple of general unix groups, but it
now turns out, that I need to get my sw running on an OSF box and
didn't hear back one way or the other for OSF...]





             reply	other threads:[~1995-04-17  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-17  4:00 Brian Field [this message]
1995-04-18  4:00 ` mult IP address on same network interface? Brian Field
1995-04-21  4:00 ` Eric Werme
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox