Tutoriais

How to Authenticate a PPPoE on MikroTik: Complete Tutorial

A autenticação PPPoE (Point-to-Point Protocol over Ethernet) é uma técnica amplamente utilizada para gerenciar conexões de internet em provedores de serviços. No Mikrotik, configurar a autenticação PPPoE permite que você conecte clientes à rede de forma segura e eficiente. Neste tutorial, você aprenderá a configurar a autenticação PPPoE no Mikrotik de maneira simples e prática.

Prerequisites for Configuring PPPoE Authentication on MikroTik

Antes de começar, verifique se você possui os seguintes itens:
  • Acesso ao dispositivo Mikrotik (via Winbox ou CLI).
  • Basic knowledge of PPPoE and its configuration.

1. Accessing MikroTik

Para configurar a autenticação PPPoE, você precisará acessar o seu dispositivo:
  • Via Winbox: Baixe e execute o Winbox. Conecte-se ao seu Mikrotik usando o endereço IP ou MAC.
  • Via CLI: Use um terminal SSH para se conectar ao Mikrotik com seu nome de usuário e senha.

2. Creating a PPPoE Server

Agora que você está dentro do Mikrotik, siga estes passos para criar um servidor PPPoE:
  1. No menu do Winbox, clique em PPP.
  2. Vá até a aba PPPoE Servers.
  3. Clique no botão Add para criar um novo servidor PPPoE.
  4. Set the interface on which the server will be active.
  5. Configure the authentication options, such as authentication type and the IP address pool to be used.
  6. Clique em OK para salvar as configurações.

CLI command example:

/interface pppoe-server add service-name=pppoe-server interface=ether1 disabled=no

3. Configuring User Profiles

Após criar o servidor PPPoE, você precisará configurar os perfis de usuário:
  1. Na aba Profiles, clique em Add.
  2. Define a name for the profile and configure the bandwidth and authentication options.
  3. Clique em OK para salvar o perfil.

CLI command example:

/ppp profile add name=default-profile rate-limit=1M/1M

4. Creating PPPoE Users

Agora, você pode criar usuários para a autenticação PPPoE:
  1. Na aba Secrets, clique em Add.
  2. Enter the username and password, and associate it with the profile you created.
  3. Clique em OK para adicionar o usuário.

CLI command example:

/ppp secret add name=user1 password=senha123 profile=default-profile

5. Testing the PPPoE Connection

Após configurar a autenticação PPPoE, é importante testar a conexão:
  1. Connect to MikroTik via a PPPoE client.
  2. Verify that the connection is established and that the IP address is assigned correctly.

Test command example:

/interface pppoe-client add interface=ether2 user=user1 password=senha123

Conclusion on Configuring PPPoE Authentication on MikroTik

Configurar a autenticação PPPoE no Mikrotik é essencial para gerenciar as conexões de internet dos seus clientes de maneira segura e eficiente. Com as etapas apresentadas, você pode garantir uma configuração adequada e funcional. Gostou deste tutorial? Confira nossos outros guias sobre configuração de redes no Mikrotik e otimize sua infraestrutura!