steve doliov's PPPGuide narrative
#1) You have got to get the com port working. from what you told me, i am
almost certain i know what is wrong. [if it is not working]
you need to do the following
a) edit the file named asy.conf in the
/platform/i86pc/kernel/drv directory.
if your file looks anything like mine (and it probably does),
the 13th line right now begins with a comment
(the "#" character) followed
by name=...
remove the comment so the line reads name...
(by ... i mean the rest of the line).
b) save the changed file
c) return to the root directory and, this is the important part, type
touch / reconfigure.
d) now go to a command line login as root, and type shutdown -g 0 -i 0
to bring the system down.
e) after you get a message saying syncing file systems and no more [N]
characters appear, turn your machine off and then turn it on again.
when you log back in, you should be able to use the admin tool to
configure com port b. configure it as a bidirectional modem. quit the
admin tool. from a command line, you should now be able to
cu -b 8 5551212 and hear the modem try to dial this number. if so, you
are in great shape, because half the battle has been won.
now the fun stuff
1) edit /etc/uucp/Devices so that the last two lines of the file read:
ACU cua/b - 38400 hayes
Direct cua/b - 38400 direct
2) if there are any other lines just before the two that you add, that say
pretty much the same thing, delete those two lines.
for example, the line may say ACU cua/b - 19200 modem or so forth.
3) edit /etc/uucp/Systems so that the last line reads:
aliasmyisp Any ACU 38400 5551212 prompt1: response1 prompt2: response2
#aliasmyisp, choose any easy to remember string for this, I use wco
#because my net service providers name is wco
#Any ACU 38400 is to be typed as is.
#5551212, replace this with the number you want the modem to dial
#prompt1: replace this with the first prompt you receive from your
#isp. if it is Login:, then replace prompt1: with Login:
#if the first prompt is foo, the replace prompt1: with foo
#likewise, response1 is replaced by what you type in response to your
#first prompt. you can have as many of these (prompt response) sequences
#that you need until you isp starts sending PPP packets.
#just remember, case sensitivity is important.
4) edit /etc/hosts so it reads
127.0.0.1 localhosts
199.199.199.3 mymachinename loghost
199.4.199.4 aliasmyisp
# first line to be typed as appears here
# second line, the ip address should be the one you have selected for
# your machine. replace mymachinename with whatever you call you machine
# loghost to be typed as is
# third line. the ip address should be the one of your isp
# the aliasmyisp should be the same alias you use in the
# /etc/Systems file
5) edit or create the file named /etc/resolv.conf <- no e in resolv!
domain myispdomain
nameserver 199.4.99.10
# domain is typed as is, myispdomain should be at least a two level
# name, such as candy.net or berkeley.edu
# nameserver is typed as is, the ip address is the ip address of the
# isp's nameserver (which can be the same as the ip adress of the isp,
# but isn't always the same.
# you are allowed up to three nameserver entries in this file
6) edit the /etc/asppp.cf file to read as follows (the comments in this
file you can leave alone):
ifconfig ipdptp0 plumb mymachinename myispalias mtu 1500 private up
# replace myispalias with the alias you have been using in the
# other files
# replace mymachinename in the above line with the name of your host
# also the same mymachinename in /etc/hosts
path
inactivity_timeout 1200 # Approx. 20 minutes
interface ipdptp0
negotiate_address on
ipcp_async_map 0
ipcp_compression vj
default_route
lcp_compression on
peer_system_name myispalias
# replace myispalias in this
# line and the line above that
# begins with ifconfig with
# then alias used in
# /etc/uucp/Systems
7) we are almost done. edit the /etc/rc2.d/S69inet file to include the
following lines. placement of these lines is crucial.
default=`ifconfig ipdptp0 | grep inet | nawk ' { print $4 }'`
route add default $default 0
#
# Set NIS domainname if locally configured.
---when i say placement is crucial, i mean you must add the two lines
above the comments directly above where that comment appears. make sure
not to alter any other lines in this file. if you have not edited this
file previously, i believe the Set NIS domainname... comment is on line 79
of this file.
8) the last piece. edit the /etc/nsswitch.conf file. find the line that
reads:
hosts: files
modify this line so it reads
hosts: files dns
you are done!
make sure your modem is on.
type the following.
ping myispalias
you will hear nothing for a while. then the modem should begin to dial.
you will probably get a messaage saying no response from host myispalias.
after you hear the modem negotiate the connection, you should be able to
type ping myispalias
again. this time,
you should get a response such as
myispalias is alive
if you do get this response, excellent! a ppp connection has been
established.
you may now do whatever you like.
you can telnet berkeley.edu.
you can ftp java.sun.com
you can web browse if you have a browser
you can ping and finger to your hearts content.
i haven't yet worked the mail connection. i know if i sent you mail from
solaris mail facility, the reply address would be iguana.wco.com and this
would not allow you to reply to this mail. so instead i started a ppp
connection and the used a console window to telnet to my shell account.
if you have any further problems, let me know, because i can give you the
info on how to debug the connection if it isn't working, execept it is an
equally long e-mail note and i hoe you won't need bit.
take care,
steve doliov