S
S
Sergey2018-10-28 12:27:28
linux
Sergey, 2018-10-28 12:27:28

How to give white IP, linux on VirtualBox?

Good afternoon, I installed the following Linux distributions on VirtualBox:
- Debian
- CentOS
- Ubuntu
So, how to allocate a white IP to the distribution?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
metajiji, 2018-11-20
@t3g1ng

Network your vm into a bridge with a real host interface. We do not make any settings on the canvas.
If your provider gave you 1 IP, and you want to go to the Internet from the host, then add another interface to virtualk, configure the IP on it from the non-routable range - gray IP. For example, 10.0.0.2/24, and inside the vm we make 10.0.0.1/24, then enable ip forwarding and configure masquerading (nat) for the gray network.
We get that the virtualka sticks out to the Internet with a white IP, and the host goes to the Internet through the virtualka.

P
pfg21, 2018-10-28
@pfg21

it is not described how a white IP is issued to the host system, and indeed the conditions
1. if it is possible to control the issuance of white IPs, then on the virtualbox set up a bridge between the guest and the network in which it is possible to receive a white IP and associate the poppy address of the guest network card with the white IP.
2. if there is only one white IP and is bound to the host, then in virtualbox set up NAT mode for the guest and forward the necessary ports to the guest.
You can come up with a couple more options, but you need to know the conditions of the place.

S
Saboteur, 2018-10-28
@saboteur_kiev

In theory, no way, the white IP is connected to your host machine anyway.
You can do port forwarding of specific ports to a specific virtual machine.

C
cssman, 2018-10-29
@cssman

1) forward a white ip from the host OS
2) if there is a second free white ip from the same pool as the host ip, assign it to the virtual machine interface and configure routing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question