SlideShare une entreprise Scribd logo
1  sur  6
Command to configure Mikrotik
1. Setup router
//to create a name for network card
admin@mikrotik>int
admin@mikrotik int>eth
admin@mikrotik int eth>print
admin@mikrotik int eth>set 0 name=LAN
admin@mikrotik int eth>set 1 name=WAN
admin@mikrotik int eth>print
//to assign ip address to network card
admin@mikrotik ip address>add address=x.x.x.x netmask=x.x.x.x interface=LAN
admin@mikrotik ip address>add address=x.x.x.x netmask=x.x.x.x interface=WAN
admin@mikrotik ip address>print
//to create NAT rule
admin@mikrotik ip firewall nat>add chain=srcnat action=masquerade out-interface=WAN
admin@mikrotik ip firewall nat>print
//to assign gateway
admin@mikrotik ip route>add gateway=x.x.x.x
admin@mikrotik ip route>print
//to assign dns
admin@mikrotik ip dns>set primary-dns=x.x.x.x
admin@mikrotik ip dns>set secondary-dns=x.x.x.x
admin@mikrotik ip dns>set allow-remote-requests=yes
//to create dhcp
admin@mikrotik>setup
select s =config dhcp server
dhcp server interface=LAN
dhcp space=x.x.x.0/24
dhcp pool=x.x.x.x-x.x.x.x
select x to exit.
2.Create login page(Hotspot)
admin@mikrotik ip hotspot>setup
interface=LAN
local address=x.x.x.x/24
masquerade=yes
address pool=x.x.x.x-x.x.x.x
select certificate=none
ip address of smtp server=0.0.0.0
dns="press enter"
dns name="put it blank"
name of local hotspot=admin
password=23804151
Mikrotik Server with Hotspot Done
How to link from Mikrotik to Radius server
1.Go to Radius Server and Create NAS(Network Access Server)
by click on server configuration click add
2.Complete the following field
3.Click Add
4.Login with winbox to the Mikrotik router
5.Click on IP DNS Setting
change DNS
6.Click on IP route and then change gateway
7.Click on IP Pool Delete dhcp_pool1
8.Click on IP DHCP server Click DHCP and select
DHCP that have and click on delete(-) and click on networks
then select on the network click delete(-)
6.Click on IP hotspot in server tab select hsprof1 and
then click delete(-) click profile and select hsprof1 then click
delete(-)
The IP Wan of Mikrotik that Radius Server Control
The character or number that match with Mikrotik
Double click and then change
Appropriate gateway
7. Go to DHCP server in DHCP tab click setup next
until finish so it created the IP pool and network automatically
8. Go to hotspot again in server tab click setup and then
click Next until finish
9. Click Profile in hotspot and double click on hsprof1
10.Click on Radius Click Add(+)
11. Check the check box and complete some fields below
Uncheck Cookie
Check on Use RADIUS
The Radius server IP address that control
The character or number that match with
Radius server
How to change from one ISP to other ISP
1.Login with winbox to the Mikrotik router
2.Click on IP DNS Setting
change DNS
3.Click on IP route and then change gateway
4.Click on IP Pool Delete dhcp_pool1
5.Click on IP DHCP server Click DHCP and select
DHCP that have and click on delete(-) and click on networks
then select on the network click delete(-)
6.Click on IP hotspot in server tab select hsprof1 and
then click delete(-) click profile and select hsprof1 then click
delete(-)
7. Go to DHCP server in DHCP tab click setup next
until finish so it created the IP pool and network automatically
8. Go to hotspot again in server tab click setup and then
click Next until finish
9. Click Profile in hotspot and double click on hsprof1
Double click and then change
Appropriate gateway
Uncheck Cookie
Check on Use RADIUS
[admin@Mikrotik]> interface wireless set wlan1 ssid="My HotSpot"
band=2.4ghz-b mode=ap-bridges in
admin@MikroTik] > ip hotspot setup
hotspot interface: wlan1
local address of network: 192.168.30.1/24
masquerade network: yes
address pool of network: 192.168.30.2-192.168.30.99
select certificate: none
ip address of smtp server: 0.0.0.0
dns servers: 192.168.24.2
dns name: hotspot.mydomain.net (or leave this blank)
name of local hotspot user: user
password for the user: password
[admin@MikroTik] > ip hotspot user print
Flags: X - disabled, D - dynamic
# SERVER NAME ADDRESS PROFILE UPTIME
0 fred default 0s
[admin@MikroTik] > ip hotspot user remove 0
[admin@Mikrotik]> interface wireless set wlan1 ssid="My HotSpot"
band=2.4ghz-b mode=ap-bridges in
admin@MikroTik] > ip hotspot setup
hotspot interface: wlan1
local address of network: 192.168.30.1/24
masquerade network: yes
address pool of network: 192.168.30.2-192.168.30.99
select certificate: none
ip address of smtp server: 0.0.0.0
dns servers: 192.168.24.2
dns name: hotspot.mydomain.net (or leave this blank)
name of local hotspot user: user
password for the user: password
[admin@MikroTik] > ip hotspot user print
Flags: X - disabled, D - dynamic
# SERVER NAME ADDRESS PROFILE UPTIME
0 fred default 0s
[admin@MikroTik] > ip hotspot user remove 0

