Difference between revisions of "Mikrotik: Router Sederhana"

From OnnoWiki
Jump to: navigation, search
Line 8: Line 8:
 
  /ip dhcp-client print
 
  /ip dhcp-client print
 
  /ip dhcp-client add interface=ether1 disable=no
 
  /ip dhcp-client add interface=ether1 disable=no
 
+
 
+
 
  /interface bridge
 
  /interface bridge
 
  add name=bridge1
 
  add name=bridge1
Line 17: Line 16:
 
  add bridge=bridge1 interface=ether4
 
  add bridge=bridge1 interface=ether4
 
  add bridge=bridge1 interface=ethe...dst
 
  add bridge=bridge1 interface=ethe...dst
 
+
 
  /ip address add interface=bridge1 address=192.168.100.1/24
 
  /ip address add interface=bridge1 address=192.168.100.1/24
 
  /ip route add gateway=bridge1
 
  /ip route add gateway=bridge1
 
+
 
  /ip dns set servers=8.8.8.8
 
  /ip dns set servers=8.8.8.8
 
  /ip dns set allow-remote-request=yes
 
  /ip dns set allow-remote-request=yes
 
+
 
  /ip dhcp-server setup
 
  /ip dhcp-server setup
 
  /ip dhcp-server enable
 
  /ip dhcp-server enable
 
  /ip dhcp-server print
 
  /ip dhcp-server print
 
+
 
  /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
 
  /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
 
  /ip firewall nat print
 
  /ip firewall nat print

Revision as of 09:32, 27 March 2020

Topologi di GNS3

Screenshot from 2020-03-27 05-05-50.png

Konfigurasi Mikrotik

/ip dhcp-client print
/ip dhcp-client add interface=ether1 disable=no

/interface bridge
add name=bridge1
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ethe...dst

/ip address add interface=bridge1 address=192.168.100.1/24
/ip route add gateway=bridge1

/ip dns set servers=8.8.8.8
/ip dns set allow-remote-request=yes

/ip dhcp-server setup
/ip dhcp-server enable
/ip dhcp-server print

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




Pranala Menarik