9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9front@9front.org, 9fans@9fans.net
Subject: Re: [9fans] [9front] DHCP not working on usb ethernet dongle
Date: Wed,  4 Jan 2017 23:20:19 +0000	[thread overview]
Message-ID: <1b89fb9b2c22e6b7351e3be528134b94@quintile.net> (raw)
In-Reply-To: <8981471e80e3938f4d3dc68ee77a876f@felloff.net>

Its not the same problem, but just in case it helps,
adding a second usb ether adapter onto a raspberry pi,
which runs the labs distro not 9front.

I need to add
	ether1=type=usb
to cmdline.txt

and then add the following to /cfg/$sysname/termrc

	if(! ~ `{cat '#l1/ether1/addr'} 000000000000){
		echo ether1: present
		bind -b '#l1' /net.alt
		bind -b '#I1' /net.alt
		ip/ipconfig -x /net.alt ether /net.alt/ether1
		ndb/cs -x /net.alt
		ndb/dns -x /net.alt -r
	}
	if not {
		echo ether1: missing
	}

this worked seamlessly once I got a supported, and reliable ethernet dongle.
I tried a couple of chinese ones but settled on an apple one which is well
manufactured (perhaps I was just unlucky).

All kudos to Richard Miller who helped me through this.

-Steve



       reply	other threads:[~2017-01-04 23:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8981471e80e3938f4d3dc68ee77a876f@felloff.net>
2017-01-04 23:20 ` Steve Simon [this message]
2017-01-05 14:06   ` Dave MacFarlane

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=1b89fb9b2c22e6b7351e3be528134b94@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@9fans.net \
    --cc=9front@9front.org \
    /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).