Difference between revisions of "Mikrotik: Router Sederhana"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
 +
/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
  
 
  ip address add interface=etherX address=XXX.XXX.XXX.XXX
 
  ip address add interface=etherX address=XXX.XXX.XXX.XXX

Revision as of 07:42, 25 November 2018

/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
ip address add interface=etherX address=XXX.XXX.XXX.XXX
ip route add gateway=etherX
ip dns set servers=8.8.8.8
ip dns set allow-remote-request=yes
ip pool add name=pool8 ranges=YYY.YYY.YYY.100-YYY.YYY.YYY.120
ip dhcp-server network add address=YYY.YYY.YYY.0/24 gateway=YYY.YYY.YYY.1
ip dhcp-server add interface=ether8 address-pool=pool8
ip dhcp-server network add dns-server=8.8.8.8
ip dhcp-server enable
ip dhcp-server print


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


Pranala Menarik