Greetings,

I've spent the last few weeks trying to get my Linux box to successfully
connect to our network at work.  As a bit of background, I've had my
Linux box running as a PPP server for some time, plus for the past couple
years I've been running PPP between my Linux box and the network at my
previous job.  The thing that is different now is the network at my new
job is expecting Windows-95 machines to connect to it, so I'm now trying
something I haven't done before...

I feel that I'm very close to having it running, but still can't quite
get the two pppd's to be happy.  *sigh*  I'm hoping I'm overlooking
something simple.  Here's where I'm at...


I'm running RedHat 4.2 (upgraded to kernel 2.0.30), with PPP kernel
version 2.3.3, and pppd 2.3.4.


I encountered (and fixed) the "wrong #ifdef" problem, and I also needed
to add a #define to /usr/src/linux/include/linux/if_ppp.h in order to
get isdn_ppp.c to compile (I'm not running PPP over an ISDN modem yet,
but would like to eventually end up there; right now I'm trying to get
it to work using an analog modem/line) :

   #define SC_ENABLE_IP    0x00000100      /* IP packets may be exchanged */


I'm installing the following modules (in this order) before invoking pppd :

        insmod ipx
        insmod slhc
        insmod ppp
        insmod bsd_comp
        insmod ppp_deflate

The last ones are required to support the different classes of compression
(21 & 24?  24 & 26?  I don't remember offhand); if I don't have them
installed, pppd complains that it can't find various compression modules.
I don't know if I need ipx, but I'm throwing it in anyway.  :-)


My /etc/ppp/options file looks like :

        debug
        modem
        netmask 255.255.0.0
        ipxcp-accept-network
        ipxcp-accept-remote
        ipxcp-accept-local

And my /etc/ppp/options.ttyS0 file looks like :

        Poutback:192.168.1.20
        netmask 255.255.255.0
        -detach


I installed the IPX utils (ipxutils-1_0-5_i386.rpm for RedHat 4.2),
but am not sure I really need them at this point since pppd hasn't
successfully connected yet.  Plus, the tech guy I talked to says that
by default IPX isn't enable (I'm not sure how to confirm/deny this).
I used ipx_configure to set auto primary select on and auto interface
create on.


I'm using dip to dialup the server, and that all works fine.  I'm able to
parse out the text that the server sends back and extract the IP number,
the MTU, etc.  The problem arises after the pppd session is started;
as you can see from the log file (down below), there are a bunch of
"Received bad configure-ack:" and "Received bad configure-nak/rej:" lines.

I've read through the PPP & IPX HowTos, and other documentation that I've
been able to find, but I'm still lost.  :-/


As a side note, when I recently upgraded to this newer version of pppd,
I noticed that after pppd exits, my serial line (/dev/cua0) is left with
strange permissions -- only the owner (root) has read/write privs.  I
usually set it to look like this :

     crw-rw-r--   1 root     uucp       5,  64 Sep  1 07:30 /dev/cua0

The reason why is that the port is used for dialout (uucico) and dialin
(mgetty).  Thus, I need to have it group read/write.  So, I wrote a little
cron job that checks the permissions on the port every 15 minutes and
resets them to u+rw,g+rw,o+r if no one is using the port.  This "fixes"
the problem, but I'm still curious as to why this version of pppd won't
restore the permissions to the original settings.  I'd like to fix is the
"right way"...


Ok, here is a snippet of /var/log/messages, starting with the loading of
the modules followed by the attempted PPP dialout session.  Note that
for debugging purposes /usr/sbin/pppd is a simple script that invokes
the real pppd passing in a couple of additional parameters (-d ipx).
The script first calls logger to write a page break (************) and
the list of command line parameters to /var/log/messages.

-------------------------------------------------------------------------------
Sep  1 08:28:52 outback kernel: Swansea University Computer Society IPX 0.34 for 
NET3.035
Sep  1 08:28:52 outback kernel: IPX Portions Copyright (c) 1995 Caldera, Inc.
Sep  1 08:29:03 outback kernel: CSLIP: code copyright 1989 Regents of the University 
of California
Sep  1 08:29:03 outback kernel: PPP: version 2.3.3 (demand dialling)
Sep  1 08:29:03 outback kernel: PPP line discipline registered.
Sep  1 08:29:03 outback kernel: PPP BSD Compression module registered
Sep  1 08:29:03 outback kernel: PPP Deflate Compression module registered
Sep  1 08:29:38 outback dialout: *****************************
Sep  1 08:29:38 outback dialout: pppd called <-d ipx> (-detach defaultroute crtscts 
modem outback.chi.il.us:10.8.188.46)
Sep  1 08:29:38 outback kernel: registered device ppp0
Sep  1 08:29:38 outback pppd[18763]: pppd 2.3.4 started by dialout, uid 0
Sep  1 08:29:38 outback pppd[18763]: Using interface ppp0
Sep  1 08:29:38 outback pppd[18763]: Connect: ppp0 <--> /dev/cua0
Sep  1 08:29:42 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:29:48 outback last message repeated 2 times
Sep  1 08:29:48 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:29:51 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:29:51 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:29:54 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:29:54 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:29:57 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:29:57 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:30:00 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:30:00 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:30:03 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:30:03 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:30:06 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:30:06 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:30:09 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:30:09 outback pppd[18763]: Received bad configure-ack:  01 06 00 08 bd ff 02 
08 00 00 d3 e9 01 d2
Sep  1 08:30:12 outback pppd[18763]: IPXCP: timeout sending Config-Requests
Sep  1 08:30:12 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:30:15 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:30:18 outback pppd[18763]: IPCP: timeout sending Config-Requests
Sep  1 08:30:19 outback pppd[18763]: Received bad configure-nak/rej:  03 06 0a 08 bc 2e
Sep  1 08:30:48 outback last message repeated 9 times
Sep  1 08:30:49 outback pppd[18763]: IPCP: timeout sending Config-Requests
Sep  1 08:30:51 outback pppd[18763]: Connection terminated.
Sep  1 08:30:52 outback pppd[18763]: Hangup (SIGHUP)
Sep  1 08:30:52 outback pppd[18763]: Exit.
-------------------------------------------------------------------------------

Any and all help/pointers is appreciated.  Thank you for your time.  :-)

-Jon
9/1/98
[EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to