Static Routing On Mikrotik Routeros.



Static Routing is an of import topic to whatsoever network administrator who industrial plant with multiple MikroTik RouterOS as well as wants to found communication with Router’s local networks. For example, tell a network administrator maintains ii MikroTik RouterOS connected with whatsoever communication medium as well as each RouterOS has its ain networks as well as network resources such equally servers, printers etc.
and he wants that each network as well as network resources volition survive accessible from other networks. In this case, static routing configuration betwixt ii RouterOS volition survive a ameliorate solution. In this article, I volition explicate how to configure static routing betwixt ii MikroTik RouterOS thence that each RouterOS networks volition survive accessible from other RouterOS networks. But earlier going to start our configuration, nosotros involve to survive familiar with unopen to basic routing topics which are necessary for static routing configuration.

Hops
In a Network, each layer iii device endpoint (router) is called a HOP. In RIP as well as Static Routing concept, HOP is real of import term to understand.

Routing
Routing is the procedure used to uncovering other networks which is non direct connected inward the local router. There are ii types of routing.
Static Routing is a procedure where road is manually generated inward routing table. In static routing, the network administrator must know the next promise IP address or outgoing interface inward which the network router is connected. Static road format: Route add together Network Subnet {next hop IP address/ outgoing interface}. Mikrotik Example: /ip route> add together dst-address=Network/Subnet gateway=Next Hop IP Address.

Dynamic Routing is a procedure of learning networks from dissimilar routers connected each other. Routers larn network past times edifice vecino human relationship with side past times side router. Examples of dynamic routing are OSPF, EIGRP, RIP, BGP, as well as ISIS etc.
There are ii purpose networks inward this diagram as well as each purpose network has a MikroTik RouterOS (R1 & R2). R1 Router is connected to WAN1 having IP address 192.168.110.2/28 as well as R2 Router is connected to WAN2 having IP address 192.168.10.2/30. R1 Router has its ain LAN IP block (172.22.10.0/24) as well as R2 too has its ain LAN IP block (172.22.20.0/24). Both Routers are connected with a communication medium having IP address 10.10.10.1/30 as well as 10.10.10.2/30 respectively. Now nosotros volition configure static routing inward both RouterOS thence that each LAN IP block tin survive accessible from other LAN IP block.

As at that topographic point are ii RouterOS (R1 & R2) inward this diagram, nosotros convey to configure both RouterOS as well as straight off I volition demonstrate this configuration from real beginning.
R1 Router Configuration

In R1 RouterOS, nosotros volition perform basic RouterOS configuration equally good equally static routing configuration. The next steps volition demonstrate how to produce MikroTik Router basic configuration as well as static routing configuration inward R1 RouterOS.
Login to R1 RouterOS using winbox as well as acquire to IP > Addresses. In Address List window, click on PLUS SIGN (+). In New Address window, seat WAN IP address (192.168.110.2/28) inward Address input champaign as well as guide WAN interface (ether1) from Interface dropdown carte du jour as well as click Apply as well as OK button. Click on PLUS SIGN over again as well as seat LAN IP (172.22.10.1/24) inward Address input champaign as well as guide LAN interface (ether2) from Interface dropdown carte du jour as well as click on Apply as well as OK button. Again click on PLUS SIGN as well as seat 10.10.10.1/30 (Gateway address for R2 to access LAN IP block) inward Address input champaign as well as guide ether3 (RouterOS interface that is connected to R2) from Interface dropdown carte du jour as well as click on Apply as well as OK button.
Go to IP > DNS as well as seat DNS servers IP (8.8.8.8 or 8.8.4.4) inward Servers input champaign as well as click Apply as well as OK button.
Go to IP > Firewall as well as click on NAT tab as well as thence click on PLUS SIGN. Under General tab, guide srcnat from Chain dropdown carte du jour as well as click on Action tab as well as thence guide masquerade from Action dropdown menu. Click on Apply as well as OK button.
Go to IP > Routes as well as click on PLUS SIGN (+). In New Route window, click on Gateway input champaign as well as seat WAN Gateway address (192.168.110.1) inward Gateway input champaign as well as click Apply as well as OK button.
Static Routing agency providing the finish IP Block as well as the Gateway address to attain that finish IP Block. As nosotros desire to attain R2 Router’s LAN IP Block (172.22.20.0/24) as well as according to network diagram the Gateway IP Address to attain this finish IP Block is 10.10.10.2, nosotros volition supply this information inward R1 Router’s Routing table. For this, Go to IP > Routes as well as click on PLUS SIGN (+). In New Route window, seat finish IP Block (172.22.20.0/24) inward Dst. Address input champaign as well as seat the Gateway address (10.10.10.2) inward Gateway input field. Click Apply as well as OK button. If you lot convey to a greater extent than LAN IP Blocks that you lot involve to reach, you lot tin add together those IP Blocks according to this step.

