MikroTik
How to Configure MAC Address Settings on MikroTik: Step by Step
O MAC Address Settings no Mikrotik permite gerenciar endereços MAC das interfaces, facilitando o controle de dispositivos na rede. Ele é útil para resolver conflitos de endereço, implementar segurança baseada em MAC ou configurar o acesso à rede.
Step by Step to Configure MAC Address Settings on MikroTik
1. Access the MikroTik
- Conecte-se ao dispositivo via WinBox, SSH, ou interface Web.
2. Check the MAC Addresses of the Interfaces
- Liste todas as interfaces e seus respectivos endereços MAC:
RouterOS
/interface print
3. Change the MAC Address of an Interface (optional)
- Caso precise ajustar o MAC Address de uma interface específica:
RouterOS
/interface ethernet set ether1 mac-address=AA:BB:CC:DD:EE:FF
4. Configure MAC Filtering in the Firewall
- Adicione uma regra para permitir ou bloquear dispositivos específicos com base no MAC Address:
- Permitir:
RouterOS
/interface bridge filter add chain=forward mac-protocol=ip src-mac-address=AA:BB:CC:DD:EE:FF action=accept - Bloquear:
RouterOS
/interface bridge filter add chain=forward mac-protocol=ip src-mac-address=00:11:22:33:44:55 action=drop
- Permitir:
5. Use the MAC Address for Diagnostics
- Verifique dispositivos conectados com base no endereço MAC usando o comando ARP:
RouterOS
/ip arp print
6. Configure Access via MAC-Telnet (optional)
- Habilite o acesso remoto ao Mikrotik utilizando o endereço MAC, ideal para cenários onde o IP não está configurado:
RouterOS
/tool mac-server set allowed-interface-list=all - Connect to the MikroTik using a client that supports MAC-Telnet, such as WinBox.
7. Test the Configuration
- Teste o funcionamento das regras ou alterações realizadas conectando dispositivos e monitorando o tráfego:
RouterOS
/tool torch interface=ether1