From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,52636421006a90d0,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,52636421006a90d0,start X-Google-Attributes: gidfee84,public From: field@cs.pitt.edu (Brian Field) Subject: mult IP address on same network interface? Date: 1995/04/17 Message-ID: <3mungm$6c2@usenet.srv.cis.pitt.edu>#1/1 X-Deja-AN: 101096485 organization: University of Pittsburgh, Department of Computer Science reply-to: field@cs.pitt.edu newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc 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...]