9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* RE: [9fans] cs & sysname
@ 2003-11-25 13:31 Tiit Lankots
  2003-11-25 13:42 ` David Presotto
  0 siblings, 1 reply; 7+ messages in thread
From: Tiit Lankots @ 2003-11-25 13:31 UTC (permalink / raw)
  To: 9fans

> Also, you could have avoided the problem by setting up a real ip
> address before running cs since it preferentially chose such an
> address.

Yes, but then it chose that ip as my sysname, becasuse it looked
either by ip or alternatively by ether, if ip didn't produce anything.
Case 1).

Tiit 


^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: [9fans] cs & sysname
@ 2003-11-25 13:45 Tiit Lankots
  0 siblings, 0 replies; 7+ messages in thread
From: Tiit Lankots @ 2003-11-25 13:45 UTC (permalink / raw)
  To: 9fans

> I take it then that you don't have a static address but get a 
> dynamicly
> assigned one?

Yep. Luckily for me the server seems to be assigning ip-s
by ethernet addresses.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [9fans] cs & sysname
@ 2003-11-25 12:37 Tiit Lankots
  2003-11-25 13:08 ` David Presotto
  0 siblings, 1 reply; 7+ messages in thread
From: Tiit Lankots @ 2003-11-25 12:37 UTC (permalink / raw)
  To: 9fans

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


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

end of thread, other threads:[~2003-11-25 16:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25 13:31 [9fans] cs & sysname Tiit Lankots
2003-11-25 13:42 ` David Presotto
  -- strict thread matches above, loose matches on Subject: below --
2003-11-25 13:45 Tiit Lankots
2003-11-25 12:37 Tiit Lankots
2003-11-25 13:08 ` David Presotto
2003-11-25 13:26   ` David Presotto
2003-11-25 16:21     ` Rob Pike

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).