Solaris PPP Setup


pkgs that needs to installed before you can start.

***************
# pkginfo | egrep "PPP|UUCP"
system  SUNWapppr       PPP/IP Asynchronous PPP daemon configuration files
system  SUNWapppu       PPP/IP Asynchronous PPP daemon and PPP login service
system  SUNWbnur        Networking UUCP Utilities, (Root)
system  SUNWbnuu        Networking UUCP Utilities, (Usr) 
system  SUNWpppk        PPP/IP and IPdialup Device Drivers

***************




Files you that you will need to edit.

***************
/etc/asppp.cf



ifconfig ipdptp0 plumb netappp netagw netmask 255.255.255.0 up 
path
        interface                       ipdptp
        default_route                                      #set default route 
        peer_system_name                netappp            #see /etc/uucp/Systems 
        debug_level                             9          #see /var/adm/log/asppp.log 9=full 1=min
        will_do_authentication          pap
        pap_id                          MYUSERNAME 
        pap_password                    MYPASSWORD
        negotiate_address               on                 #dynamic ip addressing 
        inactivity_timeout              3600               #timeout in 1 hour

***************
/etc/uucp/Devices

#
ACU cua/b - Any hayes
Direct cua/b - Any direct
PPP cua/a - Any usrv32-nec  # added PPP line declared usrv32-nec for modem string

***************

/etc/uucp/Dialers

## this is the standard string for US Robotics modem
usrv32-nec =,-, "" \dA\pTE1V1X1Q0S2=255S12=255&A0&H1&M0&B0\r\c OK\r \EATDT\T\r\c CONNECT STTY=crtscts,crtsxoff

***************
/etc/uucp/Systems

### 385-2675 if for the AS5300 modem bank / 212-8999 is US Robotic modem bank
###				uncomment the correct one for your dialin
###
# netappp Any PPP 38400 6022128999 "" P_ZERO "" \d\d ogin: MYUSERNAME word: MYPASSWORD
#
netappp Any PPP 38400 6023852675 "" P_ZERO "" \d\d sername: MYUSERNAME sword: MYPASSWORD

***************
/etc/host

127.0.0.1       localhost
0.0.0.1         netappp
206.124.174.1   netagw # this one is for the as5300
206.124.172.1   netagw # this one is for the total control

***************
/etc/resolv.conf
domain  neta.com
nameserver      216.19.223.25
nameserver      216.19.223.26
***************
/etc/nsswitch.conf
### addedd dns to this line
hosts:      files dns

***************
/etc/defaultrouter
netagw 

***************




DEBUGGING

###########
### UUCP
###########
### will give the same debuggin messages of having debug 9 in you asppp.cf file
/usr/lib/uucp/Uutry/-r -x9 netappp or  cu -d -L netappp

###########
### PPP 
###########
### check /var/adm/log/asppp.cf with debugging set to 9 in /etc/asppp.cf
will generate many messages during the login process. Such as:

Device Type PPP wanted
Trying device entry 'cua/b' from '/etc/uucp/Devices'.
processdev: calling setdevcfg(ppp, PPP)
fd_mklock: ok
fixline(9, 38400)
gdial(usrv32-nec) called
Trying caller script 'usrv32-nec' from '/etc/uucp/Dialers'.
expect: ("")
got it
sendthem (DELAY
APAUSE
TE1V1X1Q0S2=255S12=255&A0&H1&M0&B0^M)
expect: (OK^M)
ATE1V1X1Q0S2=255S12=255&A0&H1&M0&B0^M^M^JOK^Mgot it
sendthem (ECHO CHECK ON
A^JATTDDTT66002222112288999999^M^M)
expect: (CONNECT)
^M^JCONNECTgot it
STTY crtscts,crtsxoff
getto ret 9
expect: ("")
got it
expect: ("")
got it
sendthem (DELAY
DELAY
^M)
expect: (ogin:)
^M^Jtrojan.neta.com login:got it
sendthem (MYUSERNAME^M)
expect: (word:)
 ^M^Jtrojan.neta.com login: MYUSERNAME^M^JPassword:got it