Basic configuration as well as static routing configuration inward R1 RouterOS has been completed as well as R1 Router is straight off laid to access R2 Router’s LAN IP Block. Now nosotros volition configure our R2 Router thence that it tin access R1 Router’s LAN IP Block.
R2 Router Configuration

Like R1 RouterOS, nosotros volition perform basic RouterOS configuration equally good equally static routing configuration inward our R2 RouterOS. The next steps volition demonstrate how to produce MikroTik Router basic configuration as well as static routing configuration inward R2 RouterOS.Login to R1 RouterOS using winbox as well as acquire to IP > Addresses. In Address List window, click on PLUS SIGN (+). In New Address window, seat WAN IP address (192.168.10.2/30) inward Address input champaign as well as guide WAN interface (ether1) from Interface dropdown carte du jour as well as click Apply as well as OK button. Click on PLUS SIGN (+) over again as well as seat LAN IP (172.22.20.1/24) inward Address input champaign as well as guide LAN interface (ether2) from Interface dropdown carte du jour as well as click on Apply as well as OK button. Again click on PLUS SIGN (+) as well as seat 10.10.10.2/30 (Gateway address for R1 to access LAN IP block) inward Address input champaign as well as guide ether3 (RouterOS interface that is connected to R1) from Interface dropdown carte du jour as well as click on Apply as well as OK button.
Go to IP > DNS as well as seat DNS servers IP (8.8.8.8 or 8.8.4.4) inward Servers input champaign as well as click Apply as well as OK button.
Go to IP > Firewall as well as click on NAT tab as well as thence click on PLUS SIGN (+). Under General tab, guide srcnat from Chain dropdown carte du jour as well as click on Action tab as well as thence guide masquerade from Action dropdown menu. Click on Apply as well as OK button.
Go to IP > Routes as well as click on PLUS SIGN (+). In New Route window, click on Gateway input champaign as well as seat WAN Gateway address (192.168.10.1) inward Gateway input champaign as well as click Apply as well as OK button.
As nosotros desire to attain R1 Router’s LAN IP Block (172.22.20.0/24) as well as according to network diagram the Gateway IP Address to attain this finish IP Block is 10.10.10.1, nosotros volition supply this information inward R2 Router’s Routing table. For this, Go to IP > Routes as well as click on PLUS SIGN (+). In New Route window, seat finish IP Block (172.22.10.0/24) inward Dst. Address input champaign as well as seat the Gateway address (10.10.10.1) inward Gateway input field. Click Apply as well as OK button. If you lot convey to a greater extent than LAN IP Blocks that you lot involve to reach, you lot tin add together those IP Blocks according to this step.

Basic configuration as well as static routing configuration inward R2 RouterOS has been completed as well as R2 Router is straight off laid to access R1 Router’s LAN IP Block.

Now connect IP devices inward both network as well as ping these devices. If everything is OK, you lot volition survive able to access both network successfully.

You volition survive able to configure static routing inward MikroTik Router if you lot follow the inward a higher house steps properly. 

Berlangganan update artikel terbaru via email:

0 Response to "Static Routing On Mikrotik Routeros."

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel