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:- No menu do Winbox, clique em PPP.
- Vá até a aba PPPoE Servers.
- Clique no botão Add para criar um novo servidor PPPoE.
- Set the interface on which the server will be active.
- Configure the authentication options, such as authentication type and the IP address pool to be used.
- Clique em OK para salvar as configurações.
CLI command example:
/interface pppoe-server add service-name=pppoe-server interface=ether1 disabled=no3. Configuring User Profiles
Após criar o servidor PPPoE, você precisará configurar os perfis de usuário:- Na aba Profiles, clique em Add.
- Define a name for the profile and configure the bandwidth and authentication options.
- Clique em OK para salvar o perfil.
CLI command example:
/ppp profile add name=default-profile rate-limit=1M/1M4. Creating PPPoE Users
Agora, você pode criar usuários para a autenticação PPPoE:- Na aba Secrets, clique em Add.
- Enter the username and password, and associate it with the profile you created.
- Clique em OK para adicionar o usuário.
CLI command example:
/ppp secret add name=user1 password=senha123 profile=default-profile5. Testing the PPPoE Connection
Após configurar a autenticação PPPoE, é importante testar a conexão:- Connect to MikroTik via a PPPoE client.
- Verify that the connection is established and that the IP address is assigned correctly.