配置VM网络设置以SSH到mininet VM


0

我试图配置我的VM(mininet vmdk)网络设置,以便从主机上将其ssh插入。我正在使用virtualbox作为我的管理程序。

按照Mininet的说明(http://mininet.org/vm-setup-notes/),我在VM上添加了一个额外的仅主机适配器。在我的网络设置中,将适配器1配置为NAT,将适配器2配置为仅主机的适配器。但是,当我在虚拟机中使用ifconfig时,仅列出了eth0和lo。eth0没有关联的IP地址;有人可以解释为什么会这样吗?是否应该列出另一个eth1接口(用于仅主机适配器)?

在此先感谢您的帮助!


适配器1或2是eth0吗?将ifconfig中的MAC地址与Virtualbox网络选项卡中的MAC地址进行比较。另外,您是否在仅主机网络上配置了DHCP服务器?
Kenster,2014年

Answers:


0

eth0与NAT或仅主机绑定到哪个适配器?您可以使用mac地址进行确认。您还可以检查在运行虚拟盒的Windows机器上是否创建/存在VirtualBox仅限主机的以太网适配器。

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 08-00-27-00-E4-FD
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::b9c4:1994:c678:3e0f%24(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 772276263
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-87-69-22-F0-DE-F1-34-AB-6C
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

如果未正确创建或配置此适配器,则eth1将不会显示在mininet虚拟机中。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.