首页 > 解决方案 > Two host only networks do not see each other. Why?

问题描述

I need to build a lab with particulatly following params:

Host OS is Linux Mint. HyperVisor - VirtualBox. Rotung table on the host:

default         192.168.0.1     0.0.0.0         UG    100    0        0 enp4s0
link-local      *               255.255.0.0     U     1000   0        0 enp4s0
192.168.0.0     *               255.255.255.0   U     100    0        0 enp4s0
192.168.56.0    *               255.255.255.0   U     0      0        0 vboxnet0
192.168.57.0    *               255.255.255.0   U     0      0        0 vboxnet1

/proc/sys/net/ipv4/ip_forward is set to 1 (enabled)

iptables: Chain FORWARD (policy ACCEPT) target prot opt source destination

So the issue is that both VMs can only ping its gateway integface. but cannot reach each other. What i am missing?

标签: virtualbox

解决方案


我对网络和 IP 不太了解,但对我来说,如果子网掩码为 255.255.0.0,我看到 192.168.56.0 只能看到 192.168.57.0,否则它们是不同的网络


推荐阅读