Difference between revisions of "Mikrotik: Router Sederhana"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with " 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 set name=pool0...") |
Onnowpurbo (talk | contribs) |
||
Line 4: | Line 4: | ||
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 pool | + | |
− | ip dhcp-server | + | 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 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 | |
Revision as of 07:43, 13 November 2018
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 print
ip firewall nat add chain=srcnat out-interface=ether1 action=masquareade ip firewall nat print