maio 212012
 

Este tutorial instrui como configurar um PPPoE Server no Mikrotik.


1- Configurar o Mikrotik para ter acesso à Internet (WAN)

[admin@MikroTik] > /ip address add address=192.168.0.2/24 interface=ether1
[admin@MikroTik] > /ip route add gateway=192.168.0.1
[admin@MikroTik] > 

2- Configurar o DNS Server

[admin@MikroTik] > /ip dns set servers=192.168.0.1,8.8.8.8 allow-remote-requests=yes
[admin@MikroTik] >
[admin@MikroTik] > ping uol.com.br
HOST SIZE TTL TIME STATUS
200.147.67.142 56 51 15ms
200.147.67.142 56 51 15ms
200.147.67.142 56 51 14ms
200.147.67.142 56 51 16ms
200.147.67.142 56 51 14ms
sent=5 received=5 packet-loss=0% min-rtt=14ms avg-rtt=14ms max-rtt=16ms

3- Configurar a LAN

[admin@MikroTik] > /ip address add address=172.16.0.1/24 interface=ether2
[admin@MikroTik] > 

4- Criar o pool de IPs a ser usado pelo PPPoE

[admin@MikroTik] > /ip pool add name=pool-pppoe ranges=172.16.0.2-172.16.0.254
[admin@MikroTik] > 

5- Criar o Profile PPPoE

[admin@MikroTik] > /ppp profile add change-tcp-mss=default dns-server=200.152.65.14 local-address=192.168.0.1 name=profile-pppoe only-one=yes remote-address=pool-pppoe use-compression=default use-encryption=default use-mpls=default use-vj-compression=default
[admin@MikroTik] > 

6- Configurar o PPPoE Server

[admin@MikroTik] > /interface pppoe-server server add authentication=chap,mschap1,mschap2,pap default-profile=profile-pppoe disabled=no interface=ether2 keepalive-timeout=10 max-mru=1480 max-mtu=1480 max-sessions=0 mrru=disabled one-session-per-host=yes service-name=pppoe-server
[admin@MikroTik] > 

7- Configurar o Usuário PPPoE

[admin@MikroTik] > /ppp secret add name=usuario1 limit-bytes-in=1024k limit-bytes-out=1024k profile=pppoe-profile password=senha1
[admin@MikroTik] > 

8- Configurar o Firewall para mascarar a saída dos clientes

[admin@MikroTik] > /ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=ether1 src-address=172.16.0.0/24
[admin@MikroTik] > 

Para a utilização de PPPoE com Radius, troque o ítem “7” pelos passos abaixo:

Configuração do cliente Radius

[admin@MikroTik] > /radius add accounting-backup=no accounting-port=1813 address=ip_servidor_radius authentication-port=1812 called-id="" disabled=no domain="" realm="" secret=senha_servidor_radius service=ppp timeout=300ms
[admin@MikroTik] > /radius incoming set accept=yes port=3799 

Configuração do PPPoE para fazer Accounting no Radius

[admin@MikroTik] > /ppp aaa set accounting=yes interim-update=0s use-radius=yes

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)