Example AmiTCP Startnet scripts
A Non-Dynamic SLIP script
The person for this script entered:
- Default IP Address: 199.0.2.1
- Username: Escomm
- Serial Device: serial.device - Unit: 0
- Baud Rate: 14400
- MTU: 1006
- Default Gateway/Destination Address: 199.3.12.1
- Netmask: 255.255.255.254
.key IPADDRESS
.bra {
.ket }
.def IPADDRESS 199.0.2.1
; log in
echo
echo login: Escomm
AmiTCP:bin/login -f Escomm
AmiTCP:bin/umask 022
AmiTCP:AmiTCP
WaitForPort AMITCP
; Configure loop-back device
AmiTCP:bin/ifconfig lo0 localhost
; Assure that ENV:Sana2 exists
if not exists ENV:Sana2
makedir ENV:Sana2
endif
; Create slip0 configuration file
echo "serial.device 0 14400 0.0.0.0 MTU=1006 7WIRE " >ENV:Sana2/slip0.config
; Configure slip0
AmiTCP:bin/ifconfig slip0 {IPADDRESS} 199.3.12.1 netmask 255.255.255.254
; Add IP address entry for this host
rx "address AMITCP; 'ADD HOST {IPADDRESS} bongo.freenet.com'"
; Add route to this host
AmiTCP:bin/route add {IPADDRESS} localhost
; Add route to the default gateway
AmiTCP:bin/route add default 199.3.12.1
setenv HOSTNAME `AmiTCP:bin/hostname`
Assign TCP: Exists > NIL:
IF Warn
Mount TCP: from AmiTCP:devs/Inet-Mountlist
EndIf
; Start the internet `super server'
run AmiTCP:bin/inetd
run <>nil: SMTPd
A Non-Dynamic PPP script
The person for this script entered:
- Default IP Address: 150.10.10.1
- Username: PPPman
- Serial Device: serial.device - Unit: 0
- Baud Rate: 14400
- MTU: 1006
- Default Gateway/Destination Address: 50.112.10.2
- Netmask: 255.255.255.254
online devs:networks/ppp.device 0
; log in
echo
echo login: PPPman
AmiTCP:bin/login -f PPPman
AmiTCP:bin/umask 022
AmiTCP:AmiTCP
WaitForPort AMITCP
; Configure loop-back device
AmiTCP:bin/ifconfig lo0 localhost
; Assure that ENV:Sana2 exists
if not exists ENV:Sana2
makedir ENV:Sana2
endif
; Configure ppp0
AmiTCP:bin/ifconfig ppp0 $ppp0ipremote $ppp0ipremote
; Add IP address entry for this host
rx "address AMITCP; 'ADD HOST $ppp0iplocal big.pppconnect.com '"
; Add route to this host
AmiTCP:bin/route add $ppp0iplocal localhost
; Add route to the default gateway
AmiTCP:bin/route add default $ppp0ipremote
setenv HOSTNAME `AmiTCP:bin/hostname`
Assign TCP: Exists > NIL:
IF Warn
Mount TCP: from AmiTCP:devs/Inet-Mountlist
EndIf
; Start the internet `super server'
run AmiTCP:bin/inetd
run <>nil: SMTPd
A Dynamic SLIP script
The person for this script entered:
- Default IP Address: 0.0.0.0 - not known
- Username: Amigaman
- Serial Device: serial.device - Unit: 0
- Baud Rate: 9600
- MTU: 1006
- Default Gateway/Destination Address: 123.111.32.11
- Netmask: 255.255.255.254
.key IPADDRESS
.bra {
.ket }
.def IPADDRESS 0.0.0.0
; log in
echo
echo login: Amigaman
AmiTCP:bin/login -f Amigaman
AmiTCP:bin/umask 022
AmiTCP:AmiTCP
WaitForPort AMITCP
; Configure loop-back device
AmiTCP:bin/ifconfig lo0 localhost
; Assure that ENV:Sana2 exists
if not exists ENV:Sana2
makedir ENV:Sana2
endif
; Create slip0 configuration file
; Configure slip0
AmiTCP:bin/ifconfig slip0 {IPADDRESS} 123.111.32.11 netmask 255.255.255.254
; Add route to this host
AmiTCP:bin/route add {IPADDRESS} localhost
; Add route to the default gateway
AmiTCP:bin/route add default 123.111.32.11
setenv HOSTNAME `AmiTCP:bin/hostname`
Assign TCP: Exists > NIL:
IF Warn
Mount TCP: from AmiTCP:devs/Inet-Mountlist
EndIf
A Dynamic PPP script
The person for this script entered:
- Default IP Address: 0.0.0.0 - not known
- Username: Coolguy
- Serial Device: serial.device - Unit: 0
- Baud Rate: 9600
- MTU: 1006
- Default Gateway/Destination Address: 0.0.0.0 - not known
- Netmask: 255.255.255.254
online devs:networks/ppp.device 0
; log in
echo
echo login: Coolguy
AmiTCP:bin/login -f Coolguy
AmiTCP:bin/umask 022
AmiTCP:AmiTCP
WaitForPort AMITCP
; Configure loop-back device
AmiTCP:bin/ifconfig lo0 localhost
; Assure that ENV:Sana2 exists
if not exists ENV:Sana2
makedir ENV:Sana2
endif
; Configure ppp0
AmiTCP:bin/ifconfig ppp0 $ppp0iplocal $ppp0ipremote
; Add route to this host
AmiTCP:bin/route add $ppp0iplocal localhost
; Add route to the default gateway
AmiTCP:bin/route add default $ppp0ipremote
setenv HOSTNAME `AmiTCP:bin/hostname`
Assign TCP: Exists > NIL:
IF Warn
Mount TCP: from AmiTCP:devs/Inet-Mountlist
EndIf
Back to AmiTCP index
Back to Kainaw's Internet Guide Index
Please email me at Kainaw@cris.com.
Last update, Nov 25, 1995