Here’s a list of useful MikroTik commands:
- Print all IP addresses:
/ip address print
- Print all interfaces:
/interface print
- Set a static IP address:
/ip address add address=[IP Address]/[Subnet Mask] interface=[Interface Name]
- Disable all firewall rules:
/ip firewall filter disable [find]
- Enable the Web GUI (WebFig):
/ip service enable www
/ip service enable www-ssl
- Enable an interface:
/interface enable [Interface Name]
- Reset configuration:
/system reset-configuration
- Set a WAN IP address:
/ip address add address=[WAN_IP]/[Subnet_Mask] interface=[WAN_Interface]
/ip route add gateway=[Gateway_IP]
/ip dns set servers=[DNS_IP]
- Reset admin password:
/user set [find name=admin] password=[new_password]
- Get CPU usage:
/system resource print
Feel free to copy and use this list as needed!