Pppoe No Mikrotik.pdf

(138 KB) Pobierz
91715349 UNPDF
PPPoE
Document revision 1.6 (Mon Jul 17 14:11:18 GMT 2006)
This document applies to MikroTik RouterOS V2.8
Table of Contents
Table of Contents
General Information
Summary
Quick Setup Guide
Specifications
Related Documents
Additional Documents
PPPoE Client Setup
Description
Property Description
Example
Monitoring PPPoE Client
Property Description
Example
PPPoE Server Setup (Access Concentrator)
Description
Property Description
Notes
Example
PPPoE Users
Description
PPPoE Server User Interfaces
Description
Property Description
Example
Application Examples
PPPoE in a multipoint wireless 802.11g network
Troubleshooting
Description
General Information
Summary
! " #$ $ $
! %!& "
"
' $ "
($
Page 1 of 10
Copyright 1999-2005, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
$ %)#
" %)#
$ "
* +,! +-% .! / $ +-% .!
"
- " $ $
" * +,! /
" $
/ 012"33 - # 4& - 31531153111 *5
+& " 6 $ * 71 +!- * 320
+!- $ "
Note +-% .! #)- *!/#)-3 *!/#)-2 +-% .!
$ $" ! $
+-% .! 8" 9 /radius monitor bad-replies
" "
!
* +,! $
* +,!
$
Quick Setup Guide
* +,!
1. : /'
/interface pppoe-client add name=pppoe-user-mike user=mike password=123 \
\... interface=wlan1 service-name=internet disabled=no
* +,! - # !
1. - 10.1.1.62 10.1.1.72 /'
/ip pool add name="pppoe-pool" ranges=10.1.1.62-10.1.1.72
2. - pppoe-profile local-address ;
pppoe-pool '
/ppp profile add name="pppoe-profile" local-address=10.1.1.1 remote-address=pppoe-pool
3. - mike 123 '
/ppp secret add name=mike password=123 service=pppoe profile=pppoe-profile
4. 6 '
/interface pppoe-server server add service-name=internet interface=wlan1 \
\... default-profile=pppoe-profile
Page 2 of 10
Copyright 1999-2005, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
Specifications
Packages required: ppp
License required: level1 (limited to 1 interface), level3 (limited to 200 interfaces), level4 (limited to
200 interfaces), level5 (limited to 500 interfaces), level6 (unlimited)
Home menu level: /interface pppoe-server, /interface pppoe-client
Standards and Technologies: PPPoE (RFC 2516)
Hardware usage: PPPoE server may require additional RAM (uses approx. 9KiB (plus extra 10KiB
for packet queue, if data rate limitation is used) for each connection) and CPU power. Maximum of
65535 connections is supported.
Related Documents
! *
- -+
+-% .!
. ---
& *
Additional Documents
& '
'55"8"552<3="
#'
+-! 4 >< >0 >0! * 67 2111 ? "6
'55""5
PPPoE Client Setup
Home menu level: /interface pppoe-client
Description
/ " $ *
"
Note for Windows " ! $ @ @
@*A-#B3@ @*A-#@ @3@
"
Property Description
ac-name ( text ; default: "" ) - this may be left blank and the client will connect to any access
concentrator that offers the "service" name selected
Page 3 of 10
Copyright 1999-2005, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
 
add-default-route ( yes | no ; default: no ) - whether to add a default route automatically
allow ( multiple choice: mschap2 , mschap1 , chap , pap ; default: mschap2, mschap1, chap, pap ) -
the protocol to allow the client to use for authentication
dial-on-demand ( yes | no ; default: no ) - connects to AC only when outbound traffic is generated
and disconnects when there is no traffic for the period set in the idle-timeout value
interface ( name ) - interface the PPPoE server can be connected through
mru ( integer ; default: 1480 ) - Maximum Receive Unit. The optimal value is the MTU of the
interface the tunnel is working over decreased by 20 (so, for 1500-byte ethernet link, set the MTU
to 1480 to avoid fragmentation of packets)
mtu ( integer ; default: 1480 ) - Maximum Transmission Unit. The optimal value is the MTU of the
interface the tunnel is working over decreased by 20 (so, for 1500-byte ethernet link, set the MTU
to 1480 to avoid fragmentation of packets)
name ( name ; default: pppoe-out1 ) - name of the PPPoE interface
password ( text ; default: "" ) - a user password used to connect the PPPoE server
profile ( name ) - default profile for the connection
service-name ( text ; default: "" ) - specifies the service name set on the access concentrator. Leave it
blank unless you have many services and need to specify the one you need to connect to
use-peer-dns ( yes | no ; default: no ) - whether to set the router's default DNS to the PPP peer DNS
(i.e. whether to get DNS settings from the peer)
user ( text ; default: "" ) - a user name that is present on the PPPoE server
Example
gig
-#
testSN
john password '
[admin@RemoteOffice] interface pppoe-client> add interface=gig \
\... service-name=testSN user=john password=password disabled=no
[admin@RemoteOffice] interface pppoe-client> print
Flags: X - disabled, R - running
0 R name="pppoe-out1" mtu=1480 mru=1480 interface=gig user="john"
password="password" profile=default service-name="testSN" ac-name=""
add-default-route=no dial-on-demand=no use-peer-dns=no
Monitoring PPPoE Client
Command name: /interface pppoe-client monitor
Property Description
ac-mac ( MAC address ) - MAC address of the access concentrator (AC) the client is connected to
ac-name ( text ) - name of the AC the client is connected to
encoding ( text ) - encryption and encoding (if asymmetric, separated with '/') being used in this
connection
service-name ( text ) - name of the service the client is connected to
status ( text ) - status of the client
Dialing - attempting to make a connection
Page 4 of 10
Copyright 1999-2005, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
Verifying password... - connection has been established to the server, password verification in
progress
Connected - self-explanatory
Terminated - interface is not enabled or the other side will not establish a connection uptime
(time) - connection time displayed in days, hours, minutes and seconds
uptime ( time ) - connection time displayed in days, hours, minutes and seconds
Example
pppoe-out1 '
[admin@MikroTik] interface pppoe-client> monitor pppoe-out1
status: "connected"
uptime: 10s
encoding: "none"
service-name: "testSN"
ac-name: "10.0.0.1"
ac-mac: 00:C0:DF:07:5E:E6
[admin@MikroTik] interface pppoe-client>
PPPoE Server Setup (Access Concentrator)
Home menu level: /interface pppoe-server server
Description
/
" #$ 3=1 *5 # =11 #."
. #. $"
service name $ $
" access concentrator name identity
$ " $ $ /system identity "
/ppp secret --- "
Note 4? $ " ! $
4? $ $"
Property Description
authentication ( multiple choice: mschap2 | mschap1 | chap | pap ; default: mschap2, mschap1,
chap, pap ) - authentication algorithm
default-profile ( name ; default: default ) - default profile to use
interface ( name ) - interface to which the clients will connect to
keepalive-timeout ( time ; default: 10 ) - defines the time period (in seconds) after which the router is
starting to send keepalive packets every second. If no traffic and no keepalive responses has came
for that period of time (i.e. 2 * keepalive-timeout), not responding client is proclaimed
disconnected.
max-mru ( integer ; default: 1480 ) - Maximum Receive Unit. The optimal value is the MTU of the
Page 5 of 10
Copyright 1999-2005, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
access concentrator name
Zgłoś jeśli naruszono regulamin