Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* mult IP address on same network interface?
@ 1995-04-17  4:00 Brian Field
  1995-04-18  4:00 ` Brian Field
  1995-04-21  4:00 ` Eric Werme
  0 siblings, 2 replies; 3+ messages in thread
From: Brian Field @ 1995-04-17  4:00 UTC (permalink / 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...]





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-04-21  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-17  4:00 mult IP address on same network interface? Brian Field
1995-04-18  4:00 ` Brian Field
1995-04-21  4:00 ` Eric Werme

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