Contenu connexe

Tendances

Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
Touhidul Fahim
 
Cisco Router Basic Configuration
Cisco Router Basic ConfigurationCisco Router Basic Configuration
Cisco Router Basic Configuration
Prof. Erwin Globio
 
Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3
Mohamed Al-Natour
 

Tendances (20)

Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracer
 
Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1
 
CCNA Lab Guide
CCNA Lab GuideCCNA Lab Guide
CCNA Lab Guide
 
Packet tracer
Packet tracerPacket tracer
Packet tracer
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
 
Cisco Router Basic Configuration
Cisco Router Basic ConfigurationCisco Router Basic Configuration
Cisco Router Basic Configuration
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
Routers and Routing Configuration
Routers and Routing ConfigurationRouters and Routing Configuration
Routers and Routing Configuration
 
Lab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routingLab 6.4.1 InterVLAN routing
Lab 6.4.1 InterVLAN routing
 
Router commands
Router commandsRouter commands
Router commands
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPT
 
CCNA presentation.
CCNA presentation.CCNA presentation.
CCNA presentation.
 
Lab huawei2
Lab huawei2Lab huawei2
Lab huawei2
 
Network Design on cisco packet tracer 6.0
Network Design on cisco packet tracer 6.0Network Design on cisco packet tracer 6.0
Network Design on cisco packet tracer 6.0
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1
 
CCNA 2 Routing and Switching v5.0 Chapter 11
CCNA 2 Routing and Switching v5.0 Chapter 11CCNA 2 Routing and Switching v5.0 Chapter 11
CCNA 2 Routing and Switching v5.0 Chapter 11
 
CCNA Product Overview.pptx
CCNA Product Overview.pptxCCNA Product Overview.pptx
CCNA Product Overview.pptx
 
Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3
 
CCNA CheatSheet
CCNA CheatSheetCCNA CheatSheet
CCNA CheatSheet
 

En vedette

How to configure IPA-Server & Client-Centos 7
How to configure IPA-Server & Client-Centos 7How to configure IPA-Server & Client-Centos 7
How to configure IPA-Server & Client-Centos 7
Tola LENG
 
Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)
Rofiq Fauzi
 
Konfigurasi dns pada mikrotik
Konfigurasi dns pada mikrotikKonfigurasi dns pada mikrotik
Konfigurasi dns pada mikrotik
Medika Risna
 
Beer as-a-service
Beer as-a-serviceBeer as-a-service
Beer as-a-service
ASP4all
 
Configuracion de red en ubuntu
Configuracion de red en ubuntuConfiguracion de red en ubuntu
Configuracion de red en ubuntu
Lupita Chacon
 
Configure Proxy and Firewall (Iptables)
Configure Proxy and Firewall (Iptables)Configure Proxy and Firewall (Iptables)
Configure Proxy and Firewall (Iptables)
Tola LENG
 

En vedette (20)

Mikrotik basic configuration
Mikrotik basic configurationMikrotik basic configuration
Mikrotik basic configuration
 
Ad, dns, dhcp, file server
Ad, dns, dhcp, file serverAd, dns, dhcp, file server
Ad, dns, dhcp, file server
 
File Share Server, FTP server on Linux SuSE and Windows
File Share Server, FTP server on Linux SuSE and WindowsFile Share Server, FTP server on Linux SuSE and Windows
File Share Server, FTP server on Linux SuSE and Windows
 
MikroTik Firewall : Securing your Router with Port Knocking
MikroTik Firewall : Securing your Router with Port KnockingMikroTik Firewall : Securing your Router with Port Knocking
MikroTik Firewall : Securing your Router with Port Knocking
 
How to configure IPA-Server & Client-Centos 7
How to configure IPA-Server & Client-Centos 7How to configure IPA-Server & Client-Centos 7
How to configure IPA-Server & Client-Centos 7
 
