I
I
Ilimma2020-07-23 11:03:18
Computer networks
Ilimma, 2020-07-23 11:03:18

MicroTik. How to set up routing?

Good day everyone!
Please help me set up routes.
There are two MikroTik routers, one provider, the second is mine. I can not get into my network from the provider's network, does not see it. Tell me how to set up a router so that I can easily fly from another network to my own?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
akelsey, 2020-07-23
@Ilimma

Set up the same routing.
The ISP's router needs to know where to send packets on your network, and your router needs to know all the ISP's networks. This is usually done by a dynamic routing protocol, but it can also be done by hand.
ISP says my subnet is 10.150.200.0/24 (or there are more of them, of course, here is one for example), and your home subnet is 192.168.50.0/24.
Let's think that both routers have no other routes than the default gateway, each of which routes packets to the Internet.
Then you are from the provider's machine 10.150.200.100 - ping your machine 192.168.50.100, what should happen?
1. The provider's PC will send the packet to the provider's Mikrotik, because this is the default gateway
2. Mikrotik provider will see an unknown network and send a packet to the Internet, because. the address is not routable, routing will end in nothing.
what should be done? tell the mikrotik provider that all packets to addresses 192.168.50.100 are sent to 192.168.50.1
3. ok, the packet reached the home router, it routed it to a computer on your network
4. your computer on the home network, received a packet from 10.150.200.100, now wants to return it in Mikrotik, answer
5. your Mikrotik looks - hmm, the route is unknown, I will send it to the default gateway, and it flew to the Internet and also disappeared.
what needs to be done is to explain to your microtic that the network 10.150.200.0/24 is behind 10.150.200.1 (and all the others that the provider has too)
6. your mikrotik now knows that all packets to the specified networks should be sent to 10.150.200.0/24 to 10.150.200.1, the packet is sent
7. provider's mikrotik detects the host and sends a response to it.
In general terms, yes, in reality, of course, it can be more difficult, but act according to the situation.

S
Stanislav Valsinats, 2020-07-23
@jesterOK

Set up NAT?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question