A
A
andrewjsk2022-02-14 14:08:13
WiFi
andrewjsk, 2022-02-14 14:08:13

How to use an additional IP address from the provider in a virtual machine?

Given :

  • Two IP addresses from the provider;
  • Classic home router (TP-LINK DECO M3);
  • Home PC with Wi-Fi adapter;
  • Multiple virtual machines and the ability to add/configure virtual network connections.


Task :

Make it so that half of the virtual machines use one IP address, the other half use another.

Question :

In general, the essence is stated in the task. Looking ahead, I can already conclude that most likely this will not work with my current equipment. If you register the settings issued by the provider at the virtual machine level, nothing works. If you register at the level of a virtual network connection - too. As they explained to me in support, my computer receives an IP via wifi from the router and then gives it to any virtual machine / virtual connection and the settings for them will not help in any way, and the wifi router itself will not be able to transmit more than one IP address. I came to the conclusion that to solve the problem, I need a switch, another router and another wifi adapter in order for the additional wifi router to work on an additional IP. If that solves the problem at all. In general, the opinion of experts is needed. I'm still leaning towards the fact that it's easier to just buy a VPN.

UPD : I scored and bought a simple VPS on which I set up openVPN.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2022-02-14
@andrewjsk

It's easier to buy a VPN, that's for sure. Or rent a VPS for a penny, raise a VPN there and connect the necessary virtual machines to it.
Your router does not have the necessary settings to accept several IPs from the provider, because a cheap home router simply does not imply such use)
On the other hand, Mikrotik routers, even the cheapest ones (from 1600r right now, it seems) can do what you want. But they need to be "prepared" correctly.
You can get addresses directly from the provider and then spread them further, for example, by connecting the provider directly to the PC, bypassing the router.
This can be done both by cable and via wifi, with the right settings (but I don’t think that TPlink can do this setting)
You can put a simple switch on the provider’s cable, 2 cables from it - 1 to the router, the second to the PC.
Get that 1 IP will be given directly to the PC, the 2nd to the router

C
CityCat4, 2022-02-14
@CityCat4

Make it so that half of the virtual machines use one IP address, the other half use a different one.

Under these conditions, the problem has no solution. Cheap home routers solve the standard problem of an ordinary person - one IP into which everything is navigating, the input flow far exceeds the output flow. To use two IPs, and even with the choice of what comes from, you need a mikrotik, because most home routers simply do not have the necessary functionality (raise two IPs, mark traffic and natit according to the marking).
The option of installing a switch on the provider's wire is possible - but undesirable, because it leaves you bare #oops in tyrnet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question