solaris 2.6 ppp dialin server setup

solaris 2.6 ppp dialin server setup

Post by Karl Berr » Thu, 05 Feb 1998 04:00:00



I've been trying to set up a ppp server on a sparc-solaris2.6 machine,
using the bundled asppp software.  The problem is that ppp never gets
negotiated; the client sends its ConfReq packets, but gets (so far as I
can tell) nothing substantial back.

I've pored over the dialin faq at www.stokely.com, the sunservice tips
at dejanews that someone posted, the man pages, etc.  I looked at the
recommended patches for 2.6, but see nothing apparently related to ppp.

I'm not especially attached to using the bundled Solaris ppp server; if
someone can recommend an alternative, I'd be grateful.  I see some other
recent posts that the 2.6 ppp server has problems, but it does seem to
get past the point where I'm having problems.

OK, the details.  It's a Sparc 4.  One modem, a 33.6 USR Sportster, on
ttya (it's one of those a/b cable thingies).  tip works fine; the only
modem-level changes I made were:
ats0=1   # answer after 1 ring
atq2     # result codes only in originate mode

-- ifconfig shows (I've changed the addresses):
...
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 128.103.50.254 netmask ffffff00 broadcast 128.103.50.255
ipdptp0: flags=28f1<UP,POINTOPOINT,NOTRAILERS,RUNNING,NOARP,MULTICAST,UNNUMBERED> mtu 1500
        inet 128.103.50.254 --> 128.103.50.241 netmask ffffff00
...

-- /etc/asppp.cf is (I manually configured the link up; it actually makes
no difference at this stage, so far as I can tell):
...
ifconfig ipdptp0 plumb fugue pppa netmask + -trailers down

defaults
        interface ipdptp*
        inactivity_timeout 900
        ipcp_async_map 0
        debug_level 9   # uncomment for debugging
        require_authentication pap

path    peer_system_name pppuser
        pap_peer_id pppuser
        pap_peer_password ppppassword

I've also tried it without pap.  It makes no difference.  (pppuser is in
/etc/passwd, pppa is in /etc/hosts & nis, fugue is the name of the
server.  The routing table has a route for ipdptp0 between the hosts, I
did the norip ipdptp0 >/etc/gateways, and I did the arp stuff, but I
don't think those matter at this stage.)

-- I changed /etc/init.d/asppp to start up asppp with -d 9, but nothing
shows up in /etc/log/asppp.log aside from:
08:46:43 process_ipd_msg: ipdptp0 needs connection
08:46:43 place_call: can't find path for ipdptp0
when I ifconfig ipdptp0 up, i.e., it's trying to dial out.

-- I originally configured the serial port according to the sunservice
instructions, using the Modem-Bidirectional template in admintool.  When
that did not work, I went through Dave Brillhart's PPP cookbook steps at
www.stokely.com, but that made no difference either.  Just for
completeness, they were:
          + # sacadm -r -p zsmon0 2> /dev/null
          + # sttydefs -r conttyH8hi 2> /dev/null
          + # pmadm -r -p zsmon -s ttya 2> /dev/null
          + # pmadm -r -p zsmon0 -s ttya 2> /dev/null
          + # sacadm -a -p zsmon0 -t ttymon -c /usr/lib/saf/ttymon -v
            `ttyadm -V` -y "Dial in/out on serial port a"
          + # echo "conttyH8hi:38400 -parenb cs8 ignpar opost onlcr:38400
            hupcl -clocal -parenb ignpar cs8 -istrip -ixon ixany
            crtscts::conttyH8hi" >> /etc/ttydefs
          + # sttydefs -l conttyH8hi
          + # pmadm -a -p zsmon0 -s ttya -i root -f u -v `ttyadm -V` -m
            "`ttyadm -b -S n -d /dev/term/a -l conttyH8hi -s
            /usr/bin/login -m ldterm,ttcompat -T vt100 -i 'Terminal
            Disabled.' -p 'modem login: '`" -y " Modem port ttya"
          + # pmadm -l

-- I have two clients, one is dp2.3 running on a sparc-sunos4.1.4 and the
other the ppp that comes with the Red Hat 5.0 Linux (Intel)
distribution.  Both work fine with all the other various setups I dial
in to.  The modem connection is established fine for both.

-- Here's the log for the Linux client.  No response at all,
apparently (I don't know how to get more detail in the logs):

Feb  4 08:31:00 carrey pppd[792]: Serial connection established.
Feb  4 08:31:01 carrey pppd[792]: Using interface ppp0
Feb  4 08:31:01 carrey pppd[792]: Connect: ppp0 <--> /dev/modem
Feb  4 08:31:01 carrey pppd[792]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0xffff4206> <pcomp> <accomp>]
Feb  4 08:31:30 carrey last message repeated 9 times
Feb  4 08:31:33 carrey pppd[792]: LCP: timeout sending Config-Requests
Feb  4 08:31:33 carrey pppd[792]: Connection terminated.
Feb  4 08:31:33 carrey pppd[792]: Exit.

-- Here's the log for the sun4 client.  It apparently *is* getting
something back, but it's not being accepted.  That may just be because
dp2.3 is so old?  I don't know.

Feb  4 08:28:59 hayley ppp[2278]: Starting ppp daemon version dp-4.0 patchlevel 0
Feb  4 08:28:59 hayley ppp[2278]: popped stream module : ttcompat
Feb  4 08:28:59 hayley ppp[2278]: popped stream module : ldterm
Feb  4 08:28:59 hayley ppp[2278]: Using unit dp1
Feb  4 08:28:59 hayley ppp[2278]: SIFFRAMING unit 1 to value 0
Feb  4 08:28:59 hayley ppp[2278]: hostname = hayley
Feb  4 08:28:59 hayley ppp[2278]: connect: dp1 /dev/cua0
Feb  4 08:28:59 hayley ppp[2278]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0xb4aca28e> <pcomp> <accomp>]
Feb  4 08:28:59 hayley ppp[2278]: fsm_sdata(LCP): Sent code 1, id 1.
Feb  4 08:28:59 hayley ppp[2278]: Timeout 6cc0:17460 in 3 seconds.
Feb  4 08:28:59 hayley ppp[2278]: Setting itimer for 3 seconds.
Feb  4 08:28:59 hayley ppp[2278]: LCP: sending Configure-Request, id 1
Feb  4 08:28:59 hayley ppp[2278]: IO signal received
Feb  4 08:28:59 hayley ppp[2278]: rcvd [LCP ConfReq id=0x1 <mru 1500> <magic 0xb4aca28e> <pcomp> <accomp>]
Feb  4 08:28:59 hayley ppp[2278]: fsm_rconfreq(LCP): Rcvd id 1.
Feb  4 08:28:59 hayley ppp[2278]: lcp_reqci: rcvd MRU
Feb  4 08:28:59 hayley ppp[2278]: (1500)
Feb  4 08:28:59 hayley ppp[2278]:  (ACK)
Feb  4 08:28:59 hayley ppp[2278]: lcp_reqci: rcvd MAGICNUMBER
Feb  4 08:28:59 hayley ppp[2278]: (b4aca28e)
Feb  4 08:28:59 hayley ppp[2278]:  (NAK)
Feb  4 08:28:59 hayley ppp[2278]: lcp_reqci: rcvd PCOMPRESSION
Feb  4 08:28:59 hayley ppp[2278]:  (ACK)
Feb  4 08:28:59 hayley ppp[2278]: lcp_reqci: rcvd ACCOMPRESSION
Feb  4 08:28:59 hayley ppp[2278]:  (ACK)
Feb  4 08:28:59 hayley ppp[2278]: lcp_reqci: returning CONFNAK.
Feb  4 08:28:59 hayley ppp[2278]: sent [LCP ConfNak id=0x1 <magic 0x1ccc195b>]
Feb  4 08:28:59 hayley ppp[2278]: fsm_sdata(LCP): Sent code 3, id 1.
Feb  4 08:29:02 hayley ppp[2278]: Alarm
Feb  4 08:29:02 hayley ppp[2278]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0xb4aca28e> <pcomp> <accomp>]
Feb  4 08:29:02 hayley ppp[2278]: fsm_sdata(LCP): Sent code 1, id 1.
Feb  4 08:29:02 hayley ppp[2278]: Timeout 6cc0:17460 in 3 seconds.
Feb  4 08:29:02 hayley ppp[2278]: Setting itimer for 3 seconds.

