---------- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Charset: us-ascii X-Sun-Content-Lines: 82 There were two things I did not configure correctly for PPP : first, the register settings on the modem for the setting Recieved Data software flow conrol should have been set to &I0 (Disables XON/XOFF) Secondly, I needed to set the netmasks in the asppp.cf file as shown below. /etc/asppp.cf: # # /etc/uucp/Systems ifconfig ipdptp0 plumb phoenix pppserver netmask 255.255.255.0 up path interface ipdptp default_route #set default route peer_system_name pppserver #see /etc/uucp/Systems inactivity_timeout 600 #timeout in 10 mins debug_level 1 #see /var/adm/log/asppp.log lcp_mru 552 #optimize round trip delays negotiate_address on #dynamic ip addressing ipcp_async_map 0 I now have ppp working and fully functional internet connection, I now have another problem, minor problem. It seems when the modem hangs, timeouts or whatever, I must stop and restart the ppp daemon(as root of course) before it will go again. If any has this answer please let me know. Attached is all the files you need to get ppp running on Solaris 2.5.1, for anyone who is interested. Thanks to the following people for pointing me in the right direction: Rick Reineman D.J. Gregor Charlie Mengler Bob Radvanovsky Chuck Simpson Sean Ward ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 ipdptp0: flags=8d1 mtu 1500 inet 207.223.184.111 --> 165.236.27.6 netmask ff000000 ether 0:0:0:0:0:0 and netstat -rn: phoenix:/tmp> netstat -rn Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 127.0.0.1 127.0.0.1 UH 0 1656 lo0 165.236.27.6 207.223.184.111 UH 4 2 ipdptp0 224.0.0.0 207.223.184.111 U 4 0 ipdptp0 default 165.236.27.6 UG 0 16 and the hosts files # 127.0.0.1 localhost 165.236.27.18 pppserver 0.0.0.1 phoenix loghost One other note -most docs show the ppp device as ipdptp0 but I only have ipdptp. I dont think this matters since I connect and can send packets back and forth. Thanks in advance-if any body needs more info-uucp files or asppp.log I will forward them as well. ---------- X-Sun-Data-Type: default X-Sun-Data-Description: default X-Sun-Data-Name: recipe X-Sun-Charset: us-ascii X-Sun-Content-Lines: 125 for brevity I'll skip the serial port setup as Celestes at Stokely.com covers this quite nicely. This config got me working with a courier 56k v.everything(port b) on a sparc5 running Solaris 2.5.1 w/all the latest patches as of jan 1998, connecting to netcom(dynamic ips at both ends) USRobotics Courier V.Everything Settings... B0 C1 E1 F1 M1 Q0 V1 X1 BAUD=38400 PARITY=N WORDLEN=8 DIAL=TONE ON HOOK TIMER &A0 &B0 &C1 &D2 &G0 &H1 &I0 &K1 &L0 &M0 &N0 &P0 &R2 &S0 &T5 &U0 &X0 &Y1 %N6 #CID=0 S00=000 S01=000 S02=255 S03=013 S04=010 S05=008 S06=002 S07=060 S08=002 S09=006 S10=007 S11=070 S12=255 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 S58=000 S59=000 S60=000 S61=000 S62=000 S63=000 S64=000 S65=000 S66=000 S67=000 S68=000 S69=000 S70=000 LAST DIALED #: T1234567 OK /etc/uucp/Dialers: # USR Courier V.32 and Sportster # Set the switches as follows: # # 1 2 3 4 5 6 7 8 9 10 # U U D U U U D D D U Courier # U U D U U U U D Sportster # usrv32-ec =,-, "" \dA\pTE1V1X1Q0S2=255S12=255&A0&H1&M5&B2\r\c OK\r \EATDT\T\r\c CONNECT STTY=crtscts,crtsxoff usrv32-nec =,-, "" \dA\pTE1V1X1Q0S2=255S12=255&A0&H1&M0&B0\r\c OK\r \EATDT\T\r\c CONNECT STTY=crtscts,crtsxoff /etc/uucp/Devices: PPP cua/b - Any usrv32-nec /etc/uucp/Systems: pppserver Any PPP 38400 1234567 "" P_ZERO "" \d\d netcom-login: #smith ssword: smithpassword I should note the "\d" is a 2 second delay (see /etc/uucp/Dialers) as I had to play around with this due to a delay of when connection is established and when I finally got a login. I also had to make several attempts with the chat script (username or ogin are some others I've seen). Also netcom expects a pound before the name to distinguish between ppp accounts and shell accounts. I used /usr/lib/uucp/Uutry -r -x9 pppserver. This will enble to trouble shoot the chat script and when connected ppp packets (lots of } as well as a set of ip addresses from the server to you. Once this was done I generated /etc/hosts: # Internet host table # 127.0.0.1 localhost 165.226.57.38 pppserver 0.0.0.1 phoenix loghost load packages: SUNWpppk SUNWapppr SUNWapppu You must install the packages in the order above. /etc/asppp.cf: ifconfig ipdptp0 plumb phoenix pppserver netmask 255.255.255.0 down path interface ipdptp default_route #set default route peer_system_name pppserver #see /etc/uucp/Systems inactivity_timeout 900 #timeout in 15 mins debug_level 1 #see /var/adm/log/asppp.log lcp_mru 552 #optimize round trip delays negotiate_address on #dynamic ip addressing ipcp_async_map 0 Lots of stuff here to be concerned with: I have only 1 interface device /dev/ipdptp but I have seen examples with ipdptp0 or 1. Set debug level to 9 until tested. lcp_mru other people suggest 1500 negototiate_address on is needed for dynamic ip's ipcp_async_map 0 - ppp protocol, may not need for other isp's /etc/nsswitch.conf: hosts: files dns /etc/resolv.conf: domain netcom.com nameserver 199.182.120.1 nameserver 199.182.120.2 Fire up ppp: /etc/init.d/asppp start At this point you should be able to ping pppserver and your modem should dialup and establish a connection. try an nslookup next to see if you can resolve names, if you can launch Netscape(Set Netscape to direct internet connection) and have fun. I should note that I also have empty /etc/defaultrouter and /etc/notrouter it didnt seem to matter if I had the or not you may need to play with this if you have ethernet or many network interfaces. This setup works quite well with one exception: when the connection times out or disconnects I must /etc/init.d/asppp stop then: route -f and /etc/init.d/asppp start if anyones comes up with a solution for this let me know! Jim Musso jam@cdicad.com musso@ix.netcom.com other docs to look at Sun infoDoc 11976 Sun Bug Report Doc 1236446 Celestes tutorial on Solaris 2. Modems and all those other great source of info found on the Stokely PPP page. Also Andy Polyakov's How to (appro@fy.chalmers.se) whose scripts I massaged for my setup and are attached. ---------- X-Sun-Data-Type: shell-script X-Sun-Data-Description: shell-script X-Sun-Data-Name: start X-Sun-Charset: us-ascii X-Sun-Content-Lines: 10 #!/bin/sh -e /etc/init.d/asppp start echo "Dialing Netcom server Please wait" IF=`awk '/^ifconfig.*'$1'/ {print$2}' /etc/asppp.cf` ifconfig $IF up ping pppserver > /dev/null 2>&1 sleep 15 clear echo "You may now launch Netscape" sleep 5 ---------- X-Sun-Data-Type: default-app X-Sun-Data-Description: default X-Sun-Data-Name: stop X-Sun-Charset: us-ascii X-Sun-Content-Lines: 11 /etc/init.d/asppp stop IF=`awk '/^ifconfig.*'$1'/ {print$2}' /etc/asppp.cf` ifconfig $IF 0.0.0.1 $1 down PID=`ps -e | awk '/aspppd/ {print$1}'` if [ "$PID" ]; then kill -HUP $PID #hang up modem fi route -f #flush the routing tables echo "Goodbye for now - But I'll be back!!!!" sleep 5 Jim Musso System Manager CDI Cad Services 3137 E. Elwood Street #160 Phoenix, Az. 85034 jam@cdicad.com 602-431-4413 602-431-4422(fax) CCCCCCCC DDDDDDDDD III CCCCCCCCC DDDDDDDDDDD III CCC DDD DDD III CCC DDD DDD III CCCCCCCCC DDD DDDDDDD III CCCCCCCC DDD DDDDDD III