A
A
alexm642018-08-10 17:39:17
virtual box
alexm64, 2018-08-10 17:39:17

Set up networking in Virtualbox? Routes in the main OS?

We have a main Win7 machine that has two network interfaces:
1) to the 10.146.58.x network
2) to the 192.168.168.x network
In Virtualbox, a Centos guest with a bridge network adapter and a static address of 192.168.168.2 is deployed.

DEVICE="eth1"
BOOTPROTO="static"
IPV6INIT="yes"
MTU="1500"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR="192.168.168.2"
NETMASK="255.255.255.0"
GATEWAY="192.168.168.1"

There is also a host on the network 192.168.168.100 which should see the Centos guest 192.168.168.2 and vice versa.
Virtualbox settings:
5b6da21fdd63d367102531.png5b6da27fc79bf765622089.png
How to make hosts 192.168.168.2 and 192.168.168.100 see each other?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-08-10
@Tabletko

In theory, nothing but a bridge is needed on the interface of the virtual machine

E
Ezhyg, 2018-08-10
@Ezhyg

there are two network interfaces

Er... why are you mixing physical and logical interfaces together?
The Bridge in the Box must be connected to the correct NIC, with the address 192.x.x.x. Unless, of course, your cards have one address and two of them.
More, as already said - nothing is needed. The bridge makes the virtual machine a full-fledged separate machine, albeit a virtual one.
Where is the first screenshot from?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question