|
Irix PPP Installation and Configuration GuidePPP (Point to Point Protocol) is a way of extending a TCP/IP network over point-to-point links (like phone lines). Point-to-point links can be configured as dialout only, dialin only, or bidirectional (the union of dialin and dialout). These instructions are designed for Irix PPP in Irix 5.2 and later. If you are running 4.0.5 and want to run PPP, you will need to follow the instructions to install and configure MorningStar PPP.Prior to IRIX-6.3, there is little GUI (visual tool) support for configuring modems, and much less configuring PPP. Even so, the tool does not adequately handle all cases. Therefore, this document will only discuss configuration using a shell, and these instructions presume at least limited familiarity with text editors, such as vi or jot. You need to be familiar with the shell method to do debugging, even with the GUI tool.
Verifying Software Installation StatusBefore you attempt to configure your PPP software, you must make sure that the software is properly installed. You must have the standard but nondefault Irix subsystems eoe.sw.uucp and eoe.sw.ppp ( for releases prior to 6.2: eoe2.sw.uucp and eoe1.sw.ppp) installed. You can check whether they are installed with the versions command.Type the following to verify software installation:
% versions eoe{1,2}.\*.{uucp,ppp}
The following is displayed (in IRIX-5.3) if the software is installed:
I = Installed, R = Removed Name Date Description I eoe2 03/24/95 IRIX Execution Environment 2, 5.3 with XFS I eoe2.man 03/24/95 IRIX Execution Environment Man Pages I eoe2.man.ppp 03/24/95 Point-to-Point Protocol Man Pages I eoe2.man.uucp 03/24/95 UNIX-to-UNIX Copy Man Pages I eoe2.sw 03/24/95 IRIX Execution Environment Software I eoe2.sw.ppp 03/24/95 Point-to-Point Protocol Software I eoe2.sw.uucp 03/24/95 UUCP UtilitiesOther OS releases will show slightly different output.
Modem Selection and InstallationThe next step in getting PPP running is modem installation and configuration.
You must have an IP address before you can finish your PPP configuration. The page on IP address selection can help you determine how to assign (or request) an IP address, and how to determine how to route packets (on a server).
Starting a PPP ConnectionThere are several ways to start a PPP connection. All of the options are put in the file /etc/ppp.conf. See `man ppp` for details and instructions; mostly the defaults are fine. Probably the most important options are "in" for a dialin-only server, and "quiet" for the autodial client and bi-directional dial server. A startup file would look similar to the SLIP example. This example also shows adding a chkconfig option check. Note that "rmt" is only a label in /etc/ppp.conf and in fact is the loginname (userid) for a dialin host.
#!/bin/sh
# ppp boot startup script
case $1 in
start)
/etc/killall ppp
if /etc/chkconfig ppp && test -x /usr/etc/ppp -a -s /etc/ppp.conf
then
/usr/etc/ppp -r rmt &
fi
;;
stop)
/etc/killall -TERM ppp
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
The entry in /etc/ppp.conf for this situation might look
like the following:
rmt quiet remotehost=rmt localhost=client
uucp_name=Prmt active_timeout=300 inactive_timeout=30
add_route
Where "localhost=client" specifies the IP address of
the local end of the PPP link, if different from the hostname. Prior to
Irix-5.3 patch517 this keyword was the less logical
"lochost=client", but it is still accepted for
compatibility. Note that the entry in /etc/ppp.conf can cover
multiple lines. The first line must start in the first column, the
continuation lines must not. For any dynamically dialed setup (IRIX-5 or 6 PPP with "quiet" option), you can start a link via a ping or rlogin or almost anything that wants to go over the link. The connection times out and hangs up the phone after a programmable idle time, then re-dials when the traffic resumes. This can save a lot of money if you are connecting long distance! The idle times are configurable (see the ppp man page). Note that it takes about 30 seconds for the first packet to get through when starting an idle line, so active timeouts much less than a couple of minutes are more frustrating than useful. Most ISPs want to use server-assigned IP addresses. This saves IP address numbers, and reduces routing problems for them. While you can do this in quiet mode, it is neither recommended nor reliable. You need to run in out mode, and PPP must be manually started and stopped each time. A typical /etc/ppp.conf entry might look like:
rmt out remotehost=0,0 localhost=0,0
uucp_name=Prmt add_route
Where, as usual, rmt is some name you assign to specify that
connection. It is most common to call it the name of the service (eg:
joeISP), but it must be one word (but I don't know the length
limit). If the other machine you are connecting to is not an SGI machine, you may have to add the -mp -ccp keywords to get PPP to connect (you may also need to add this if one of the hosts is running IRIX-6.2). Some PPP implementations do not handle the negotiation correctly, and this can cause the negotiation to fail, thus causing the connection to fail.
Setting the Dialin ConfigurationA PPP server is easier to configure than a PPP client, but security is far more important, since it is required to have dialable modems. There are three parts to configuring a server:
Scott Henry <scotth@sgi.com> Last modified: Sun Feb 1 13:59:00 1998 |
|
made by Digital Vintage with nginx-s3-gateway and some magic digitalvintage.ru t.me/digitalvintage_ru instagram.com/digitalvintage.ru |