From: arisawa@ar.aichi-u.ac.jp
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Hooking a Plan9 Terminal to the Network
Date: Wed, 25 Oct 2000 07:13:23 +0900 [thread overview]
Message-ID: <20001024224854.A6641199CC@mail> (raw)
In-Reply-To: <20001024050456.0AF34199CC@mail>
Hello,
anothy@cosym.net wrote:
>in my local setup, i use the following to get around
>ip/ipconfig not looking at the ndb files. it's a
>small change to /bin/[cpu,term]rc :
>
> ndb/cs
> sysname=`{cat /dev/sysname}
> myip=`{ndb/query sys $sysname ip}
> ip/ipconfig ether /net/ether0 $myip 255.255.255.0 >/dev/null
>[2=1]
> ndb/dns -r
How about the bellow:
switch($ipconfig){
case local
eval `{ndb/ipquery sys $sysname ip}
eval `{ndb/ipquery sys $sysname ipgw}
eval `{ndb/ipquery sys $sysname ipmask}
ip/ipconfig -g $ipgw ether /net/ether0 add $ip $ipmask
case dhcp
ip/ipconfig >/dev/null >[2=1]
}
and in plan9.ini:
ipconfig=dhcp
or
ipconfig=local
Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp
next prev parent reply other threads:[~2000-10-24 22:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-24 5:04 anothy
2000-10-24 22:13 ` arisawa [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-10-19 16:42 Mark C. Otto
2000-10-20 17:33 ` Mark C. Otto
2000-10-20 19:18 ` Scott Schwartz
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=20001024224854.A6641199CC@mail \
--to=arisawa@ar.aichi-u.ac.jp \
--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).