Difference between revisions of "Mikrotik: Router Sederhana"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 8: | Line 8: | ||
add bridge=bridge1 interface=ethe | add bridge=bridge1 interface=ethe | ||
− | ip address add interface= | + | /ip address add interface=bridge1 address=192.168.1.1/24 |
− | ip route add gateway= | + | /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 enable | |
− | + | /ip dhcp-server print | |
− | |||
− | ip dhcp-server enable | ||
− | ip dhcp-server print | ||
− | + | /ip firewall nat add chain=srcnat out-interface=ether1 action=masquareade | |
− | ip firewall nat add chain=srcnat out-interface=ether1 action=masquareade | + | /ip firewall nat print |
− | ip firewall nat print | ||
Revision as of 07:48, 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=bridge1 address=192.168.1.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=masquareade /ip firewall nat print