Procedure for PPP Connenction from Home (Dec.25,'96)
MachTen Controls
IP(fujiipb): 0.0.0.0
Subnet Mask: 255.255.0.0
Gateway: 130.87.33.1
DNS: 130.87.34.2
How to Establish PPP Connection in MachTen
- Preparation of Pppclient Scripts
The following examples show how to make ppp connection for
user=UserId with passwd=PassWd.
For connection with tip:
- cd /etc
- cp pppclient pppclient.ORIG
- cp pppclient.ORIG pppclient.tip
- vi pppclient.tip
- LINE="/dev/cm.out1" # communications toolbox port #1
- cat >$PPPLOGIN <<'@EOF@'
- "" ""
- ogin: UserId/ppp
- word: PassWd
- CONNECT ""
- @EOF@
- chmod a+x pppclient.tip
For direct connection:
- vi pppclient
- LINE="/dev/cm.out1" # communications toolbox port #1
- cat >$PPPLOGIN <<'@EOF@'
- "" atv1&c0&d0&k3s0=1s2=128
- OK atdt771210
- CONNECT ""
- ogin: "UserId/ppp"
- word: "PassWd"
- CONNECT ""
- @EOF@
- chmod a+x pppclient
In any case, the CONNECT "" string after "PassWd" is essential to
make callback process work.
- First Time
Prepare /dev/cm.out1 file as the modem port using Communications ToolBox
as follows, where strings in [] are prompts.
- su
- tip cm.out
- ---> Select "Powerport Modem Card"
- Bau rate: 57600
- DTR&CTS
- Then press "OK"
- [connected]
- atv1&c0&d0&k3s0=1s2=128
- [OK]
- atdt771210
- [CONNECT 115200]
- [login:]
Here select the last item in "File" and save this to /dev/cm.out1.
Type ~. to exit the "tip" command.
- pppclient.tip
This starts ppp connection. Try
- netstat -r
- ping jlcuxf
- ....
- Second Time
The lazy way is
- su
- /etc/pppclient
More secure way is
- su
- tip cm.out1
- [connected]
- atdt771210
- [CONNECT 115200]
- [login:]
Type ~. to exit the "tip" command and then
- /etc/pppclient.tip
How to Kill PPP Connection in MachTen
To disconnect
- su
- ps -ax | grep pppd
- kill -HUP [pid]
Usually, one needs to wait long enough to reconnect.
Back to Keisuke Fujii's Home Page
fujiik@jlcuxf.kek.jp Jan. 29, 1997