System Engineer: OpenLDAP and Samba Server
System Engineer: OpenLDAP and Samba ServerSystem Engineer: OpenLDAP and Samba Server
System Engineer: OpenLDAP and Samba Server
 
Open vpn server_linux
Open vpn server_linuxOpen vpn server_linux
Open vpn server_linux
 
Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)
 
Konfigurasi dns pada mikrotik
Konfigurasi dns pada mikrotikKonfigurasi dns pada mikrotik
Konfigurasi dns pada mikrotik
 
Beer as-a-service
Beer as-a-serviceBeer as-a-service
Beer as-a-service
 
Configuracion de red en ubuntu
Configuracion de red en ubuntuConfiguracion de red en ubuntu
Configuracion de red en ubuntu
 
MikroTIK DHCP Server
MikroTIK DHCP ServerMikroTIK DHCP Server
MikroTIK DHCP Server
 
Network Simulation using Mikrotik Router OS CHR (MUM Presentation)
Network Simulation using Mikrotik Router OS CHR (MUM Presentation)Network Simulation using Mikrotik Router OS CHR (MUM Presentation)
Network Simulation using Mikrotik Router OS CHR (MUM Presentation)
 
mikrotik
mikrotikmikrotik
mikrotik
 
Configure Proxy and Firewall (Iptables)
Configure Proxy and Firewall (Iptables)Configure Proxy and Firewall (Iptables)
Configure Proxy and Firewall (Iptables)
 
Configure Webserver & SSL secure & redirect in SuSE Linux Enterprise
Configure Webserver & SSL secure & redirect in SuSE Linux EnterpriseConfigure Webserver & SSL secure & redirect in SuSE Linux Enterprise
Configure Webserver & SSL secure & redirect in SuSE Linux Enterprise
 
DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)
 
Install linux suse(sless11)
Install linux suse(sless11)Install linux suse(sless11)
Install linux suse(sless11)
 
Configure proxy firewall on SuSE Linux Enterprise Server 11
Configure proxy firewall on SuSE Linux Enterprise Server 11Configure proxy firewall on SuSE Linux Enterprise Server 11
Configure proxy firewall on SuSE Linux Enterprise Server 11
 
Configure active directory & trust domain
Configure active directory & trust domainConfigure active directory & trust domain
Configure active directory & trust domain
 

Similaire à Basic command to configure mikrotik

Ukk tkj p1 proxy mikrotik2014 2015
Ukk tkj p1 proxy mikrotik2014 2015Ukk tkj p1 proxy mikrotik2014 2015
Ukk tkj p1 proxy mikrotik2014 2015
Riza Hafizhuddin
 
Load balancing n_fail_over
Load balancing n_fail_overLoad balancing n_fail_over
Load balancing n_fail_over
miissie
 
Tutorial mikrotik step by step anung muhandanu
Tutorial mikrotik step by step  anung muhandanu Tutorial mikrotik step by step  anung muhandanu
Tutorial mikrotik step by step anung muhandanu
Alessandro De Suoodh
 
Tutorial mikrotik step by step anung muhandanu
Tutorial mikrotik step by step  anung muhandanu Tutorial mikrotik step by step  anung muhandanu
Tutorial mikrotik step by step anung muhandanu
theviper0308
 
Instal dan Konfigurasi MikroTik via VirtualBox #1
Instal dan Konfigurasi MikroTik via VirtualBox #1 Instal dan Konfigurasi MikroTik via VirtualBox #1
Instal dan Konfigurasi MikroTik via VirtualBox #1
YusnarSetiyadi
 

Similaire à Basic command to configure mikrotik (20)

Ukk tkj p1 proxy mikrotik2014 2015
Ukk tkj p1 proxy mikrotik2014 2015Ukk tkj p1 proxy mikrotik2014 2015
Ukk tkj p1 proxy mikrotik2014 2015
 
SETING DAN KONFIGURASI ROUTERBOARD MIKROTIK RB 750 METODE TEX
SETING DAN KONFIGURASI ROUTERBOARD  MIKROTIK RB 750 METODE TEXSETING DAN KONFIGURASI ROUTERBOARD  MIKROTIK RB 750 METODE TEX
SETING DAN KONFIGURASI ROUTERBOARD MIKROTIK RB 750 METODE TEX
 
Configure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdfConfigure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdf
 
Modul dhcp server menggunakan mikrotik os
Modul dhcp server menggunakan mikrotik osModul dhcp server menggunakan mikrotik os
Modul dhcp server menggunakan mikrotik os
 
Tutorial mikrotik step by step
Tutorial mikrotik step by stepTutorial mikrotik step by step
Tutorial mikrotik step by step
 
