Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Steve Stoddard <sstod@midwest.net>
Subject: Re: ifconfig: hostname alias?
Date: 2000/02/16	[thread overview]
Message-ID: <38AB32E0.AE68E6FE@midwest.net> (raw)
In-Reply-To: 88d63n$8ec$1@news.latrobe.edu.au

Andrew Moar wrote:

> In article <38AA0977.B1E39DFC@midwest.net>,
>         Steve Stoddard <sstod@midwest.net> 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





      parent reply	other threads:[~2000-02-16  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-15  5:00 ifconfig: hostname alias? Steve Stoddard
     [not found] ` <88d63n$8ec$1@news.latrobe.edu.au>
2000-02-16  5:00   ` Steve Stoddard [this message]
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