The main content of this chapter is to explain RouterOS achieve static route.
There are two cases:
1. The single-line static routing
2. export multi-line static routing
What is static routing, static routing a major role in what?
Static routing is to use is to tell the router or the IP network from the gateway or interface out, so that the destination address of the router route match rule, this rule will be in accordance to perform.
First, the single-line static routing
Suppose we have two routers connected to, the needs of both sides of the PC is able to ping each other!
R1 can ping R2, by ping 192.168.0.2
So we want to ping 192.168.11.254 192.168.12.254, so this time we must add a static route.
Look at our PC's IP configuration:
At this point we are trying to ping each other whether it can pass between the PC!
Obviously, the barrier, a network timeout. We can now look at how the routing information!
Click IP> Routes
Look at R1 routing table:
R2 routing table:
At this point we have to configure a static route!
Configuring static routes is to tell the router can send or past IP interface information from that.
Because straight network segments R1 and R2. So we should use IP as a gateway to the end:
R1 Configuration
Also, the configuration in which R2 is as follows:
At this point we are trying to ping it on your PC
This is the basic static routing.
Second, under the multi-line static routing exports
The assumption that the line how much we export, export-specify a certain IP or network segment, then static routing how to handle it?
Look at our topology, we have three public network export, Telecom, China Unicom and PPPOE.
We go PPPOE default, but if we want to access through Telecom's IP 114.114.114.114 IP to go, how to do it.
First look at our track routing is how:
We can see a second
Routing is the gateway into our PPPOE:
At this point we should also only in the routing table inside to add a static route to make it out to 100.1.1.1
At this point we go down the route towards track
So we completed a multi-line static routing capabilities.
Multi-line access router, you need to come and go with such static routes manually specify the best route for data forwarding, so as to avoid a number of different operators due to network or network unreachable very slow.