2 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
5 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SPPPTUN 1M "May 27, 2009"
8 sppptun \- PPP tunneling driver utility
17 \fBsppptun plumb\fR [\fB-s\fR \fIsap\fR] \fIprotocol device\fR
22 \fBsppptun unplumb\fR \fIinterface\fR
33 The \fBsppptun\fR utility is used to configure and query the Solaris PPP
34 tunneling device driver, \fB/dev/sppptun\fR. Currently, only PPP over Ethernet
35 (PPPoE) is supported, so the \fBplumb\fR and \fBunplumb\fR arguments are used
36 to specify Ethernet interfaces that are to be used for PPPoE, and the
37 \fBquery\fR option lists the plumbed interfaces.
40 The use of \fBsppptun\fR to add interfaces is similar to the use of
41 \fBifconfig\fR(1M) to add interfaces to IP. The plumbing is done once for each
42 interface, preferably at system start-up time, and is not normally manipulated
43 on a running system. If multiple instances of PPP are run over a single
44 interface, they share the plumbing to that interface. Plumbing for each session
45 is not required (and not possible for PPPoE).
48 The proper way to plumb interfaces for PPPoE is to list the interfaces, one per
49 line, in the \fB/etc/ppp/pppoe.if\fR file. If alternate Ethertype (SAP) values
50 are necessary, then include the PPPoE Session and Discovery Stage values as
51 hexadecimal on the same line. The line format is:
55 \fIinterface\fR [\fIsession\fR [\fIdiscovery\fR]]
62 The defaults are the Ethertypes specified in RFC 2516, and most users should
63 not need to set these values. See the examples for one possible use.
68 \fB\fBsppptun plumb\fR\fR
72 When specified with no additional arguments, the plumb argument lists the
73 protocols that are supported by the utility. These are the strings that are
74 used as the \fIprotocol\fR argument below.
80 \fB\fBsppptun plumb [\fB-s\fR \fIsap\fR] \fIprotocol\fR \fIdevice\fR\fR\fR
84 This plumbs a new interface into the driver. The \fIprotocol\fR parameter is
85 \fBpppoe\fR for the PPP-carrying "Session Stage" connection or \fBpppoed\fR for
86 the PPPoE "Discovery Stage" connection. Both connections must be present for
87 each Ethernet interface that is to be used for PPPoE. The \fIdevice\fR
88 parameter is the path name of the Ethernet interface to use (use
89 \fBifconfig\fR(1M) to list available devices). If the path begins with
90 \fB/dev/\fR, then this portion may be omitted.
92 The \fB-s\fR \fIsap\fR option can be specified to use an alternate Ethertype
93 (SAP) for the selected protocol. The \fIsap\fR value must be given in
94 hexadecimal. Some access servers use Ethertypes for PPPoE different from those
95 in RFC 2516. The defaults are 8864 for \fBpppoe\fR and 8863 for \fBpppoed\fR.
101 \fB\fBsppptun unplumb \fIinterface\fR\fR\fR
105 This removes an existing interface from the driver and terminates any PPP
106 sessions that were using the interface. The \fIinterface\fR parameter is the
107 name of the interface as reported when the interface was plumbed.
113 \fB\fBsppptun query\fR\fR
117 Displays the canonical names of all interfaces plumbed into the
118 \fB/dev/sppptun\fR device driver.
123 \fBExample 1 \fRSetting up to Use PPPoE on \fBhme0\fR
126 Plumb the \fBhme0\fR interface.
131 # \fBsppptun plumb pppoed hme0\fR
133 # \fBsppptun plumb pppoe hme0\fR
141 Remove the \fBhme0\fR interface.
146 # \fBsppptun unplumb hme0:pppoed\fR
147 # \fBsppptun unplumb hme0:pppoe\fR
153 \fBExample 2 \fRScript to Remove All Plumbed Interfaces
158 for intf in `sppptun query`
160 sppptun unplumb $intf
167 \fBExample 3 \fRInteroperating with 3COM HomeConnect Dual Link ADSL
171 # \fBdladm show-link\fR
172 LINK CLASS MTU STATE OVER
174 # \fBecho nge0 3c13 3c12 > /etc/ppp/pppoe.if\fR
182 The following exit values are returned:
189 Successful completion.
198 One or more errors occurred.
205 \fB\fB/etc/ppp/pppoe.if\fR\fR
208 list of Ethernet interfaces to be plumbed at boot time
214 \fB\fB/usr/sbin/sppptun\fR\fR
223 \fB\fB/dev/sppptun\fR\fR
226 Solaris PPP tunneling device driver
232 \fBpppd\fR(1M), \fBpppoec\fR(1M), \fBpppoed\fR(1M), \fBsppptun\fR(7M)
235 \fIRFC 2516, Method for Transmitting PPP Over Ethernet (PPPoE)\fR, Mamakos et