[LAB 1.5] Settings Connection Internet Mikrotik via LAN

Material :

1. Virtaul Box
2. Mikrotik.vdi
3. WinBOx

Purpose :

1. Create own Internet network with a structured management in Virtual
2. Connecting Internet on Client / Local in order to get the Internet
3. Provide IP Address automatically via DHCP Server to Client/Local
4. Take IP from ISP in static/dynamic

Step By Step :

In principle, using Mikrotik routerboard Virtual Via RB and not much different, only difference is the device used, and there are several configurations such as MasterPortSwitch.

1. Disable Ethernet and VirtualBox Host-Only Network, Enable Wi-fi because we       need a conecction internet


2. Enabled adapters on virtualbox and set into Bridge Adapter


3. Run MikroTI on virtualbox and Reset Configuration using command "system reset-configuration no-defaults=yes"


4. After that add ip address "ip address add address=ip address/netmask interfaces=ether1"


5. Open winbox then login with ip address has been configuration


6. Open terminal using command "interfaces print" to show interfaces are available


7. Change name interfaces to distinguish between multiple use ports "Interfaces set <no#> name<name port>" use the name public to ether1 for internet, and use the name local to ether2 for local network



8. Check in "interfaces print" to see name port has been changed



9. To disable port use command "interface disable <no#>" and check in "interfaces print" if there is already a sign (X) port has been disable


10. To activated port use command "interface enable <n0#>


11. Add ip address in interface public accordance with ip on LAN, and add ip address in interfaces Local. Check in "ip address print"


12. Add ip router "ip route add gateway=xx.xx.xx.1", and chek in "ip route print"


13.  Ping to gateway



14. Add ip DNS "ip dns set servers=xx.xx.xx.1" allow-remote-request=yes then check in "ip dns print"




15. ping to dns


16. Ping google, if it is successfully we've been able to connect to the internet


17. ip firewall configuration so that the client can also be connected to the internet " ip firewall nat add chain=srcnat out-interface=public action=masquerade"


18. Configuartion ip adrress on the client or PC with ip address on ether2/local


19. Ping to ip dns or gateway local


20. Ping to gateway public


21. Ping to ip address client


22. Ping to google


23. Check ip address "ip address print"


24. Remove ip address public "ip address remove 0", then check "ip address print"


25. Check on "ip dhcp-client print"


26. Add ip dhcp-client to routerboard "ip dhcp-client add interfaces=public add-default-route=yes use-peer-dns=yes use-peer-ntp=yes"


27. Enable ip dhcp-client "ip dhcp-client enable 0", then check "ip dhcp-client print"



28. Ping to ip dhcp-client


Posting Komentar