Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* netsetup broken?
@ 2001-10-30 16:50 andy thomas
  2001-10-30 20:00 ` Brian Haley
  0 siblings, 1 reply; 3+ messages in thread
From: andy thomas @ 2001-10-30 16:50 UTC (permalink / raw)


Running netsetup to add the IP alias 137.73.192.59 to a network interface
tu0 already configured with the address 137.73.192.7 produces the
following strange ipconfig invocation:

    ifconfig tu0 137.73.192.7 netmask 255.255.255.0 broadcast 137.73.192.59

After I've answered all the questions presented by the netsetup script,
and just before it does it's stuff and reconfigures /etc/rc.config, it
asks for confirmation that the ifconfig command will be:

    ifconfig tu0 137.73.192.7 netmask 255.255.255.0 broadcast
	137.73.192.255 alias 137.73.192.59

but the command actually executed is quite different (and has interesting
consequences for RPC services ;-).

Is netsetup broken (this is on a DU 4.0D system)? And what is the correct
ifconfig incantation for doing this?

Andy





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

* Re: netsetup broken?
  2001-10-30 16:50 netsetup broken? andy thomas
@ 2001-10-30 20:00 ` Brian Haley
  2001-10-31 12:28   ` andy thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Haley @ 2001-10-30 20:00 UTC (permalink / raw)


andy thomas wrote:

> Running netsetup to add the IP alias 137.73.192.59 to a network interface
> tu0 already configured with the address 137.73.192.7 produces the
> following strange ipconfig invocation:

...

> Is netsetup broken (this is on a DU 4.0D system)? And what is the correct
> ifconfig incantation for doing this?

You should not configure both a primary and alias IP address with
the same ifconfig command, in future releases ifconfig was changed
to complain and do nothing.  IP aliases should be put into /etc/inet.local,
it's run at boot-time after the other addresses are added to the system.
The line would look something like this:

    ifconfig tu0 alias 137.73.192.59 netmask 255.255.255.0

-Brian

-----------------------------------------------------
Brian P. Haley
Tru64 UNIX Networking Group
Compaq Computer Corporation





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

* Re: netsetup broken?
  2001-10-30 20:00 ` Brian Haley
@ 2001-10-31 12:28   ` andy thomas
  0 siblings, 0 replies; 3+ messages in thread
From: andy thomas @ 2001-10-31 12:28 UTC (permalink / raw)




On Tue, 30 Oct 2001, Brian Haley wrote:

> andy thomas wrote:
>
> > Running netsetup to add the IP alias 137.73.192.59 to a network interface
> > tu0 already configured with the address 137.73.192.7 produces the
> > following strange ipconfig invocation:
>
> ...
>
> > Is netsetup broken (this is on a DU 4.0D system)? And what is the correct
> > ifconfig incantation for doing this?
>
> You should not configure both a primary and alias IP address with
> the same ifconfig command, in future releases ifconfig was changed
> to complain and do nothing.  IP aliases should be put into /etc/inet.local,
> it's run at boot-time after the other addresses are added to the system.
> The line would look something like this:
>
>     ifconfig tu0 alias 137.73.192.59 netmask 255.255.255.0

Thanks for this information. It was the netsetup script that was
generating the ifconfig command with both primary and alias addresses in
the same line!

cheers,

Andy



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

end of thread, other threads:[~2001-10-31 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-30 16:50 netsetup broken? andy thomas
2001-10-30 20:00 ` Brian Haley
2001-10-31 12:28   ` andy thomas

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