Setting up PPP on a PowerMax OS system Some assumptions for this example: Client will be a Win95/98 PC with Hyperterminal & Dialup networking installed. The PPP port on the Concurrent end will be the remote port on a NightHawk or the Com2 port of a PowerHawk. Configure modems on both ends: On The Concurrent: Connect an ascii terminal to the modem that will be used on the PowerHawk/NightHawk system and set the speed, error correction & compression options appropriately for your site & save them. To be able to login to your remote port you need a port monitor running. Login to the Concurrent as 'root' and execute the following commands: sacadm -a -p ttymon1 -t ttymon -v `ttyadm -V` -c "/usr/lib/saf/ttymon" pmadm -a -p ttymon1 -s 00 -fu -v `ttyadm -V` -S login -m "`ttyadm -b -h -r0 -t60 -d /dev/remote -l vt00 -p \"login: \" -s /usr/bin/shserv -m ldterm,ttcompat`" Once the port monitor is running you should be able to connect your console cable to the remote tty port and log in. If the login from a directly connected terminal was successful, reconnect the modem to the remote port of the Concurrent machine. . On the PC: Open Hyterterminal and add a new connection for the Concurrent machine. From within Hyperterminal, click [file],[properties] and then [configure] from the 'phone number' tab. Set the speed. Click the 'connection' tab and [advanced] to set error correction & compression options. Click the 'options' tab and check the box "Bring up terminal window after dialing" Test the modems by using Hyperterminal to dial in to a normal user account on the Concurrent. Resolve any connection problems you're having at this point before continuing. Configure a Dial-up Network connection on the PC. Click [My Computer], [Dial-up Networking],[New Connection] & fill in the blanks. Click [Configure] and setup the modem identical to the Hyperterminal configuration above, Click [OK]. Click [next], fill in the phone number & click [Finish]. There should be an icon for your newly added connection in the Dialup Networking window. Right click on that new icon and select 'properties'. Click the 'ServerTypes' tab. The only box that should be checked on this page is "TCP/IP", all others should be unchecked. Click [TCP/IP settings], select "Specify an IP address" and enter the IP address that you want to assign to the PC end of the PPP link. Select & fill in the name server address if required. Check "Use IP header compression". Click [OK], [OK]. 3 Configure a PPP port on the Concurrent. Edit /etc/confnet.d/inet/interface and add the following entry: ppp:ppp0:[LOCAL IP ADDRESS]:/dev/ppp: [DESTINATION IP ADDRESS] netmask [NETMASK]:add_ppp: [LOCAL IP ADDRESS] is the IP address to be assigned to the Concurrent end of the link. [DESTINATION IP ADDRESS] is the PC's IP address entered in step 2 above. [NETMASK] should be set appropriately for the IP addresses used. Edit /etc/inet/pppauth and /etc/inet/ppphosts as appropriate. If these files do not exist, there should be sample files called etc/inet/pppauth.samp and /etc/inet/ppphosts.samp with comments on how to set things up. The pppauth entry is just a 'userID password' eg. ppplogin ppppass The ppphosts file should look like this: *ppplogin - - idle=10 tmout=10 mru=1500 nomgc conf=10 term=2 nak=10 accomp protcomp ipaddr VJ Use pppconf to add a user account for the ppp login. Select "Configure PPP authentication parameters" from the pppconf menu. Enter a User ID & password (eg. ppplogin ppppass) & exit pppconf. Confirm that there is an entry in the /etc/passwd file similar to this ppplogin:x:101:1::/usr/lib/ppp:/usr/lib/ppp/ppp Note the important part: the shell name (/usr/lib/ppp/ppp). Also, the id is important, because it should match an id from the /etc/inet/ppphosts file. Note that if you want the ppp connection to work with systems other than the one you are connecting directly to, you may have to set up routes on the ppp connection server. Also, IP_FORWARDING (tunable) will have to be enabled as the ppp server essentially is arouter/gateway for the connection. Note also that on the PC side (Assuming your running Windows 95), "Enable Software Compression" should be unchecked, as it appears to actually slow down the connection. "Enable Header Compression" should be checked, as we do support Van Jacobson header compression (this should also be noted in the ppphosts file with a 'VJ'). 4 Test the link Reboot the Concurrent & log on as root. The 'ifconfig ppp0' command should display something similar to the following: ppp0: flags=4d1 inet 192.0.0.100 à 192.0.0.101 netmask ffffff00 (Where 192.0.0.100 is the Concurrent & 192.0.0.101 is the PC) The 'netstat' command should display something similar to the following: netstat -ian Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Collis lo0 8232 127.0.0.0 127.0.0.1 496 0 496 0 0 dec0 1500 192.0.0.0 192.0.0.5 407 0 258 0 0 ppp0 296 192.0.0.0 192.0.0.100 0 0 0 0 0 The 'pppstat' command should display the following: pppstat ppp: 0 outbound connection requests 0 inbound connection requests 0 connections established 0 connections closed 0 password authentication failures 0 packets sent 0 received packets with bad FCS 0 received packets with bad address 0 received packets with bad control 0 received packets with bad protocol 0 correct packets received 0 packets with bad id field 0 loopback packets 0 state table errors If everything appears to be OK up to this point, try establishing a ppp connection from the PC. Double click the new icon in Dial-up Networking that you added in step 2. It should dial the modem & bring up a terminal window on 'carrier detect'. Login as the PPP user (ppplogin & ppppass in example in step 3 above). Once the login is complete, the terminal window will start to display what appears to be garbage. At that point, click the [Continue] button. The window will close & the ppp session will be established. Try bringing up telnet, ftp or a browser & connect to the Concurent.