Config Mikrotik R1

From DAFA WIKI
Jump to navigation Jump to search

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