简体   繁体   English

虚拟网络编辑器和无法访问Internet

[英]Virtual Network Editor and No Internet Access

I am trying to figure out the reason a Windows Server 2012 R2 virtual machine (VMWare Workstation 12.5) with Active Directory and DNS roles is complaining about No Internet Access (with an exclamation mark superimposed over the network icon in the Windows taskbar)... even though I am able to access Internet . 我试图弄清楚具有Active Directory和DNS角色的Windows Server 2012 R2虚拟机(VMWare Workstation 12.5)抱怨没有Internet访问 (在Windows任务栏中的网络图标上叠加了感叹号)的原因... 即使我能够访问互联网

Using Virtual Network Editor, I enabled a Virtual Network Adapter VMNet8 with following properties: 使用虚拟网络编辑器,我启用了具有以下属性的Virtual Network Adapter VMNet8

  • Type: NAT 类型: NAT
  • Subnet address of 192.168.153.0 子网地址192.168.153.0
  • Gateway IP is set by default to 192.168.153.2 网关IP默认设置为192.168.153.2

In the VM, following properties are set on the single network adapter: 在VM中,在单个网络适配器上设置以下属性:

  • Static IP of 192.168.153.15 静态IP为192.168.153.15
  • subnet mask is 255.255.255.0 子网掩码是255.255.255.0
  • Default gateway is 192.168.153.2 默认网关是192.168.153.2
  • Preferred DNS server is 127.0.0.1 (loopback address) 首选DNS服务器是127.0.0.1 (环回地址)
  • Computer belongs to contoso.local domain (established by AD setup) 计算机属于contoso.local域(由AD设置建立)

Under DNS settings, I set up a forwarder specifying IP address 192.168.153.2 (same as gateway IP of virtual network adapter VMNet8 ). 在DNS设置下,我设置了一个转发器,指定IP地址192.168.153.2 (与虚拟网络适配器VMNet8网关IP相同)。 Without this forwarder, name resolution does not work but I can still access the Internet using IP addresses (instead of FQDNs). 没有此转发器,名称解析不起作用,但我仍然可以使用IP地址(而不是FQDN)访问Internet。

You do not need to forward your dns queries to gateway. 您无需将dns查询转发到网关。 Normally dns doesn't need forwarders for this situation. 通常,dns在这种情况下不需要转发器。 It has own records for local ip's and root hints for public ip's. 它拥有本地ip的自己的记录和公共ip的根提示。 Try this; 尝试这个; forward your queries to 8.8.8.8 and see if it works. 将您的查询转发到8.8.8.8并查看它是否有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM