Config Mikrotik R1: Difference between revisions

From DAFA WIKI
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 34: Line 34:


[[File:Router R1.png]]
[[File:Router R1.png]]
== Config CLI R1 ==
=== Setting Identitas ===
<code>system identity set name=R1</code>
=== Setting dhcp client ===
<code>ip dhcp-client add interface=ether1 disabled=no</code>
=== Setting ip Address ===
<code>ip address add address=172.16.200.1/29 interface=ether2</code>
<code>ip address add address=10.200.200.1/30 interface=ether3</code>
=== Setting dns server ===
<code>ip dns set servers=8.8.8.8 allow-remote-requests=yes</code>
=== Setting Nat ===
<code>ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade</code>
=== Setting Route Static ===
<code>ip route add dst-address=172.17.200.0/28 gateway=10.200.200.2</code>

Latest revision as of 04:02, 16 April 2026

Setting Identity

system - identy - name=R1

Identity R1.png

Setting Dhcp-Client

ip - dhcp-client - add -interface=ether1

Dhcp-client R1.png

Setting IP Address

ip - address - add - address=172.16.200.1/29 - interface=ether2

ip - address - add - address=10.200.200.1/30 - interface=ether3

Ip address R1.png

hasilnya seperti dibawah

Ip addres hasil R1.png

Setting DNS

ip - dns - server=8.8.8.8 - centang allow remote request

Dns server R1.png

Setting NAT

ip - firewall - tab NAT - add - chain=srcnat - out-interface=ether1 - Tab Action - action=masquerade

Nat R1.png

Setting Route

ip - route - add - dst-address=172.17.200.0/28 - gateway=10.200.200.2

Router R1.png


Config CLI R1

Setting Identitas

system identity set name=R1

Setting dhcp client

ip dhcp-client add interface=ether1 disabled=no

Setting ip Address

ip address add address=172.16.200.1/29 interface=ether2

ip address add address=10.200.200.1/30 interface=ether3

Setting dns server

ip dns set servers=8.8.8.8 allow-remote-requests=yes

Setting Nat

ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade

Setting Route Static

ip route add dst-address=172.17.200.0/28 gateway=10.200.200.2