Load balancing n_fail_over
Load balancing n_fail_overLoad balancing n_fail_over
Load balancing n_fail_over
 
1.4.2-basic-configuration-with-mikrotik-cli.pdf
1.4.2-basic-configuration-with-mikrotik-cli.pdf1.4.2-basic-configuration-with-mikrotik-cli.pdf
1.4.2-basic-configuration-with-mikrotik-cli.pdf
 
Tutorial mikrotik step by step anung muhandanu
Tutorial mikrotik step by step  anung muhandanu Tutorial mikrotik step by step  anung muhandanu
Tutorial mikrotik step by step anung muhandanu
 
Tutorial mikrotik step by step anung muhandanu
Tutorial mikrotik step by step  anung muhandanu Tutorial mikrotik step by step  anung muhandanu
Tutorial mikrotik step by step anung muhandanu
 
dokumen.tips_cara-setting-mikrotik-pppoe.doc
dokumen.tips_cara-setting-mikrotik-pppoe.docdokumen.tips_cara-setting-mikrotik-pppoe.doc
dokumen.tips_cara-setting-mikrotik-pppoe.doc
 
ACN Micro- Project Group no. 22.pptx
ACN Micro- Project Group no. 22.pptxACN Micro- Project Group no. 22.pptx
ACN Micro- Project Group no. 22.pptx
 
Hyperlink
HyperlinkHyperlink
Hyperlink
 
presentation_3597_1473326800.pdf
presentation_3597_1473326800.pdfpresentation_3597_1473326800.pdf
presentation_3597_1473326800.pdf
 
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCPKonfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
 
Configure DHCP Server and DHCP-Relay
Configure DHCP Server and DHCP-RelayConfigure DHCP Server and DHCP-Relay
Configure DHCP Server and DHCP-Relay
 
[OpenStack 하반기 스터디] HA using DVR
[OpenStack 하반기 스터디] HA using DVR[OpenStack 하반기 스터디] HA using DVR
[OpenStack 하반기 스터디] HA using DVR
 
Network
NetworkNetwork
Network
 
Instal dan Konfigurasi MikroTik via VirtualBox #1
Instal dan Konfigurasi MikroTik via VirtualBox #1 Instal dan Konfigurasi MikroTik via VirtualBox #1
Instal dan Konfigurasi MikroTik via VirtualBox #1
 
Paket 1 UJIKOM TKJ 2015
Paket 1 UJIKOM TKJ 2015Paket 1 UJIKOM TKJ 2015
Paket 1 UJIKOM TKJ 2015
 
Zdalna komunikacja sieciowa - zagadnienia sieciowe
Zdalna komunikacja sieciowa - zagadnienia sieciowe Zdalna komunikacja sieciowa - zagadnienia sieciowe
Zdalna komunikacja sieciowa - zagadnienia sieciowe
 

Plus de Tola LENG

Tola.leng mail server (sq_mail & rcmail)_q5_
Tola.leng mail server (sq_mail & rcmail)_q5_Tola.leng mail server (sq_mail & rcmail)_q5_
Tola.leng mail server (sq_mail & rcmail)_q5_
Tola LENG
 

Plus de Tola LENG (6)

The Linux Command Cheat Sheet
The Linux Command Cheat SheetThe Linux Command Cheat Sheet
The Linux Command Cheat Sheet
 
Tola.leng mail server (sq_mail & rcmail)_q5_
Tola.leng mail server (sq_mail & rcmail)_q5_Tola.leng mail server (sq_mail & rcmail)_q5_
Tola.leng mail server (sq_mail & rcmail)_q5_
 
Window8 installation on VMWare workstration
Window8 installation on VMWare workstrationWindow8 installation on VMWare workstration
Window8 installation on VMWare workstration
 
Tola.leng sa nagios
Tola.leng sa nagiosTola.leng sa nagios
Tola.leng sa nagios
 
How to be a good presentor by tola
How to be a good presentor by tolaHow to be a good presentor by tola
How to be a good presentor by tola
 
