virtualbox - Two host only networks do not see each other. Why?
问题描述
I need to build a lab with particulatly following params:
- 1 VM uses host only adapter vboxnet0 (subnet is .56.0/24).
- 1 VM uses host only adapter vboxnet1 (subnet is .57.0/24).
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?
解决方案
我对网络和 IP 不太了解,但对我来说,如果子网掩码为 255.255.0.0,我看到 192.168.56.0 只能看到 192.168.57.0,否则它们是不同的网络
推荐阅读
- python - 无法在scrapy中抓取下一页
- swift - 可可豆荚。iOS 部署目标 IPHONE_DEPLOYMENT_TARGET
- css - SASS 模块:如何在不同的 sass 模块和项目中使用相同的模块配置值
- javascript - 是否可以在不创建计算或数据属性的情况下清理道具
- python - Kivy 应用无法在手机上运行,但可以在计算机上运行
- python-3.x - pip install --no-cache-dir psycopg2 安装但在 macOS Catalina 10.15.7 中无法使用 - 在 /usr/lib 中查找 libpq.5.dylib - 如何更改位置?
- clockify - 仅针对客户的项目请求不会过滤掉没有客户的项目
- java - 在 Java 中设置值时出现 InvocationTargetException
- html - 在不影响其他元素的情况下调整 SVG 的大小
- c# - 带有可选数据的对象