If anyone has any clues, hints, or fm's to suggest, I'd be very
grateful.  Please respond by email if possible as well as posting, my
news feeds are not terribly reliable.  TIA.


 
 
 

1. PPP dialin on Solaris 2.6

Hi,
  Has anyone managed to setup a PPP dialin service on Solaris 2.6 with
either the standard PPP package (aspppd) or PPP 3.01?  I'm trying to
setup a dialin server with dynamic IP addressing with 2 modems.  It used
to work under 2.5.1 but has the odd behavior now that sometimes, when
the link is heavily utilized, the modems will suddenly disconnect, and
furthermore, each time I end a PPP session, the PPP user stays logged in
but the PPP log shows the session is closed, but the deviced does not
hangup until I manually go in and "kill" the aspppls process.  Is this a
handshaking problem or is this something wrong with the login manager.
I haven't changed any setup files since 2.5.1.  Please let me know if
anyone has managed to get it to work under 2.6 and if so, I can send
more details if they need it.  Thanks!

        - Kevin Yu

2. Banshee + FBDEV Xserver works!!! (bug report for fbdev as well)

3. HELP:Setup IPForwarding and PPP on Solaris 2.6 Intel with USR modem

4. Windows 98 SE networking?

5. Setup a PPP Dialin Server ?

6. Can't create temp file ?

7. setup of ppp on solaris 2.6

8. Why use pwd(1) for getpwd(3C)? (Re: Why use find?)

9. [Fwd: How to set-up PPP on a SPARC Classic running Solaris 2.6]

10. setup dialin server.......problem with ppp

11. can't setup tftp server in solaris 2.6

12. DNS solaris 2.6 server setup issue

13. PPP server in Solaris 2.6 Part II