question

Tutek avatar image
0 Votes"
Tutek asked CandyLuo-MSFT commented

Hyper-V Server change Network Profile after reboot

Hi,
after reboot hyper-v server is changing my network profile to Public and then I cannot ping or manage my server

PS C:\Users\Administrator> Get-NetConnectionProfile

Name : Network
InterfaceAlias : Function 0
InterfaceIndex : 3
NetworkCategory : Private
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

Name : Unidentified network
InterfaceAlias : Ethernet
InterfaceIndex : 9
NetworkCategory : Public
IPv4Connectivity : NoTraffic
IPv6Connectivity : NoTraffic




windows-server-hyper-v
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please post a screenshot in Control Panel\Network and Internet\Network and Sharing Center to help us identify your problem better. As picture below:
80154-image.png


0 Votes 0 ·
image.png (20.9 KiB)
DSPatrick avatar image
0 Votes"
DSPatrick answered

When NLA starts to detect the network location, the machine will contact a domain controller via port 389. If this detection is successful, it will get the domain firewall profile (allowing for correct ports) and we cannot change the network location profile.
If the domain was not found or process failed, NLA will let you to determine which firewall profile will be used, private or public.

The Network Location Awareness (NLA) service expects to be able to enumerate the domain’s forest name to choose the right network profile for the connection. The service does this by calling DsGetDcName on the forest root name and issuing an LDAP query on UDP port 389 to a root Domain Controller. The service expects to be able to connect to the PDC in the forest domain to populate the following registry subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\NetworkList\Nla\Cache\IntranetForests
If something hinders the DNS name resolution or the connection attempt to the DC, NLA is not able to set the appropriate network profile on the connection.

So I'd check the domain controller and problem member have the static address of DC listed for DNS and no others such as router or public DNS

--please don't forget to Accept as answer if the reply is helpful--




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Tutek avatar image
0 Votes"
Tutek answered CandyLuo-MSFT commented

@ CandyLuo-MSFT
this is hyper-v server core without any graphical user interface I cannot post a screenshot.

@DSPatrick
this hyper-v server core is placed on workgroup, I didn't connect it to domain.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just want to confirm the current situations.

Please feel free to let us know if you need further assistance.

0 Votes 0 ·

Did you have any updates on this issue?

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered

Hi ,

If you want to change network settings from public to private, you can run Set-NetConnectionProfile -Name "Unidentified network" -NetworkCategory Private command.

In addition ,please post the result of ipconfig/all to let us know the machine’s configuration.

Best Regards,

Candy


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.