Backup Data with Cron on Linux
Backup Data with Cron on LinuxBackup Data with Cron on Linux
Backup Data with Cron on Linux
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Basic command to configure mikrotik

  • 1. Command to configure Mikrotik 1. Setup router //to create a name for network card admin@mikrotik>int admin@mikrotik int>eth admin@mikrotik int eth>print admin@mikrotik int eth>set 0 name=LAN admin@mikrotik int eth>set 1 name=WAN admin@mikrotik int eth>print //to assign ip address to network card admin@mikrotik ip address>add address=x.x.x.x netmask=x.x.x.x interface=LAN admin@mikrotik ip address>add address=x.x.x.x netmask=x.x.x.x interface=WAN admin@mikrotik ip address>print //to create NAT rule admin@mikrotik ip firewall nat>add chain=srcnat action=masquerade out-interface=WAN admin@mikrotik ip firewall nat>print //to assign gateway admin@mikrotik ip route>add gateway=x.x.x.x admin@mikrotik ip route>print //to assign dns admin@mikrotik ip dns>set primary-dns=x.x.x.x admin@mikrotik ip dns>set secondary-dns=x.x.x.x admin@mikrotik ip dns>set allow-remote-requests=yes //to create dhcp admin@mikrotik>setup select s =config dhcp server dhcp server interface=LAN dhcp space=x.x.x.0/24 dhcp pool=x.x.x.x-x.x.x.x select x to exit. 2.Create login page(Hotspot) admin@mikrotik ip hotspot>setup interface=LAN local address=x.x.x.x/24 masquerade=yes address pool=x.x.x.x-x.x.x.x select certificate=none ip address of smtp server=0.0.0.0 dns="press enter" dns name="put it blank" name of local hotspot=admin password=23804151 Mikrotik Server with Hotspot Done
  • 2. How to link from Mikrotik to Radius server 1.Go to Radius Server and Create NAS(Network Access Server) by click on server configuration click add 2.Complete the following field 3.Click Add 4.Login with winbox to the Mikrotik router 5.Click on IP DNS Setting change DNS 6.Click on IP route and then change gateway 7.Click on IP Pool Delete dhcp_pool1 8.Click on IP DHCP server Click DHCP and select DHCP that have and click on delete(-) and click on networks then select on the network click delete(-) 6.Click on IP hotspot in server tab select hsprof1 and then click delete(-) click profile and select hsprof1 then click delete(-) The IP Wan of Mikrotik that Radius Server Control The character or number that match with Mikrotik Double click and then change Appropriate gateway
  • 3. 7. Go to DHCP server in DHCP tab click setup next until finish so it created the IP pool and network automatically 8. Go to hotspot again in server tab click setup and then click Next until finish 9. Click Profile in hotspot and double click on hsprof1 10.Click on Radius Click Add(+) 11. Check the check box and complete some fields below Uncheck Cookie Check on Use RADIUS The Radius server IP address that control The character or number that match with Radius server
  • 4. How to change from one ISP to other ISP 1.Login with winbox to the Mikrotik router 2.Click on IP DNS Setting change DNS 3.Click on IP route and then change gateway 4.Click on IP Pool Delete dhcp_pool1 5.Click on IP DHCP server Click DHCP and select DHCP that have and click on delete(-) and click on networks then select on the network click delete(-) 6.Click on IP hotspot in server tab select hsprof1 and then click delete(-) click profile and select hsprof1 then click delete(-) 7. Go to DHCP server in DHCP tab click setup next until finish so it created the IP pool and network automatically 8. Go to hotspot again in server tab click setup and then click Next until finish 9. Click Profile in hotspot and double click on hsprof1 Double click and then change Appropriate gateway Uncheck Cookie Check on Use RADIUS
  • 5. [admin@Mikrotik]> interface wireless set wlan1 ssid="My HotSpot" band=2.4ghz-b mode=ap-bridges in admin@MikroTik] > ip hotspot setup hotspot interface: wlan1 local address of network: 192.168.30.1/24 masquerade network: yes address pool of network: 192.168.30.2-192.168.30.99 select certificate: none ip address of smtp server: 0.0.0.0 dns servers: 192.168.24.2 dns name: hotspot.mydomain.net (or leave this blank) name of local hotspot user: user password for the user: password [admin@MikroTik] > ip hotspot user print Flags: X - disabled, D - dynamic # SERVER NAME ADDRESS PROFILE UPTIME 0 fred default 0s [admin@MikroTik] > ip hotspot user remove 0
  • 6. [admin@Mikrotik]> interface wireless set wlan1 ssid="My HotSpot" band=2.4ghz-b mode=ap-bridges in admin@MikroTik] > ip hotspot setup hotspot interface: wlan1 local address of network: 192.168.30.1/24 masquerade network: yes address pool of network: 192.168.30.2-192.168.30.99 select certificate: none ip address of smtp server: 0.0.0.0 dns servers: 192.168.24.2 dns name: hotspot.mydomain.net (or leave this blank) name of local hotspot user: user password for the user: password [admin@MikroTik] > ip hotspot user print Flags: X - disabled, D - dynamic # SERVER NAME ADDRESS PROFILE UPTIME 0 fred default 0s [admin@MikroTik] > ip hotspot user remove 0