question

TapPearson-8342 avatar image
0 Votes"
TapPearson-8342 asked TapPearson-8342 commented

Network Descriptions

I am setting up multiple 4 port nics in a 2019 Hyper-V server core. The issue is the descriptions are assigned randomly (ie Intel(R) Gigabit 4P I350-t Adapter #4 is the second port in the card). I can figure out how to go into the registry and rename the description (ie change Intel(R) Gigabit 4P I350-t Adapter #4 to Intel(R) Gigabit 4P I350-t Adapter #2) but when I go to setup the virtual switch the number is the old description. So the virtual switch pulls the network adapter information form some where besides the registry. Is the any way to fix this?


The reason I need this is to label the nic ports because some of the VM's are running on different switches and it will be a nightmare to try and figure out how to cable them all.

windows-server-2019windows-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.

Facing the same issue. From the last 2 months I am trying to sett up multiple 6 porst nics so that we could better manage and run our teers today startup. But facing the same issue. I have consultant with different expert but no one is able to fix the issue. If you have fixed it so kindly share the method of fixing it. It will be helpful for us.


1 Vote 1 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered

Might check if the hardware support Consistent Device Naming
https://petri.com/consistent-device-naming-overview/

--please don't forget to upvote and 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.

TapPearson-8342 avatar image
0 Votes"
TapPearson-8342 answered TapPearson-8342 commented

@DSPatrick

That doesn't work. Here is a picture of what I am talking about. In the Networks listing I have highlighted the name I changed in the registry. It was originally Intel(R) Ethernet Connection (2) I218-LM and I changed it to Intel(R) Ethernet Connection I218-LM. 202467-network.jpg


When I use the adapter in a virtual switch, the network adapter comes up as Intel(R) Ethernet Connection (2) I218-LM. No where is it listed in the registry like that.
202502-virtual.jpg

So when I go and rename the actual adapters that count (Intel(R) Gigabit 4P I350-t Adapter - Intel(R) Gigabit 4P I350-t Adapter #12) an assign them to the correct ports, the virtual switch manager will still be using the old ports and cause issues. So how do we fix it? Where does the virtual switch manager get the "network adapter" name from? Because it doesn't come from the registry.



network.jpg (65.9 KiB)
virtual.jpg (25.2 KiB)
· 4
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.

If the hardware doesn't support CDN then you may be left with identifying them with the MAC address.


0 Votes 0 ·

I can change the description, but virtual switch management reads the original description from somewhere other than the registry. Here is my current setup.

Intel(R) Gigabit 4P I350-t Adapter #2 Port 1
Intel(R) Gigabit 4P I350-t Adapter #8 Port 2
Intel(R) Gigabit 4P I350-t Adapter #6 Port 3
Intel(R) Gigabit 4P I350-t Adapter #10 Port 4
Intel(R) Gigabit 4P I350-t Adapter #7 Port 5
Intel(R) Gigabit 4P I350-t Adapter #5 Port 6
Intel(R) Gigabit 4P I350-t Adapter #9 Port 7
Intel(R) Gigabit 4P I350-t Adapter #11 Port 8
Intel(R) Gigabit 4P I350-t Adapter Port 9
Intel(R) Gigabit 4P I350-t Adapter #3 Port 10
Intel(R) Gigabit 4P I350-t Adapter #4 Port 11
Intel(R) Gigabit 4P I350-t Adapter #12 Port 12


Now I can go into the registry and rename the descriptions by changing Intel(R) Gigabit 4P I350-t Adapter #2 to Intel(R) Gigabit 4P I350-t Adapter #1 so they match the correct port. When I look at the network information the description shows Intel(R) Gigabit 4P I350-t Adapter #1 after the change. But in the virtual switch manager the "Network Adapter" still says Intel(R) Gigabit 4P I350-t Adapter #2.

So where does the virtual switch manager get the "Network Adapter" name of Intel(R) Gigabit 4P I350-t Adapter #2 from? Especially when it is change to Intel(R) Gigabit 4P I350-t Adapter #1 in the registry?



0 Votes 0 ·
DSPatrick avatar image DSPatrick TapPearson-8342 ·

Again I don't think that's a reliable solution. If the hardware doesn't support CDN then you may be left with identifying them with the MAC address.


0 Votes 0 ·
Show more comments
DSPatrick avatar image
0 Votes"
DSPatrick answered TapPearson-8342 commented

Neither is a MAC address when labeling the back of a nic port.

I don't know what this even means


So again, where does the Virtual Switch get the Network Adapter from? The information is not in the registry.

I'd ask the hardware vendor for help, or you can also start a case here with product support.
https://support.serviceshub.microsoft.com/supportforbusiness


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


· 6
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.

This is an OS issue, not a hardware issue. Somewhere in the bowels of Hyper-V the information "Network Adapter" in "Virtual Switch Manager" is being pulled from a config file. Currently the "Network Adapter" listed in "Virtual Switch Manager" matches the "Description" in "Network Connections" (see the pictures above). Now if I change the "Description" in "Network Connections" so that the Adapter # matches the Port # on the NIC, that information does not update the "Network Adapter" information in "Virtual Switch Manager".

I can delete the cards and reinstall them to get them to change the Adapter #, but they still never line up to the port.

Now you offered the suggestion "identifying them with the MAC address". But that does not work seeing that the MAC address isn't listed in "Network Connections" or Virtual Switch Manager".


So if you don't have a clear idea of what you are talking about, quit throwing garbage against the wall hoping it will stick.

0 Votes 0 ·
DSPatrick avatar image DSPatrick TapPearson-8342 ·


 Get-NetAdapter -Name * -Physical




0 Votes 0 ·

Again, still doesn't provide the solution. Give it up and let someone with actual knowledge answer the question.

0 Votes 0 ·
Show more comments
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered TapPearson-8342 commented

Hello TapPearson,

Unfortunately the Interface Description is provided by the manufacturer and Windows allocates the "#" for differenciating same model and brand interfaces.

What can be change is the Friendly Name of the adapter with:
Rename-NetAdapter -Name "Ethernet" -NewName "ManagementAdapter"
Reference: https://docs.microsoft.com/en-us/powershell/module/netadapter/rename-netadapter?view=windowsserver2022-ps

There are some details provided by comunity experienced users, that went through the registry and it seems that mainly the Interface Description is allocated in these paths, but also in many other places of the registry, so if there is a dependancy you would need to us the Find option in the registry to locate all the places where a Interface Description is mentioned and change for the same. This process is highly not recommended but provided as orientation:

The main regsitry chain for the settings is here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\2\Description
and
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\NetworkCards\2



--If the reply is helpful, please Upvote and Accept as answer--

· 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.

Again, none of those solve my problem. Please see the attached picture and if you can tall me where "Network Adapter" comes from in "Virtual Switches".

204833-nics.jpg


0 Votes 0 ·
nics.jpg (186.1 KiB)