Command line Mikrotik RouterBoard
Example Command line Mikrotik RouterBoard cu ajutorul carora veti putea configura rapid un router Mikrotik.
- Resetare configurare router
- Adauga adresa IP la o interfata
- Configurare NAT/Masquerade
- Setare DNS router
Reset Configuration
system reset-configuration
sau
system reset-configuration no-defaults=yes
a doua comanda lasa routerul fara configuratie default
Adauga adresa IP la o interfata
ip address add address=”adresa IP”/”masca retea” interface=”nume interfata”
Exemplu:
ip address add address=192.168.1.1/24 interface=ether1
Configurare NAT/Masquerade
ip firewall nat add action=masquerade chain=srcnat
sau
ip firewall nat add action=masquerade chain=srcnat out-interface=”nume interfata”
Exemplu:
ip firewall nat add action=masquerade chain=srcnat out-interface=ether1
Setare DNS router
ip dns set servers=”IP-DNS-1″,”IP-DNS-2″
Exemplu:
ip dns set servers=8.8.4.4,8.8.8.8