L
L
Lev K2017-11-08 21:59:52
virtual box
Lev K, 2017-11-08 21:59:52

VirtualBox routing, what's wrong?

Hello!
I want to set up a local network between 2 virtual:
1) ubuntu (nat 10.0.2.20 + internal network 192.168.0.100)
2) ubuntu (internal network 192.168.0.200)
routes to 1:

default         10.0.2.2        0.0.0.0         UG        0 0          0 enp0s3
default         10.0.2.2        0.0.0.0         UG        0 0          0 enp0s8
10.0.2.2        *               255.255.255.255 UH        0 0          0 enp0s8
link-local      *               255.255.0.0     U         0 0          0 enp0s3
192.168.0.0     *               255.255.255.0   U         0 0          0 enp0s8
где enp0s3 - nat , enp0s8 - внутреняя сеть

on 2:
default         192.168.0.100   0.0.0.0         UG        0 0          0 enp0s3
link-local      *               255.255.0.0     U         0 0          0 enp0s3
192.168.0.0     *               255.255.255.0   U         0 0          0 enp0s3

There is a feeling that something is wrong with the routes on 1 machine, because from the 2nd ping 192.168.0.100 is pinged, and traffic is added to 1 (I look in ifconfig), but only on the internal network, it does not reach nat.
PS. I did everything the same, but with the adapter type "network bridge" the results are
identical
. How to direct traffic to nat?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question