T
T
TheObormot2014-04-25 21:31:18
Virtualization
TheObormot, 2014-04-25 21:31:18

How are IPs assigned when creating a VM on a host?

Actually, the question is for understanding the scheme of work.
Let's say there is a rented physical server with a white IP.
We create many virtual machines on it (for example, on WINDOWS). Will each VM have a separate IP for connecting via RDP (or in another way)?
If so, at what software level are IP addresses allocated? At the hypervisor level, or maybe a separate "switch" service application?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sanes, 2014-04-27
@Sanes

Look towards port forwarding.

P
Pavel Vasterov, 2014-04-28
@zxc80

"Let's say there is a leased physical server with a white IP." this IP will be used to control the server?
"We create a lot of virtual machines on it (for example, on WINDOWS). Will each VM have a separate IP for connecting via RDP (or in another way)?" You can configure each BM with a white IP address, this is better, but it can be more expensive.
"If so, at what software level are IP addresses allocated? At the hypervisor level, or maybe a separate "switch" service application?" At the hypervisor level, there is a "service application" switch, located in HYPER-V in the Virtual Switch Manager (right-click on the host in the HYPER-V snap-in, the switch is extensible, you can screw at least nexus 1000 there)

S
Sergey, 2014-04-26
@edinorog

Hmm. The server has a white IP. Which you got from the one who gave you this server. You raised a hundred virtual machines ... then your IP address began to multiply by the number of machines. Nope. Let's call it the term "the birth of new IPs". This is if you follow your logic.
White SP will only have a hypervisor. And a switch is created in it, some kind of dhcp server rises and it distributes gray IPs to your virtual machines. Then you transfer the ip (network interface) to the gateway virtual machine (it can also act as a dhcp server in the internal switch), and hide the hypervisor behind it.

T
TheObormot, 2014-04-26
@TheObormot

here your IP began to multiply by the number of machines

I'm sorry - I worded the question inaccurately. Meaning the need to request additional from the provider. IP for each VM.
Those. via RDP, we always connect to one host with a white IP. And how does the gateway virtualac "standing at the entrance" distribute connections (to the desired VM user)?
Perhaps based on the login and password specified when connecting via RDP?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question