9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ppp going
@ 2006-04-05 23:23 Ronald G Minnich
  2006-04-05 23:36 ` Ronald G Minnich
  0 siblings, 1 reply; 6+ messages in thread
From: Ronald G Minnich @ 2006-04-05 23:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

well, there were a host of weird problems, it now works.

one thing I totally don't understand is what happens with 'con' when I
am cpu'ed into the node. I can't get reasonable behavior using /dev/eia0.

I do this after getting in. This is drawterm to the node, as rminnich,
and then cpu -h dsn2 -u bootes.

bind -a '#t' /dev
con -b 115200 -Rs /dev/eia0

If I send the ate0 command, to disable command echoing, all commands are
always echo'd. This should not happen. If I sit at the console, and do
the exact same sequence, this problem does not occur.

What's weird: characters are not echoed twice. They are just never 'not
echoed'. You would think if there is an extra echo going on, then
ate1
would get you two of everything, and
ate0
would get you one. Not so. You always get one -- you can't turn echo off.

This, it turns out, was one of the things that was screwing up ppp.
Everything ppp sent was echoed. ppp indicated there was a loop. Made
sense, the packet dump always showed that what was sent, was received.

The hardware is a lippert frontrunner with phoenix bios (not for long!
Everytime I use a fuctory BIOS I remember why I hate them so much) and
it is really glitchy. I think linuxbios will fix this, but right now I
can't reliably boot the node -- it comes up and the keyboard controller
or something is glitching so badly that 9load thinks I'm typing lots of
garbage -- I can't type garbage that fast even when I CAN reach the
keyboard!

The second problem was related to this. I could not use 'ppp -u' mode on
the cpu'ed in window, for some reason. So I was doing this:
con -Rs /dev/eia0
ATDT10.0.0.1
^\
q
ppp ....

Well, I was not thinking: when I exited 'con', DTR dropped, the modem
reset, and, well, ppp ended up talkng to a modem in 'AT' mode again.

So, I went to the console, and did this:
  ip/ppp -ddddd -f -p /dev/eia0  -x /net.alt -b 115200 -u -c -C

and all then worked. Almost. I did a
bind /net.alt /net
and pinged over the modem, and it sorta seems to work, but I can't
unplug the enet cable ... I think bits like dns etc. are still using the
old /net (obviously) so unplugging the cable gives them trouble; but I
don't see why I can't unplug the enet and do ip/ping 68.35.123.144.

next step is to make this modem (airlink.com raven) the ONLY ip
interface ... but that's tomorrow.

To whoever wrote ppp, nice work! It's very nice to have a user-mode
program for PPP, and the debug mode really makes figuring things out
pretty straightforward and fast.

ron


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [9fans] ppp going
@ 2006-04-06  0:47 Russ Cox
  2006-04-06 15:35 ` Ronald G Minnich
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Cox @ 2006-04-06  0:47 UTC (permalink / raw)
  To: 9fans

This explains your echoing problem too.
The echo was coming from the kernel thinking
the PPP modem was giving it commands to execute
on the console; the kernel was echoing them back.

If you were sitting on the console running con,
then that would turn off echo (con runs the
current /dev/cons in raw mode).

Russ



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

end of thread, other threads:[~2006-04-06 19:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05 23:23 [9fans] ppp going Ronald G Minnich
2006-04-05 23:36 ` Ronald G Minnich
2006-04-06  0:47 Russ Cox
2006-04-06 15:35 ` Ronald G Minnich
2006-04-06 16:50   ` Russ Cox
2006-04-06 19:30     ` Ronald G Minnich

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