8980 BIOS clock is sometimes one hour fast
[unleashed.git] / usr / src / man / man1m / sppptun.1m
blob5f9bef0088064f35fb1a34595da77105da0c8689
1 '\" te
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"
7 .SH NAME
8 sppptun \- PPP tunneling driver utility
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBsppptun plumb\fR
13 .fi
15 .LP
16 .nf
17 \fBsppptun plumb\fR [\fB-s\fR \fIsap\fR] \fIprotocol device\fR
18 .fi
20 .LP
21 .nf
22 \fBsppptun unplumb\fR \fIinterface\fR
23 .fi
25 .LP
26 .nf
27 \fBsppptun query\fR
28 .fi
30 .SH DESCRIPTION
31 .sp
32 .LP
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.
38 .sp
39 .LP
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).
46 .sp
47 .LP
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:
52 .sp
53 .in +2
54 .nf
55 \fIinterface\fR [\fIsession\fR [\fIdiscovery\fR]]
56 .fi
57 .in -2
58 .sp
60 .sp
61 .LP
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.
64 .SH USAGE
65 .sp
66 .ne 2
67 .na
68 \fB\fBsppptun plumb\fR\fR
69 .ad
70 .sp .6
71 .RS 4n
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.
75 .RE
77 .sp
78 .ne 2
79 .na
80 \fB\fBsppptun plumb [\fB-s\fR \fIsap\fR] \fIprotocol\fR \fIdevice\fR\fR\fR
81 .ad
82 .sp .6
83 .RS 4n
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.
91 .sp
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.
96 .RE
98 .sp
99 .ne 2
101 \fB\fBsppptun unplumb \fIinterface\fR\fR\fR
103 .sp .6
104 .RS 4n
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.
111 .ne 2
113 \fB\fBsppptun query\fR\fR
115 .sp .6
116 .RS 4n
117 Displays the canonical names of all interfaces plumbed into the
118 \fB/dev/sppptun\fR device driver.
121 .SH EXAMPLES
123 \fBExample 1 \fRSetting up to Use PPPoE on \fBhme0\fR
126 Plumb the \fBhme0\fR interface.
129 .in +2
131 # \fBsppptun plumb pppoed hme0\fR
132 hme0:pppoed
133 # \fBsppptun plumb pppoe hme0\fR
134 hme0:pppoe
136 .in -2
141 Remove the \fBhme0\fR interface.
144 .in +2
146 # \fBsppptun unplumb hme0:pppoed\fR
147 # \fBsppptun unplumb hme0:pppoe\fR
149 .in -2
153 \fBExample 2 \fRScript to Remove All Plumbed Interfaces
155 .in +2
157 #!/bin/sh
158 for intf in `sppptun query`
160         sppptun unplumb $intf
161 done
163 .in -2
167 \fBExample 3 \fRInteroperating with 3COM HomeConnect Dual Link ADSL
169 .in +2
171 # \fBdladm show-link\fR
172 LINK        CLASS    MTU    STATE    OVER
173 nge0        phys     1500   up       --
174 # \fBecho nge0 3c13 3c12 > /etc/ppp/pppoe.if\fR
176 .in -2
179 .SH EXIT STATUS
182 The following exit values are returned:
184 .ne 2
186 \fB\fB0\fR\fR
188 .RS 5n
189 Successful completion.
193 .ne 2
195 \fB\fB1\fR\fR
197 .RS 5n
198 One or more errors occurred.
201 .SH FILES
203 .ne 2
205 \fB\fB/etc/ppp/pppoe.if\fR\fR
207 .RS 21n
208 list of Ethernet interfaces to be plumbed at boot time
212 .ne 2
214 \fB\fB/usr/sbin/sppptun\fR\fR
216 .RS 21n
217 executable command
221 .ne 2
223 \fB\fB/dev/sppptun\fR\fR
225 .RS 21n
226 Solaris PPP tunneling device driver
229 .SH SEE ALSO
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
236 al, February 1999