From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,394727303e9144b4 X-Google-Attributes: gidfee84,public From: Steve Stoddard Subject: Re: ifconfig: hostname alias? Date: 2000/02/16 Message-ID: <38AB32E0.AE68E6FE@midwest.net>#1/1 X-Deja-AN: 586712721 Content-Transfer-Encoding: 7bit References: <38AA0977.B1E39DFC@midwest.net> <88d63n$8ec$1@news.latrobe.edu.au> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com MIME-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Andrew Moar wrote: > In article <38AA0977.B1E39DFC@midwest.net>, > Steve Stoddard writes: > > tu0 is already configured for one hostname and IP address, but I want to > > assign an additional hostname alias and IP address to that interface. > > 'man ifconfig' says it can be done with the -alias #.#.#.# parameter, > > but I'm unable to accomplish it. I've also tried 'netsetup' with the > > flag -alias #.#.#.#, but that only screwed things up. How can > > I accomplish my goal? > > I think you want to use just alias (not -alias - that removes the alias) > Eg. > > # ifconfig tu0 alias 123.456.7.89 > > Also add this line to /etc/inet.local and it'll happen on reboot as well. > > Cheers, > > Andrew > -- > Andrew Moar : Ph +61 3 9479 1505 email A.Moar@latrobe.edu.au > Unix Environment Specialist, Information Technology Services > La Trobe University, Melbourne Thanks Andrew. I think in retrospect I had tried the ifconfig command the way you told me (I typed the message wrong), and then rebooted, but the addition to inet.local was critical and I didn't know about that. Problem solved. Steve