Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PC and Server setup

Status
Not open for further replies.

shoux

Technical User
Nov 9, 2000
83
MY

Dear friends,

I would like to access RISC6000 server from my house. The server is located in the office. What are the criterias need to be setup in both machine (PC and Server)

Thank you

Shoux 27/8/2001
 
i got options to choose from:

1. configure the rs6k to receive dialup connection (modem, phone lines, etc.)
2. if your office network is online or have access to Internet - configure your rs6k for access just by telnet (if you have have firewall, specify server_name or IP address to allow such access).
 
'wish, i found it earlier for you.

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

TITLE : Setting up a dial in PPP connection

1, Check that the Async Point to Point Protocol software is installed :-

lslpp -l bos.net.ppp

If not installed, then install using smit install_latest


2, Create a tty to attach the modem to :-

smit maktty
select "tty rs232 Asynchronous Terminal"
select the parent adapter

a, fill in the port number
b, set "Enable LOGIN" to enable
c, select the baud rate required
d, set the flow control to rts (RTS/CTS)
e, leave all other options at their default values

Test the modem and the port by dialing in from a Windows95 machine using hyperterminal and logging into the RS6000 as root. If you are able to dialin and log on to the system then the tty port and modem are okay.


3, Create a PPP user called "ppp" and set the password :-

mkuser ppp
passwd ppp
pwdadm -f NOCHECK ppp

4, Setting up PPP

smit ppp
select "Link Control Configuration"
select "Add a Link Configuration"
enter the following details :-

a, PPP subsystem name [ppp]
b, max server connections [1]
c, max client connections [0]
d, max demand connections [0]
e, max ip interfaces [1]
f, max async hdlc attachments [1]

leave all other options at their default values

smit ppp
select "PPP IP Interfaces"
select "Add a Server Interface"
enter the following details :-

a, Local IP address [10.0.0.1]
b, Starting Remote IP address [10.0.0.2]
c, Number of addresses [1]
d, Netmask [255.255.255.0]

5, Start PPP using :-

startsrc -s pppcontrold

Check that the ppp control daemon is running using:-

lssrc -s pppcontrold

Check that the pp# network interfaces have been created using :-

netstat -in


=================================================
=================================================
=================================================


TITLE : Setting up a dial out PPP connection

In the example below the system will dial the freeserve number and logon as user rs6000.freeserve.co.uk with the password of mypassword :-

1, Check that the Async Point to Point Protocol software is installed :-

lslpp -l bos.net.ppp

If not installed, then install using smit install_latest

2, Create a tty to attach the modem to :-

smit maktty
select "tty rs232 Asynchronous Terminal"
select the parent adapter

a, fill in the port number
b, select the baud rate required
c, set the flow control to rts (RTS/CTS)
d, leave all other options at their default values

3, Test the connection to the modem

You need to have cu installed on the machine, check this using :-

lslpp -L bos.net.uucp

If not installed, then install using smit install_latest


Edit the /etc/uucp/Devices file and append the following line :-

Direct tty## - baud_rate direct

Where tty## is the tty created in step 1, and baud_rate is baud rate number set for that tty.

cu -ml /tty##

"CONNECTED" should be displayed. Enter 'at'. The modem should respond with "OK". You can enter a few at command to check the modem. Exit cu by entering a tilde (~) followed by a period (.)

4, Setting up PPP

smit ppp
select "Link Control Configuration"
select "Add a Link Configuration"
enter the following details :-

a, PPP subsystem name [ppp]
b, max server connections [0]
c, max client connections [1]
d, max demand connections [0]
e, max ip interfaces [1]
f, max async hdlc attachments [1]

leave all other options at their default values


5, Setting up PAP Authentication

smit ppp
select "PAP Authentication"
select "Add a User"
enter the following details :-

User name [rs6000.freeserve.co.uk]
Remote host name [*]
Password [mypassword]

6, Start PPP using :-

startsrc -s pppcontrold

Check that the ppp control daemon is running using:-

lssrc -s pppcontrold

Check that the pp# network interfaces have been created using :-

netstat -in

7, Setting up a debug file.

In /etc/syslog.conf add the line :-

*.debug /tmp/ppp

Create the file /tmp/ppp using :-

touch /tmp/ppp
chmod +w /tmp/ppp

Start debug using :-

refresh -s syslogd

pppcontrold can be set to provide more detailed output :-

lssrc -s pppcontrold

Note the process id (PID)

kill -30 PID-of-pppcontrold

This output can be switched off by :-

kill -31 PID-of-pppcontrold

8, Create a "Chat script".

''
atdt08450796699
login:
rs6000.freeserve.co.uk
word:
mypassword
------------chat--script--ends--above--this--line-----------------------

Save this script as for example ppp-chat1

9, Establishing a connection.

pppattchd is started to establish a PPP link. It calls the pppdial program which uses the "chat script" to do the actual dial out. The dial out command to use should resemble :-

/usr/sbin/pppattached client multilink peer pap tty## connect "/usr/sbin/pppdial -v -f ppp-chat1

After issuing this command, watch the progression of the dial out by executing the following command :-

tail -f /tmp/ppp


 
I guess it depends on what you want to do...

You can log in to the system as if it was directly attached with any vt100 emulator and dial up program.... and just setting up a modem on the rs6000.

You can also set up PPP so you can do transfers and stuff from your pc....I guess it depends if you want to work as a dumb terminal via modem...or as if you are
actually networked in............

The PPP above is great...but you can do a plain old crummy modem setup and
have your pc just dial...the rs6000 and all is well as well.. see below for
Hayes Modem setup.


 

Thanks for both of you,

I will follows your insruction and let you know the result.


shoux
29/8/2001
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top