sendthem (MYPASSWORD^M)
call cleanup(0)^M
00:34:28 000984 ipdptp0 SEND PPP ASYNC 23 Octets LCP Config-Req  ID=b4 LEN=18 MRU=1500 MAG#=5c396719 ProtFCOMP AddrCCOMP
00:34:28 000985 ipdptp0 RECEIVE {Unescaped characters: 0a 0d } PPP ASYNC 67 Octets {BAD FCS} NB (AP) {Unrecognized protocol:    d 0a 50 50 50 20 73 65 73 7
3 69 6f 6e 20 66 72 6f 6d 20 28 32 ..... }
00:34:28 000986 ipdptp0 RECEIVE PPP ASYNC 25 Octets NB LCP Config-Req  ID=01
00:34:28 000987 ipdptp0 SEND
00:34:28 000988 ipdptp0 SENDConfig-Req  ID=b5 LEN=18 MRU=1500 MAG#=5c396719 ProtFCOMP AddrCCOMP
00:34:28 000989 ipdptp0 SEND PPP ASYNC 25 Octets NB LCP Config-ACK  ID=01 LEN=20 ACCM=00000000 MAG#=c397f5cf ProtFCOMP AddrCCOMP
00:34:31 000990 ipdptp0 SEND PPP ASYNC 23 Octets LCP Config-Req  ID=b6 LEN=18 MRU=1500 MAG#=5c396719 ProtFCOMP AddrCCOMP
00:34:31 000991 ipdptp0 RECEIVE PPP ASYNC 23 Octets NB LCP Config-ACK  ID=b6 LEN=18 MRU=1500 MAG#=5c396719
00:34:31 000992 ipdptp0 SEND
00:34:31 000993 ipdptp0 SE00 01 02 03 06 0f 10 } PPP ASYNC 21 Octets NB (A) IP_NCP Config-Req  ID=b7 LEN=16 VJCOMP MAXSID=15 Sid-comp-OK IPADDR=0.0.0.0
00:34:31 000994 ipdptp0 RECEIVE PPP ASYNC 21 Octets NB IP_NCP Config-Req  ID=01
00:34:31 000995 ipdptp0 SEND
00:34:31 000996 ipdptp0 SEN04 06 0f 10 } PPP ASYNC 21 Octets NB (A) IP_NCP Config-ACK  ID=01 LEN=16 VJCOMP MAXSID=15 No-sid-comp IPADDR=206.124.172.4
00:34:31 000997 ipdptp0 RECEIVE PPP ASYNC 15 Octets NB IP_NCP Config-NACK  ID=b7 LEN=10 IPADDR=206.124.172.8
00:34:31 001000 ipdptp0 RECEIVE PPP ASYNC 14 Octets NB
00:34:31 001001 ipdptp0 REC{Unre
00:34:31 001002 ipdptp0 REC00 09 11 05 00 01 04
00:34:58 001003 ipdptp0 SEND {Unescaped characters: 00 01 03 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f } PPP ASYNC 89 Octets
(AP) IP_PROTO 45 00 00 54 c1 c3 40 00 ff 01 c4 e1 ce 7c ac 08 ce 7c ac 01 .....
00:34:58 001004 ipdptp0 RECEIVE PPP ASYNC 89 Octets NB (AP) IP_PROTO 45 00 00 54 c1 c3 40 00 fe 01 c5 e1 ce 7c ac 01 ce 7c ac 08 .....
00:35:05 001005 ipdptp0 SEND {Unescaped characters: 00 01 03 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f } PPP ASYNC 89 Octets
(AP) IP_PROTO 45 00 00 54 c1 c4 40 00 ff 01 c4 e0 ce 7c ac 08 ce 7c ac 01 .....
00:35:05 001006 ipdptp0 RECEIVE PPP ASYNC 89 Octets NB (AP) IP_PROTO 45 00 00 54 c1 c4 40 00 fe 01 c5 e0 ce 7c ac 01 ce 7c ac 08 .....



###########
### MODEM
###########
check/edit /etc/remote 
## I add cuaa and modem to my config

cuaa:dv=/dev/cua/a:br#9600
modem:dv=/dev/cua/a:br#38400
cuab:dv=/dev/cua/b:br#9600


you should now be able to communicate with the modem 'tip modem'

## example ##

# tip modem
connected
at&f1
OK
at&w
OK
ati4
USRobotics Courier V.Everything Settings...

   B0  C1  E1  F1  M1  Q0  V1  X7
   BAUD=38400  PARITY=N  WORDLEN=8
   DIAL=PULSE  ON HOOK   TIMER

   &A3  &B1  &C1  &D2  &G0  &H1  &I0  &K1  &L0  &M4  &N0
   &P0  &R2  &S0  &T5  &X0  &Y1  %N6  

   S00=001  S01=000  S02=043  S03=013  S04=010  S05=008  S06=002  S07=060  
   S08=002  S09=006  S10=007  S11=070  S12=050  S13=000  S14=001  S15=000  
   S16=000  S17=000  S18=000  S19=000  S20=000  S21=010  S22=017  S23=019  
   S24=150  S25=005  S26=001  S27=000  S28=008  S29=020  S30=000  S31=000  
   S32=009  S33=000  S34=000  S35=000  S36=000  S37=000  S38=000  S39=000  
   S40=000  S41=000  S42=126  S43=200  S44=015  S45=000  S46=000  S47=000  
   S48=000  S49=000  S50=000  S51=000  S52=000  S53=000  S54=064  S55=000  
   S56=000  S57=000  

   LAST DIALED #: T6022128999                           

OK
~.
[EOT]


***************

ifconfig -a

lo0: flags=849 mtu 8232
        inet 127.0.0.1 netmask ff000000 
le0: flags=863 mtu 1500
        inet 206.124.189.7 netmask ffffff00 broadcast 206.124.189.255
        ether 8:0:20:73:12:d8 
ipdptp0: flags=8d1 mtu 8232
        inet 0.0.0.1 --> 206.124.172.1 netmask ffffff00 
        ether 0:0:0:0:0:0 


netstat -rn

Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
206.124.172.1        0.0.0.1               UH       2      0  ipdptp0
206.124.189.0        206.124.189.7         U        3     38  le0
224.0.0.0            206.124.189.7         U        3      0  le0
default              206.124.174.1         UG       0      7  
127.0.0.1            127.0.0.1             UH       0      0  lo0

**************

you can start it with 

/etc/rc2.d/S47asppp start
ping netagw

Stopping.
/etc/rc2.d/S47asppp stop

Probably will need to edit this shell script to do a little more 
like removing all default routes checking for successful connections

I have had to restart the asppp deamon to get this to work correctly
with the as5300 I might just be just a modem compatibilty problem.
Could try this with a rockwell chipset and see if I have better luck.