]> git.ozlabs.org Git - ppp.git/blob - README.sol2
e9457da281f026682e7024e90ece9f6702f0c7ec
[ppp.git] / README.sol2
1 This file describes the installation process for ppp-2.3 on systems
2 running Solaris 2.  The Solaris 2 and SVR4 ports share a lot of code
3 but are not identical.  The STREAMS kernel modules and driver for
4 Solaris 2 are in the svr4 directory (and use some code from the
5 modules directory).
6
7 Installation.
8 *************
9
10 1. Run the configure script and make the user-level programs and the
11 kernel modules.
12
13         ./configure
14         make
15
16 If you wish to use gcc (or another compiler) instead of Sun's cc, edit
17 the svr4/Makedefs file and uncomment the definition of CC.  You can
18 also change the options passed to the C compiler by editing the COPTS
19 definition.
20
21 2. Install the programs and kernel modules: as root, do
22
23         make install
24
25 This installs pppd, chat and pppstats in /usr/local/bin and the kernel
26 modules in /kernel/drv and /kernel/strmod, and creates the /etc/ppp
27 directory and populates it with default configuration files.  You can
28 change the installation directories by editing svr4/Makedefs.
29
30 If your system normally has only one network interface, the default
31 Solaris 2 system startup scripts will disable IP forwarding in the IP
32 kernel module.  This will prevent the remote machine from using the
33 local machine as a gateway to access other hosts.  The solution is to
34 create an /etc/ppp/ip-up script containing something like this:
35
36         #!/bin/sh
37         /usr/sbin/ndd -set /dev/ip ip_forwarding 2
38
39 Under Solaris 2.6, the value 2 is invalid; use 1 instead.  See the man
40 page for ip(7p) for details.