2 .\" Copyright (c) 2002, 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.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" 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 fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH PPPOEC 1M "Jan 9, 2002"
8 pppoec \- PPPoE chat utility
12 \fBpppoec\fR [\fB-o\fImillisecs\fR\fR] [\fB-s\fR\fImillisecs\fR] [\fB-v\fR] \fIdevice\fR
13 [\fIservice\fR [ [except]\fIserver\fR... [only]]]
18 \fBpppoec\fR [\fB-o\fImillisecs\fR\fR] [\fB-v\fR] \fB-i\fR [\fIdevice\fR]
24 The \fBpppoec\fR utility implements the client-side negotiation of PPPoE. It is
25 intended to be used with the \fBpppd\fR(1M) \fBconnect\fR option, in the same
26 manner as the \fBchat\fR(1M) utility is used for asynchronous dial-up PPP.
29 When given with the \fB-i\fR flag, \fBpppoec\fR sends out a broadcast query on
30 the given interface named by the \fIdevice\fR parameter. You can specify no
31 other arguments in this mode. All responding PPPoE servers and the offered
32 services are displayed on standard output.
35 Otherwise, when given without the \fB-i\fR flag, \fBpppoec\fR does the full
36 PPPoE client-side negotiation. The \fIdevice\fR parameter is the intended
37 Ethernet interface, and must already be plumbed with \fBsppptun\fR(1M). The
38 optional \fIservice\fR parameter specifies a particular service desired; other
39 offered services will be ignored. The optional \fIserver\fR parameter specifies
40 a specific server desired. You can specify \fIserver\fR as an Ethernet address
41 in the usual x:x:x:x:x:x format (with "\fB*\fR" in any of the six byte
42 positions interpreted to mean "any"), or as a symbolic name resolved through
43 \fB/etc/ethers\fR (or NIS), or as a PPPoE access concentrator name. The sense
44 of the match (true or false) can be inverted by specifying the keyword
45 \fBexcept\fR before this string. This parameter can be specified more than
46 once, and the first match is taken.
49 If you specify the \fIserver\fR parameter, then the selected servers become
50 "preferred." If no preferred server responds, then the first responding server
51 is used instead. To exclude non-matching servers entirely, append the keyword
56 The following options are supported:
63 Sends out broadcast query over interface specified by \fIdevice\fR.
72 Sets the initial wait time in milliseconds for PADO from the server before PADI
73 is retried. The default is 500 milliseconds for normal operation, or 3000
74 milliseconds (3 seconds) for inquiry (\fB-i\fR) mode.
83 Sets the initial wait time in milliseconds for PADS from the server before PADR
84 is retried. The default is 2000 milliseconds (2 seconds).
93 Displays verbose progress messages, including all PPPoE messages sent, and all
94 state machine transitions.
99 You normally do not need to adjust the parameters set with \fB-o\fR and
100 \fB-s\fR. They are provided for coping with unusually slow servers.
104 The following operands are supported:
111 plumbed Ethernet interface
120 preferred server or, if you specify \fBonly\fR, the specified server
129 desired service; other available services are ignored
134 \fBExample 1 \fRConnecting to Any Service on \fBhme0\fR
137 The following command enables you to connect to any PPPoE service on
143 # /usr/bin/pppd sppptun plugin pppoe.so \
144 connect "/usr/lib/inet/pppoec hme0" debug
151 Often, a command such as the preceding is specified in an \fB/etc/ppp/peers\fR
152 file instead. For example, enter the following in \fB/etc/ppp/peers/myisp\fR:
159 connect "/usr/lib/inet/pppoec hme0"
167 To invoke the PPP connection described in the file, enter:
172 % /usr/bin/pppd call myisp
179 Note that, because the \fB/etc/ppp/peers\fR files are considered privileged by
180 \fBpppd\fR, you need not be root to invoke the preceding command.
183 \fBExample 2 \fRConnecting to a Particular Service
186 A more complex example: on \fBhme0\fR, connect to only the \fBinternet\fR
187 service offered by PPPoE servers with access concentrator name \fBisp\fR, but
188 not to any Ethernet addresses starting with \fB40:0:1a\fR.
193 # \fB/usr/lib/inet/pppoec hme0 internet except 40:0:1a:*:*:* isp only\fR
200 Note that the \fBexcept 40:0:1a:*:*:*\fR filter must come before \fBisp\fR,
201 because the filters are first-match.
206 The following exit values are returned:
213 Successful completion.
229 \fB\fB/usr/lib/inet/pppoec\fR \fR
238 \fB\fB/dev/sppptun\fR\fR
241 Solaris PPP tunneling device driver.
247 \fB\fB/etc/ppp/connect-errors\fR\fR
250 usual location of error output (see DIAGNOSTICS, below)
256 \fBpppd\fR(1M), \fBsppptun\fR(1M), \fBpppoed\fR(1M), \fBsppptun\fR(7M)
259 \fIRFC 2516, Method for Transmitting PPP Over Ethernet (PPPoE)\fR, Mamakos et
264 Error messages are written to standard error, which is normally redirected by
265 \fBpppd\fR to \fB/etc/ppp/connect-errors\fR. The errors can also be redirected
266 to \fBpppd\fR's standard output by using the \fBupdetach\fR option.
269 If you specify the \fB-v\fR, verbose progress messages are displayed, including
270 all PPPoE messages sent, and all state machine transitions. Specifying the
271 \fBupdetach\fR or \fBnodetach\fR \fBpppd\fR option is helpful when using