2024-10-15 10:20:29 +08:00
|
|
|
Introduction.
|
1995-12-19 07:59:54 +08:00
|
|
|
*************
|
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
This file describes the installation process for ppp-2.5 on systems
|
|
|
|
running an OpenSolaris-derived OS, such as Illumos or OpenIndiana.
|
|
|
|
For these systems, the STREAMS kernel modules are supplied with the
|
|
|
|
OS itself and are used as-is by this distribution. For more
|
|
|
|
information on these distributions (including kernel source) see:
|
2002-09-07 14:07:48 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
https://www.illumos.org/
|
|
|
|
https://illumos.org/docs/about/distro/
|
2002-09-07 14:07:48 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
For Oracle Solaris systems, either use the vendor-supplied PPP
|
|
|
|
implementation ("Solaris PPP 4.0" based on pppd-2.4.0), or download
|
|
|
|
an older version of the pppd sources here:
|
2002-09-07 14:07:48 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
https://download.samba.org/pub/ppp/
|
2002-09-07 14:07:48 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
The last version known to compile and run correctly on Oracle
|
|
|
|
Solaris 10 is pppd-2.4.8. It may be possible to compile and use
|
|
|
|
newer versions on either Solaris 11 or by installing third-party
|
|
|
|
compilers; this has not been tested.
|
2002-09-07 14:07:48 +08:00
|
|
|
|
1999-08-12 11:56:41 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
Installation.
|
1999-10-01 03:52:59 +08:00
|
|
|
*************
|
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
1. Make sure you have a suitable compiler installed. This package was
|
|
|
|
tested with "pkg install gcc-14" but other modern compilers should
|
|
|
|
work.
|
1999-10-01 03:52:59 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
2. Run the configure script and build the package.
|
1999-10-01 03:52:59 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
./configure --with-runtime-dir=/var/run --with-logfile-dir=/var/log/ppp
|
|
|
|
make
|
1999-10-01 03:52:59 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
The configure script will automatically find the compiler if it's in
|
|
|
|
the standard location (/usr/bin/gcc). By default, everything will be
|
|
|
|
installed in /usr/local. Use "--prefix" to choose a different
|
|
|
|
installation directory if desired. Use "./configure -h" to see other
|
|
|
|
options.
|
2002-09-07 14:07:48 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
3. Install the programs.
|
2002-09-07 14:07:48 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
sudo make install
|
1999-10-08 09:11:04 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
This installs the following:
|
1999-10-08 09:11:04 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
/usr/local/sbin pppd, chat, pppstats, pppdump
|
|
|
|
/usr/local/share/man/man8 man pages
|
|
|
|
/usr/local/include/pppd plug-in header files
|
|
|
|
/usr/local/lib/pppd/$VER plug-in modules
|
|
|
|
/usr/local/etc/ppp example configuration files
|
|
|
|
|
|
|
|
If your system normally has only one network interface at boot
|
|
|
|
time, the default Solaris system startup scripts will disable IP
|
|
|
|
forwarding in the IP kernel module. This will prevent the remote
|
|
|
|
machine from using the local machine as a gateway to access other
|
|
|
|
hosts. The solution is to create an /etc/ppp/ip-up script
|
|
|
|
containing something like this:
|
1999-10-01 03:52:59 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
#!/bin/sh
|
|
|
|
/usr/sbin/ndd -set /dev/ip ip_forwarding 1
|
1999-09-14 05:33:18 +08:00
|
|
|
|
2024-10-15 10:20:29 +08:00
|
|
|
See the man page for ip(7p) for details.
|
1999-09-14 05:33:18 +08:00
|
|
|
|
|
|
|
|
1999-08-12 11:56:41 +08:00
|
|
|
Synchronous Serial Support.
|
|
|
|
***************************
|
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
This version has working but limited support for the on-board
|
|
|
|
synchronous HDLC interfaces. It has been tested with the
|
|
|
|
/dev/se_hdlc, /dev/zsh, HSI/S, and HSI/P drivers. Synchronous mode
|
|
|
|
was tested with a Cisco router.
|
2000-04-13 19:59:40 +08:00
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
The ppp daemon does not directly support controlling the serial
|
2024-10-15 10:20:29 +08:00
|
|
|
interface. It relies on the OS-supplied /usr/sbin/syncinit command
|
|
|
|
to initialize HDLC mode and clocking.
|
1999-08-12 11:56:41 +08:00
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
How to start pppd with synchronous support:
|
1999-08-12 11:56:41 +08:00
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
#!/bin/sh
|
1999-08-12 11:56:41 +08:00
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
local=1.1.1.1 # your ip address here
|
|
|
|
baud=38400 # needed, but ignored by serial driver
|
1999-08-12 11:56:41 +08:00
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
# Change to the correct serial driver/port
|
|
|
|
#dev=/dev/zsh0
|
|
|
|
dev=/dev/se_hdlc0
|
1999-08-12 11:56:41 +08:00
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
# Change the driver, nrzi mode, speed and clocking to match
|
|
|
|
# your setup.
|
|
|
|
# This configuration is for external clocking from the DCE
|
|
|
|
connect="syncinit se_hdlc0 nrzi=no speed=64000 txc=rxc rxc=rxc"
|
1999-08-12 11:56:41 +08:00
|
|
|
|
2002-09-07 14:07:48 +08:00
|
|
|
/usr/sbin/pppd $dev sync $baud novj noauth $local: connect "$connect"
|
|
|
|
|
|
|
|
Sample Cisco router config excerpt:
|
|
|
|
|
|
|
|
!
|
|
|
|
! Cisco router setup as DCE with RS-232 DCE cable
|
|
|
|
!
|
|
|
|
!
|
|
|
|
interface Serial0
|
|
|
|
ip address 1.1.1.2 255.255.255.0
|
|
|
|
encapsulation ppp
|
|
|
|
clockrate 64000
|
|
|
|
no nrzi-encoding
|
|
|
|
no shutdown
|
|
|
|
!
|