Pages

Thursday, March 21, 2013

Simple Network Configuration with Simple Topology (Mikrotik IV)

Configuration Simple Network will discuss how to use MikroTik Router to connect to the internet by a simple topology shown in the picture. Hopefully with this simple guide, you can slightly understand the concept or how the mikrotik.

Simple Network Configuration


Modem configuration will not be discussed here because each modem has its own way or technique. To note the IP address of the modem is 192.168.1.1. As for the PC (host) does not need to be configured but will be discussed in the next article about Setting DHCP Server. PC will be using the IP Address starting from 2-254 or 192.168.2.2 to 192.168.2.254.

Summary :: IP ::

Modem IP Address: 192.168.1.1
Mikrotik ether1 IP Address: 192.168.1.2
Mikrotik ether2 IP Address: 192.168.2.1

So, to begin our first configure the IP address of Mikrotik:

> Ip address add address = 192.168.1.2/24 interface = ether1 comment = "to the IP Modem"

> Ip address add address = 192.168.2.1/24 interface = ether2 comment = "IP to the PC / Switch"

Configuring the DNS Server. Ask the ISP DNS server or here in demonstrated by using Google DNS 8.8.8.8

> Ip dns set servers = 8.8.8.8 allow-remote-requests = yes

Add using interace that is connected to the modem / internet with action = masquerade chain = srcnat position. With this technique, a network that uses private IP addresses can connect to the Internet.

> Ip firewall nat add chain = srcnat out-interface = ether1 action = masqurade

The final stage, add the default gateway (IP Modem)

> Ip route add dst-address = 0.0.0.0 / 0 gateway = 192.168.1.1

Make a check, if it is successful

> Ping www.google.com

No comments:

Post a Comment