9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] cs & sysname
Date: Tue, 25 Nov 2003 08:08:02 -0500	[thread overview]
Message-ID: <ffab24903191db8a19ec43210afa4835@plan9.bell-labs.com> (raw)
In-Reply-To: <81132473206F3A46A72BD6116E1A06AE056154@black.aprote.com>

[-- Attachment #1: Type: text/plain, Size: 80 bytes --]

I'll fix cs.  It really shouldn't accept the loopback address as the
local one.

[-- Attachment #2: Type: message/rfc822, Size: 2623 bytes --]

From: "Tiit Lankots" <t.lankots@aprote.ee>
To: <9fans@cse.psu.edu>
Subject: [9fans] cs & sysname
Date: Tue, 25 Nov 2003 14:37:27 +0200
Message-ID: <81132473206F3A46A72BD6116E1A06AE056154@black.aprote.com>

After setting up venti, cs stopped recognising my sysname.
It was because the loopback interface got up first on boot,
and because cs looks first by ip address.

Now, I had two alternative ways to deal with it:
1) Poke around in /sys/src/cmd/ndb/cs.c and edit it to look
by the ethernet address when by ip it did not succeed. 
I did it.
2) Write the ip I get from the dhcp server into /lib/ndb/local.
I did it too.

Now it works. Basically, 2) would've sufficed.
OK, now for the question: Is 2) the "standard" way of dealing
with this? What to do when the ip returned by dhcp
is random?

Tiit

  reply	other threads:[~2003-11-25 13:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25 12:37 Tiit Lankots
2003-11-25 13:08 ` David Presotto [this message]
2003-11-25 13:26   ` David Presotto
2003-11-25 16:21     ` Rob Pike
2003-11-25 13:31 Tiit Lankots
2003-11-25 13:42 ` David Presotto
2003-11-25 13:45 Tiit Lankots

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ffab24903191db8a19ec43210afa4835@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).