N
N
Nikolay Baranenko2017-08-12 13:37:12
virtual box
Nikolay Baranenko, 2017-08-12 13:37:12

How to restore a network with a local machine and a CentOS VM located on it?

Hello.
I have a laptop with 2 virtual machines running CentOS.
The network in the virtual machines is configured as a network bridge (they are accessible via the local network from other hosts).
In LAN they have constant ip like 192.168.0.XX, Gateway and DNS are registered - this is a router 192.168.0.1
In general, today I decided to take a laptop with me and work with the project.
There was a problem that from the laptop ip virtualok became available.
On a windows 10 laptop (permanent ip 192.168.0.XX with registered gateway and DNS of the router)
In the Virtual Box properties, I activated the network connection
0e785bc2bfd14c9e989377e82bd95d75.jpg13ef868f86024c05bc4ddde6bab0dd12.jpg
, I can’t get through to the virtual machines from the locale.
What would you recommend to do to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolay Baranenko, 2017-08-13
@drno-reg

in general, I solved the problem in this way,
in the environment of the virtual networks of the host, I created an additional Virtual Host Ethernet Adapter # 2
and provided it with settings similar to the local network router
after I made changes to the Network of a specific virtual machine
. Thus, the virtual machines became available on those IPs with which I could work with them from the local network with a router.

K
Konstantin Tsvetkov, 2017-08-12
@tsklab

Turn off the second adapter. You will only have the network on the laptop's network adapter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question