Que configurações o Windows usa para determinar o local da rede?

3

O Windows tem o conceito de reconhecimento de localização de rede (NLA), o que significa que você pode configurar uma rede como "pública" (ou seja, casa / trabalho), "privada", etc.

Quais informações são usadas para "imprimir impressões digitais" de uma rede para esse fim?

    
por Roger Lipscombe 13.07.2009 / 11:49

3 respostas

1

Veja o link

JR

    
por 13.07.2009 / 12:46
2

Fonte: link

The Network Location Awareness (NLA) service provider is vital for computers or devices that might move between different networks, and for selecting optimal configurations when more than one is available. For example, a wireless computer roaming between physical networks can use NLA to determine the proper configuration based on information about its available network connection. NLA also proves valuable when a multihomed computer has a physical connection to one network while also connected to another network through a dial-up connection or a tunnel.

In the past, developers had to obtain information about a logical network interface, and therefore make decisions about network connectivity, based on a multitude of disparate network information. In those circumstances, developers had to choose the appropriate network interface based on the IP address, the subnet of the interface, the Domain Name System (DNS) name associated with the interface, the MAC address of a NIC, a wireless network name, or other network information. NLA alleviates this problem by supplying a standard interface for enumerating logical network attachment information, correlating it with physical network interface information, and then providing notification when previously returned information gets invalidated.

NLA provides the following network location information:

  • Logical Network Identity

    NLA first attempts to identify a logical network by its DNS domain name. If a logical network does not have a domain name, NLA identifies the network from custom static information stored in the registry, and finally from its subnet address.

  • Logical Network Interfaces

    For each network to which a computer is attached, NLA supplies an AdapterName that uniquely identifies a physical interface such as a NIC, or a logical interface such as a RAS connection. The AdapterName can then be used with functions available in the IP Helper API to obtain further interface characteristics.

NLA implements the logical network as a service class, with an associated class GUID and properties. Each logical network for which NLA returns information is an instance of that service class.

    
por 13.07.2009 / 12:18
0

Com base em experimentos recentes (com o Server 2012, mas suspeito que versões anteriores sejam semelhantes) em redes não dominadas e configuradas estaticamente, o serviço NLA usa o endereço de camada de link (MAC) do gateway padrão para identificar a rede. / p>

Os detalhes não estão claros, embora eu suponha que eles pudessem ser resolvidos com um analisador de rede. Se o gateway padrão configurado não responder, o NLA não reconhece a rede, por isso está definitivamente fazendo algum tipo de consulta. (Ou seja, você não pode simplesmente colocar um endereço de gateway fictício ou até mesmo um endereço de gateway fictício mais uma entrada arp estática; o endereço MAC do gateway associado a uma rede específica deve realmente responder para que o NLA decida se o adaptador está conectado para essa rede.)

Veja também minha entrada no blog em uma maneira de enganar o Windows 2012 para atribuir um adaptador a uma rede única.

Se o adaptador tiver um endereço atribuído pelo DHCP, a lógica poderá ser diferente. Eu não olhei para isso ainda. A lógica de uma rede de domínio é documentada de acordo com as respostas existentes.

    
por 03.02.2013 / 04:38

Tags