9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Joshua Wood <josh@utopian.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] a small error in /rc/bin/cpurc
Date: Tue,  6 Nov 2007 19:02:42 -0800	[thread overview]
Message-ID: <A9533FDF-0357-40D6-BA5B-10F705FAD754@utopian.net> (raw)

> until recently I put ip=192.178.123.123 in plan9.ini and then wrote a
> bit of script in termrc.local to check for its existence and use it

Did you figure out that you could just set the IP with bootargs  
instead and skip the bit of script in termrc.local? Because that only  
recently dawned on me, when I read a reply on this thread...

(I still recommended that the original poster call ipconfig in  
cpurc.local or /cfg/*/cpurc, because he specifically wanted to get  
his ip from his existing dhcp setup.)

>
> There are loads of ways to actually get your IP address into the  
> system,
> its like frigging Perl and tmtowtdi!
>

Somewhat true, though I'm not ready to say I've found anything in  
plan 9 that's "like Perl" ;-)
Once you have auth and dhcp going, all the rest of the systems on the  
network get configured by dhcp in boot (if diskless) or in  
$service^rc (if diskful). And that leads me to the question that I  
should have asked Erik a couple days ago:

> for the standalone machines i have, i typically use the bootargs to  
> set up networking
> before the root fs is mounted.this is the plan9.ini from the one  
> machine we have at
> coraid that boots stand-alone, the auth server:
>
> 	bootfile=sdD0!9fat!9myri
> 	bootargs=il -d -g 205.185.197.254 ether /net/ether0 205.185.197.99  
> 255.255.255.0
> 	fs=205.185.197.100
> 	auth=205.185.197.99
> 	console=0

We've typically configured IP for our one standalone auth server  
from /cfg/$sysname/cpurc; I want to know if I've understood why  
you're doing it with plan9.ini bootargs instead: Is the advantage  
that you get the variables set in /net/ndb (fs, auth, etc) that I  
don't get when I call ip/ipconfig to set up a manual ip address from  
an rc script later in the boot?

--
Josh


             reply	other threads:[~2007-11-07  3:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07  3:02 Joshua Wood [this message]
2007-11-07  3:17 ` erik quanstrom
  -- strict thread matches above, loose matches on Subject: below --
2007-11-07  5:51 Joshua Wood
2007-11-05 14:51 Joshua Wood
2007-11-05 12:59 Joshua Wood
2007-11-05 13:27 ` Antonin Vecera
2007-11-06 21:57 ` maht-9fans
2007-11-03 17:12 Antonin Vecera
2007-11-03 21:30 ` erik quanstrom
2007-11-04 11:18   ` Antonin Vecera
2007-11-04 16:48     ` erik quanstrom
2007-11-05  7:31       ` Antonin Vecera
2007-11-05 10:18 ` arisawa
2007-11-05 14:02   ` Antonin Vecera

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=A9533FDF-0357-40D6-BA5B-10F705FAD754@utopian.net \
    --to=josh@utopian.net \
    --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).