如何连接两个子网?
我无法在这些子网之间ping或traceroute。
Vbox1 子网 ifconfig:
eth0 Link encap:Ethernet HWaddr 08:00:27:f1:68:9e
inet addr:192.168.1.65 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef1:689e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:207703 errors:0 dropped:0 overruns:0 frame:0
TX packets:41701 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45480669 (45.4 MB) TX bytes:4855362 (4.8 MB)
eth1 Link encap:Ethernet HWaddr 08:00:27:79:02:34
inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe79:234/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:913 errors:0 dropped:0 overruns:0 frame:0
TX packets:1335 errors:0 dropped:0 overruns:0 …
Run Code Online (Sandbox Code Playgroud) 在 Virtualbox 4.3.26 版中,我想安装 Ubuntu 16.04 客户端。网络配置是适配器 1:桥接适配器名称:eth0 适配器 2:NAT
通过这种配置,我确实可以访问互联网,但不能访问我的本地网络。
我试过:static-ip-in-virtualbox-machine-with-ubuntu-16-04但是当设置为仅主机时,我无法选择任何东西。
我已阅读Virtualbox 手册第 6 章,但找不到解决方案。
我尝试过如何重命名网卡,但添加规则对我不起作用。
在我的其他虚拟机客户端中,我必须添加客户端(Ubuntu)接口文件(/etc/network/interfaces),结果是:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
dns-nameservers 192.168.1.70 192.168.1.1
address 192.168.1.66
gateway 192.168.1.1
Run Code Online (Sandbox Code Playgroud)
在 virtualbox 网络设置适配器 1 中:桥接适配器,名称:eth0
通过此配置,我可以使用其他(Ubuntu 14.04)Virtualbox 客户端访问我的本地网络和 Internet。
Ubuntu 16.04 中的名称系统已更改,不再使用 eth0 而是通过使用 ifconfig 进行检查:
me@vBox1b-client:~$ ifconfig
enp0s3 Link encap:Ethernet HWaddr 08:00:27:9e:aa:c9
inet addr:192.168.1.78 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: …
Run Code Online (Sandbox Code Playgroud)