D
D
Daniil Kvarkovsky2015-09-26 13:40:20
Mikrotik
Daniil Kvarkovsky, 2015-09-26 13:40:20

The provider issued 2 subnets for one interface, how to configure mikrotik?

The provider issued two subnets:
1.1.1.0/30 and 2.2.2.0/29 on the same eth1 interface, how to properly configure Mikrotik in this case?
Use MANGLE? Or are there any other ways to implement this situation. The
provider issued the data in this format:
ip 1.1.1.2/30
gw 1.1.1.1
dns 5.5.5.1, 5.5.6.2
ip 2.2.2.0/29
gw 2.2.2.1
dns 7.7.7.1 7.7 .8.2
All this on one cable from the provider
How to make it possible to use ip 1.1.1.2 and also use 2.2.2.2-2.2.2.6

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cool Admin, 2015-10-26
@siderson

It all depends on how the second network is given, if it is given to you as routable through your node (i.e. you are the router responsible for the something/29 network, then you assign it to any other interface, and distribute addresses from it on that physical network , where this interface looks, take any one address from it for the router itself - all this is about advice next to Ruslan, everything seems to be simple there)
If the network is given as the second to the external interface, then the provider has already routed it at home and has taken one address and is the gateway in that network, in this case you need to distribute it using a bridge, i.e. machines that must have an address from this network must physically look at the external network, not through your device - which means you need to bridge the external link and, say, the vlan forwarded to the local area, and you already receive this vlan on the interface of the desired machine and receive it on it has an external address from the network something/29, indicating the node something as a gateway
. 2.2.2.1 in the question - i.e. the provider, as it were, knows the gateway in advance, i.e. most likely he is it).
Call the TP - specify what your option is, and go to the first option - DMZ, then the traffic will go through your march, and it will be fully controlled by it.

R
Ruslan Fedoseev, 2015-09-26
@martin74ua

/30 network is issued to the link. Those. assign a free address from this network to the interface. In this case, 1.1.1.2/30, you specify 1.1.1.1 as the gateway
. But 2.2.2.0/29 is routed to you. Those. You can use the addresses from it behind Mikrotik to assign them to the necessary computers. For example, on the internal interface of Mikrotik you hang 2.2.2.1/29, assign 2.2.2.2/29 to the computer, specify 2.2.2.1 as the gateway on the computer. So you can use the addresses 2.2.2.2-2.2.2.6
Well, or for example, distribute it from Mikrotik. In this case, clients can be assigned addresses 2.2.2.0-2.2.2.7, and the address on the VPN interface from the side of Mikrotik does not matter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question