D
D
Dmitry2017-07-02 21:40:05
Mikrotik
Dmitry, 2017-07-02 21:40:05

Mikrotik 2 white IP addresses come from the provider on the same cable, but on different VLANs. How to setup?

Good day.
We have Mikrotik RB3011 on the first port of which the Internet comes. The provider issued 2 white IP addresses breaking them into different VLANs.
Given:
VLAN_1 - 10.0.0.169 GW - 10.0.0.168
VLAN_2 - 10.0.0.53 GW - 10.0.0.52
Where 10.0.0.XXX are white IP addresses, GW are gateways to these IPs.
Required:
For example, from the 2nd port of mikrotik, a computer (let's call it PC1) went to the Internet via the first VLAN_1 (10.0.0.169) and, accordingly, there was access from outside to this computer via the same IP.
PC2 is connected to port 3 and goes to the Internet via VLAN_2. You will also need access to this PC from the outside.
Please advise how to properly set this up.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Zhurkin, 2017-07-03
@3LoI

You need to configure vlan On mikrotik itself and conditionally bind to the interfaces you need.
Since in fact you do not have a dedicated wan port, you can add the first port to masterport 2. (it is master by default)
interface> ether-1> master port
Then you will need to create and bind tedious vlans in the switch chip, very this is well described and explained here: https :
//14bytes.ru/mikrotik-nastraivaem-vlan-trunk...
ip issued by the provider.
Here is another interesting example for understanding
https://habrahabr.ru/post/313702/
and yes, it's better to do everything through switch, as this will offload the CPU.
There will be questions to ask.

D
Dmitry, 2017-07-05
@3LoI

To all who participated, thank you!
The lion's share of the problems turned out to be in incorrectly configured VLANs on the provider's side.
At the moment everything is working.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question