Date: Thu, 15 Apr 1999 21:19:18 +1000 From: Tony Maher <Tony.Maher@en-bio.com.au> To: questions@freebsd.org Subject: PPP, Stallion 8/64 PCI and 3.1.Release Message-ID: <199904151119.VAA02674@office.internal.en-bio>
next in thread | raw e-mail | index | archive | help
Hello, I have been running a small (4 modem) dial in server using 3.0.Release and PPPD. Works perfectly. Due to need to expand bought a Stallion 8/64-PCI with 8 port RS232 (actually wanted the 8/32-PCI board since it is supported but will settle for the more modern one!). Installed FreeBSD 3.1-Release on a different PC and downloaded latest driver from ftp.stallion.com (Version 2.0.0). Following instructions that came with updated drivers and after a little work editing stallion.c (patch sent to author) and adding "device stl0" to config file, a working kernel detected the card and ports fine. from dmesg ---------------------------------------------------------------------- stl0: <EC8/64-PCI> rev 0x01 int a irq 11 on pci0.8.0 stl0: EC8/64-PCI (driver version 2.0.0) unit=0 nrpanels=1 nrports=8 ---------------------------------------------------------------------- Used the mkdev script that came with drivers. and stlstats command works ok (partial output given) --------------------------------------------------------------------------- Board=0 Type=27 HwID=00 State=000001 TotalPorts=8 Panel=0 HwID=48 Ports=8 Port State Tty Flags Cflag Iflag Oflag Lflag Sigs TX Total RX Total 0 000060 010020 00000000 34b00 00005 00000 00000 0106 0 0 1 000000 000000 00000000 04b00 00000 00000 00000 0100 1 0 --------------------------------------------------------------------------- Can talk to modem via serial link ok and issue at commands, all seems well. Using old modem pool style PPPD config file "options" ---------------------------------------------------------------------- crtscts # Hardware flow control netmask 255.255.255.0 # netmask ( not required ) domain foo.bar # your domain modem # modem line proxyarp # without this can only see this machine idle 1800 debug auth ms-dns 192.164.65.122 ms-wins 192.164.65.122 ---------------------------------------------------------------------- with specific options file for each port e.g. options.ttyE0 ---------------------------------------------------------------------- 192.164.65.140:192.164.65.130 # ip's of local and remote hosts ---------------------------------------------------------------------- And pppd started from /etc/ttys ---------------------------------------------------------------------- ttyE0 "/usr/sbin/pppd /dev/ttyE0 115200 -detach" dialup on insecure ttyE1 "/usr/sbin/pppd /dev/ttyE1 115200 -detach" dialup off insecure ---------------------------------------------------------------------- Trying to dial in using user PPP (from 3-Stable box) get the following from pppd logfile on server --------------------------------------------------------------------------- Apr 14 14:42:00 modem1 pppd[382]: pppd 2.3.5 started by root, uid 0 Apr 14 14:43:02 modem1 pppd[382]: Using interface ppp0 Apr 14 14:43:02 modem1 pppd[382]: Connect: ppp0 <--> /dev/ttyE0 Apr 14 14:43:02 modem1 pppd[382]: sent [LCP ConfReq id=0x1 <auth pap> <magic 0xe 8c70422> <pcomp> <accomp>] Apr 14 14:43:26 modem1 last message repeated 8 times Apr 14 14:43:28 modem1 pppd[382]: Modem hangup, connected for 1 minutes Apr 14 14:43:28 modem1 pppd[382]: Connection terminated, connected for 1 --------------------------------------------------------------------------- And on client ppp side (times differ due to clock not beeing set correctly) --------------------------------------------------------------------------- Apr 14 15:37:47 foobar ppp[626]: tun0: Phase: deflink: login -> lcp Apr 14 15:37:47 foobar ppp[626]: tun0: LCP: FSM: Using "deflink" as a transport Apr 14 15:37:47 foobar ppp[626]: tun0: LCP: deflink: State change Initial --> Clo sed Apr 14 15:37:47 foobar ppp[626]: tun0: LCP: deflink: State change Closed --> Stopped Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: deflink: LayerStart Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: ACFCOMP[2] Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: PROTOCOMP[2] Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: ACCMAP[6] 0x00000000 Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: MRU[4] 1500 Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: MAGICNUM[6] 0x6c221a1f Apr 14 15:37:48 foobar ppp[626]: tun0: LCP: deflink: State change Stopped --> Req-Sent Apr 14 15:37:51 foobar ppp[626]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Apr 14 15:37:51 foobar ppp[626]: tun0: LCP: ACFCOMP[2] Apr 14 15:37:51 foobar ppp[626]: tun0: LCP: PROTOCOMP[2] Apr 14 15:37:51 foobar ppp[626]: tun0: LCP: ACCMAP[6] 0x00000000 Apr 14 15:37:51 foobar ppp[626]: tun0: LCP: MRU[4] 1500 .... Apr 14 15:38:03 foobar ppp[626]: tun0: LCP: deflink: State change Stopped --> Closed Apr 14 15:38:03 foobar ppp[626]: tun0: LCP: deflink: State change Closed --> Initial Apr 14 15:38:03 foobar ppp[626]: tun0: Phase: deflink: Disconnected! Apr 14 15:38:03 foobar ppp[626]: tun0: Phase: deflink: lcp -> hangup Apr 14 15:38:03 foobar ppp[626]: tun0: Phase: deflink: Connect time: 51 secs: 189 octets in, 270 octets out Apr 14 15:38:03 foobar ppp[626]: tun0: Phase: total 9 bytes/sec, peak 42 bytes/sec on Wed Apr 14 15:38:03 1999 Apr 14 15:38:03 foobar ppp[626]: tun0: Phase: deflink: hangup -> closed Apr 14 15:38:03 foobar ppp[626]: tun0: Phase: bundle: Dead ------------------------------------------------------------------------------- Changing client ppp to use set accmap 000a0000 the PPPD log on server shows ------------------------------------------------------------------------------- Apr 15 08:07:59 modem1 pppd[1384]: Connect: ppp0 <--> /dev/ttyE1 Apr 15 08:07:59 modem1 pppd[1384]: sent [LCP ConfReq id=0x1 <auth pap> <magic 0x dd473501> <pcomp> <accomp>] Apr 15 08:08:23 modem1 last message repeated 8 times Apr 15 08:08:24 modem1 pppd[1384]: Modem hangup, connected for 2 minutes Apr 15 08:08:24 modem1 pppd[1384]: Connection terminated, connected for 2 minutes Apr 15 08:08:24 modem1 pppd[1384]: Serial link is not 8-bit clean: Apr 15 08:08:24 modem1 pppd[1384]: All received characters had even parity Apr 15 08:08:25 modem1 pppd[1384]: Exit. ------------------------------------------------------------------------------- Reading /etc/rc.serial modify to have ------------------------------------------------------------------------------- modem() { # may depend on modem comcontrol /dev/tty$ci$i dtrwait 100 drainwait 180 # Lock crtscts on. # Speed reasonable for V42bis. stty </dev/ttyi$ci$i -crtscts -parenb cs8 115200 stty </dev/ttyl$ci$i -crtscts stty </dev/cuai$co$i -crtscts -parenb cs8 115200 stty </dev/cual$co$i -crtscts } modem E E 0 1 2 3 4 5 6 7 ------------------------------------------------------------------------------- Now "stty -a < /dev/ttyiE0" ------------------------------------------------------------------------------- speed 115200 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>; eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; ------------------------------------------------------------------------------- looks the same as output from the working ttyid0 on the old modem pool. But still the same problem. Any obvious operator stupidity, clues (or better yet solutions) gratefully received. thanks tonym To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904151119.VAA02674>