]> git.ozlabs.org Git - ppp.git/blob - README.sol2
mention pppd/plugins example directory
[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 NOTE: Although the kernel driver and modules have been designed to
8 operate correctly on SMP systems, they have not been extensively
9 tested on SMP machines.  Some users of SMP Solaris x86 systems have
10 reported system problems apparently linked to the use of previous
11 versions of this software.  I believe these problems have been fixed.
12
13
14 Installation.
15 *************
16
17 1. Run the configure script and make the user-level programs and the
18 kernel modules.
19
20         ./configure
21         make
22
23 If you wish to use gcc (or another compiler) instead of Sun's cc, edit
24 the svr4/Makedefs file and uncomment the definition of CC.  You can
25 also change the options passed to the C compiler by editing the COPTS
26 definition.
27
28 2. Install the programs and kernel modules: as root, do
29
30         make install
31
32 This installs pppd, chat and pppstats in /usr/local/bin and the kernel
33 modules in /kernel/drv and /kernel/strmod, and creates the /etc/ppp
34 directory and populates it with default configuration files.  You can
35 change the installation directories by editing svr4/Makedefs.
36
37 If your system normally has only one network interface, the default
38 Solaris 2 system startup scripts will disable IP forwarding in the IP
39 kernel module.  This will prevent the remote machine from using the
40 local machine as a gateway to access other hosts.  The solution is to
41 create an /etc/ppp/ip-up script containing something like this:
42
43         #!/bin/sh
44         /usr/sbin/ndd -set /dev/ip ip_forwarding 1
45
46 See the man page for ip(7p) for details.
47
48 64-bit Support.
49 ***************
50
51 This version has been tested under Solaris 7 (and Solaris 8 Beta) in both 
52 32- and 64-bits environments (Ultra class machines). Installing the package
53 by executing "make install" will result in additional files residing in
54 /kernel/drv/sparcv9 and /kernel/strmod/sparcv9 subdirectories.
55
56 64-bit modules and driver have been compiled and tested using Sun's cc.
57
58 Synchronous Serial Support.
59 ***************************
60
61 This version has working but limited support for the on-board synchronous HDLC 
62 interfaces. It has been tested with the /dev/se_hdlc and /dev/zsh drivers.
63 Synchronous mode was tested with a Cisco router.
64
65 There ppp daemon does not directly support controlling the serial interface.
66 It relies on the /usr/sbin/syncinit command to initialize HDLC mode and 
67 clocking.
68
69 Some bugs remain: large sized frames are not sent/received properly, and
70 may be related to the IP mtu. This
71 may be due to bugs in pppd itself, bugs in Solaris or the serial drivers. 
72 The /dev/zsh driver seems more larger and can send/receive larger frames
73 than the /dev/se_hdlc driver. There is a confirmed bug with NRZ/NRZI mode
74 in the /dev/se_hdlc driver, and Solaris patch 104596-11 is needed to correct
75 it. (However this patch seems to introduce other serial problems. If you
76 don't apply the patch, the workaround is to change the nrzi mode to yes or
77 no, whichever works)
78
79 How to start pppd with synchronous support:
80
81 #!/bin/sh
82
83 local=1.1.1.1   # your ip address here
84 baud=38400      # needed, but ignored by serial driver
85
86 # Change to the correct serial driver/port
87 #dev=/dev/zsh0
88 dev=/dev/se_hdlc0
89  
90 # Change the driver, nrzi mode, speed and clocking to match your setup
91 # This configuration is for external clocking from the DCE
92 connect="syncinit se_hdlc0 nrzi=no speed=64000 txc=rxc rxc=rxc"
93  
94 /usr/sbin/pppd $dev sync $baud novj noauth $local: connect "$connect"
95
96
97 Sample Cisco router config excerpt:
98
99 !
100 ! Cisco router setup as DCE with RS-232 DCE cable
101
102 !         
103 interface Serial0
104  ip address 1.1.1.2 255.255.255.0
105  encapsulation ppp
106  clockrate 64000
107  no nrzi-encoding
108  no shutdown
109 !         
110