S
S
Sasha Odarchuk2019-01-20 17:44:55
Mikrotik
Sasha Odarchuk, 2019-01-20 17:44:55

Mikrotik and 4 IPs - how to properly distribute them to virtual machines?

Hello!
There is Mikrotik, to which 4 IPs "come" from the provider from one subnet. With these IPs, you need:
1) 111.2.3.40 - the "main" IP, through which you will have access to the Internet for users / servers
2) 111.2.3.41 - you need to completely "give" it to VM-1. This VM will go to the Internet through it.
3) 111.2.3.42 - forward port 80/443 to VM-2. This VM will go to the Internet through it.
4) 111.2.3.43 - forward port 80/443 to VM-3
How to organize this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stnlss, 2020-01-18
@Stnlss

If a subnet of 4 IPs is selected, then 111.2.3.40 is the network address with a 30-bit mask (/30 or 255.255.255.252), and 111.2.3.43 is the broadcast address. Accordingly, only 2 addresses can be assigned to devices from a subnet of 4 IP addresses: 111.2.3.41 and 111.2.3.42

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question