尝试让虚拟机工作站中的 sql server 2008 虚拟机实例使用与主机相同的 ip 范围。我的 PC 使用 192.168.1.6,而我的虚拟机使用 192.168.199.128,因此它没有显示在我的 netgear 路由器上,我打算在其上进行 rdp 和 sql server 端口转发。VM Ware 2008 R2
编辑
感谢您的回答,但我设法解决了互联网连接问题,但 IP 地址仍然是 192.168.199.128,所以我的路由器仍然找不到它 :-(
1 打开虚拟网络配置
2 找到vmnet0的网卡
3 将其指向你的 wifi 中继器或以太网
当我尝试将 IP 地址应用到我的路由器时,我收到以下错误消息
此 IP 地址应与 LAN IP 地址位于同一子网
仍然有问题,有人可以帮忙吗?
IP 配置 /全部来自 PC
Windows IP Configuration
Host Name . . . . . . . . . . . . : WIN-M71FFCH83PK
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Wireless LAN adapter Local Area Connection* 5:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #3
Physical Address. . . . . . . . . : 00-26-82-48-B1-D1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Ethernet 4:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox NDIS 6.0 Miniport Driver
Physical Address. . . . . . . . . : 0A-00-27-00-00-00
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::753f:5eab:fd3d:ff84%22(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.255.132(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 705167399
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-FB-5D-64-40-61-86-65-76-1C
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Ethernet 3:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : @%SystemRoot%\System32\drivers\ndisimplatform.sys,-530
Physical Address. . . . . . . . . : 00-26-82-48-B1-D7
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5c66:fc2b:533:60cc%18(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.7(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 21 November 2015 22:01:42
Lease Expires . . . . . . . . . . : 22 November 2015 22:10:28
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 536876381
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-FB-5D-64-40-61-86-65-76-1C
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8
Physical Address. . . . . . . . . : 00-50-56-C0-00-08
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::197b:85ca:9807:f08d%19(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.31.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 21 November 2015 22:10:33
Lease Expires . . . . . . . . . . : 21 November 2015 23:10:45
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 192.168.31.254
DHCPv6 IAID . . . . . . . . . . . : 318787670
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-FB-5D-64-40-61-86-65-76-1C
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
Primary WINS Server . . . . . . . : 192.168.31.2
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Ethernet 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Windows Adapter V9
Physical Address. . . . . . . . . : 00-FF-BE-98-B0-7A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{BC4EBD2A-B24D-4CAD-9822-C0A3969EF20B}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{9A10FABC-346F-4BCA-B436-C112989A0781}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{21FADB3C-C5E4-4882-A533-6F1D4DAE3176}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Ipconfig /所有来自虚拟机的结果
Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\david>ipconfig /all
Windows IP 配置
Host Name . . . . . . . . . . . . : WIN-B429VBF4FQE
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : localdomain
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : localdomain
Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connectio
n
Physical Address. . . . . . . . . : 00-0C-29-3A-A8-F1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::cc49:9705:bb6d:843b%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.31.128(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Saturday, November 21, 2015 10:13:11 PM
Lease Expires . . . . . . . . . . : Saturday, November 21, 2015 10:43:11 PM
Default Gateway . . . . . . . . . : 192.168.31.2
DHCP Server . . . . . . . . . . . : 192.168.31.254
DHCPv6 IAID . . . . . . . . . . . : 234884137
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-E2-9B-B5-00-0C-29-3A-A8-F1
DNS Servers . . . . . . . . . . . : 192.168.31.2
Primary WINS Server . . . . . . . : 192.168.31.2
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.localdomain:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : localdomain
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
C:\Users\david>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : WIN-B429VBF4FQE
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : localdomain
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : localdomain
Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connectio
n
Physical Address. . . . . . . . . : 00-0C-29-3A-A8-F1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::cc49:9705:bb6d:843b%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.31.128(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Saturday, November 21, 2015 10:38:48 PM
Lease Expires . . . . . . . . . . : Saturday, November 21, 2015 11:08:48 PM
Default Gateway . . . . . . . . . : 192.168.31.2
DHCP Server . . . . . . . . . . . : 192.168.31.254
DHCPv6 IAID . . . . . . . . . . . : 234884137
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-E2-9B-B5-00-0C-29-3A-A8-F1
DNS Servers . . . . . . . . . . . : 192.168.31.2
Primary WINS Server . . . . . . . : 192.168.31.2
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.localdomain:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : localdomain
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
答案1
将网络适配器的类型更改为桥接而不是 NAT。
默认为 NAT,这会将您的虚拟机置于隔离子网中。如果您使用桥接模式,它将使用与您的主网络适配器相同的网络。
答案2
对于其他人来说,问题确实出在我以前安装的虚拟机上,我卸载了它,并删除了它创建的桥接,现在一切都很好,我可以在我的网络中看到虚拟机