(Windows) hardware discovery for network card with multiple adapters varies











up vote
0
down vote

favorite












I have a network card with 4 adapters (Intel server adapter I350-T4). When I insert this card into a PC, the adapters are discovered e.g. as follows:




  • I350-T4 => adapter 1

  • I350-T4 #2 => adapter 2

  • I350-T4 #3 => adapter 3

  • I350-T4 #4 => adapter 4


When I get another PC, and another network card (same make and model of course), Windows iterates the devices as follows:




  • I350-T4 #4 => adapter 1

  • I350-T4 #1 => adapter 2

  • I350-T4 #2 => adapter 3

  • I350-T4 #3 => adapter 4


This is a problem, as our technical documentation dictates which device is connected to which physical adapter. Since my software only has a reference to the "adapter name" windows assigns to the physical adapter I have no way of guaranteeing which "logical adapter" matches to which physical adapter.



I don't know how windows enumerates the devices on such a network card, and if there are network cards that do have a reproducing way of discovery.



I did test to swap the network cards between the PCs, and found that the way the adapters are discovered follows the network card.



Question1: how does windows discover network cards?



Question2: Is there anyway to influence this behavior?



Question3: Is there any logical property (thus in windows) to determine the physical port / position of the adapter?



Question4: If anybody would've experience with this specific topic, is there a better approach that let me couple logical adapters to physical adapters?










share|improve this question






















  • While I don't know the exact details, I expect the order of enumeration is out of Windows' control. The process is probably controlled by the adapter's driver.
    – Twisty Impersonator
    Nov 13 at 14:55















up vote
0
down vote

favorite












I have a network card with 4 adapters (Intel server adapter I350-T4). When I insert this card into a PC, the adapters are discovered e.g. as follows:




  • I350-T4 => adapter 1

  • I350-T4 #2 => adapter 2

  • I350-T4 #3 => adapter 3

  • I350-T4 #4 => adapter 4


When I get another PC, and another network card (same make and model of course), Windows iterates the devices as follows:




  • I350-T4 #4 => adapter 1

  • I350-T4 #1 => adapter 2

  • I350-T4 #2 => adapter 3

  • I350-T4 #3 => adapter 4


This is a problem, as our technical documentation dictates which device is connected to which physical adapter. Since my software only has a reference to the "adapter name" windows assigns to the physical adapter I have no way of guaranteeing which "logical adapter" matches to which physical adapter.



I don't know how windows enumerates the devices on such a network card, and if there are network cards that do have a reproducing way of discovery.



I did test to swap the network cards between the PCs, and found that the way the adapters are discovered follows the network card.



Question1: how does windows discover network cards?



Question2: Is there anyway to influence this behavior?



Question3: Is there any logical property (thus in windows) to determine the physical port / position of the adapter?



Question4: If anybody would've experience with this specific topic, is there a better approach that let me couple logical adapters to physical adapters?










share|improve this question






















  • While I don't know the exact details, I expect the order of enumeration is out of Windows' control. The process is probably controlled by the adapter's driver.
    – Twisty Impersonator
    Nov 13 at 14:55













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a network card with 4 adapters (Intel server adapter I350-T4). When I insert this card into a PC, the adapters are discovered e.g. as follows:




  • I350-T4 => adapter 1

  • I350-T4 #2 => adapter 2

  • I350-T4 #3 => adapter 3

  • I350-T4 #4 => adapter 4


When I get another PC, and another network card (same make and model of course), Windows iterates the devices as follows:




  • I350-T4 #4 => adapter 1

  • I350-T4 #1 => adapter 2

  • I350-T4 #2 => adapter 3

  • I350-T4 #3 => adapter 4


This is a problem, as our technical documentation dictates which device is connected to which physical adapter. Since my software only has a reference to the "adapter name" windows assigns to the physical adapter I have no way of guaranteeing which "logical adapter" matches to which physical adapter.



I don't know how windows enumerates the devices on such a network card, and if there are network cards that do have a reproducing way of discovery.



I did test to swap the network cards between the PCs, and found that the way the adapters are discovered follows the network card.



Question1: how does windows discover network cards?



Question2: Is there anyway to influence this behavior?



Question3: Is there any logical property (thus in windows) to determine the physical port / position of the adapter?



Question4: If anybody would've experience with this specific topic, is there a better approach that let me couple logical adapters to physical adapters?










share|improve this question













I have a network card with 4 adapters (Intel server adapter I350-T4). When I insert this card into a PC, the adapters are discovered e.g. as follows:




  • I350-T4 => adapter 1

  • I350-T4 #2 => adapter 2

  • I350-T4 #3 => adapter 3

  • I350-T4 #4 => adapter 4


When I get another PC, and another network card (same make and model of course), Windows iterates the devices as follows:




  • I350-T4 #4 => adapter 1

  • I350-T4 #1 => adapter 2

  • I350-T4 #2 => adapter 3

  • I350-T4 #3 => adapter 4


This is a problem, as our technical documentation dictates which device is connected to which physical adapter. Since my software only has a reference to the "adapter name" windows assigns to the physical adapter I have no way of guaranteeing which "logical adapter" matches to which physical adapter.



I don't know how windows enumerates the devices on such a network card, and if there are network cards that do have a reproducing way of discovery.



I did test to swap the network cards between the PCs, and found that the way the adapters are discovered follows the network card.



Question1: how does windows discover network cards?



Question2: Is there anyway to influence this behavior?



Question3: Is there any logical property (thus in windows) to determine the physical port / position of the adapter?



Question4: If anybody would've experience with this specific topic, is there a better approach that let me couple logical adapters to physical adapters?







windows networking






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 at 12:59









bas

1691212




1691212












  • While I don't know the exact details, I expect the order of enumeration is out of Windows' control. The process is probably controlled by the adapter's driver.
    – Twisty Impersonator
    Nov 13 at 14:55


















  • While I don't know the exact details, I expect the order of enumeration is out of Windows' control. The process is probably controlled by the adapter's driver.
    – Twisty Impersonator
    Nov 13 at 14:55
















While I don't know the exact details, I expect the order of enumeration is out of Windows' control. The process is probably controlled by the adapter's driver.
– Twisty Impersonator
Nov 13 at 14:55




While I don't know the exact details, I expect the order of enumeration is out of Windows' control. The process is probably controlled by the adapter's driver.
– Twisty Impersonator
Nov 13 at 14:55










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Found this article



Get-NetAdapterHardwareInfo | select Name, InterfaceDescription, DeviceType, Busnumber, Devicenumber, Functionnumber | FL



Name (This is what you see in Control Panel > .. > Network Connections)
InterfaceDescription (This is what you see in Device Manager)
DeviceType (This is connector type of the NIC)
Busnumber (This is where the NIC is slot on motherboard)
Devicenumber (This is the location number of slot on motherboard)
Functionnumber (This is what you are looking for. Physical port)






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375024%2fwindows-hardware-discovery-for-network-card-with-multiple-adapters-varies%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Found this article



    Get-NetAdapterHardwareInfo | select Name, InterfaceDescription, DeviceType, Busnumber, Devicenumber, Functionnumber | FL



    Name (This is what you see in Control Panel > .. > Network Connections)
    InterfaceDescription (This is what you see in Device Manager)
    DeviceType (This is connector type of the NIC)
    Busnumber (This is where the NIC is slot on motherboard)
    Devicenumber (This is the location number of slot on motherboard)
    Functionnumber (This is what you are looking for. Physical port)






    share|improve this answer

























      up vote
      0
      down vote













      Found this article



      Get-NetAdapterHardwareInfo | select Name, InterfaceDescription, DeviceType, Busnumber, Devicenumber, Functionnumber | FL



      Name (This is what you see in Control Panel > .. > Network Connections)
      InterfaceDescription (This is what you see in Device Manager)
      DeviceType (This is connector type of the NIC)
      Busnumber (This is where the NIC is slot on motherboard)
      Devicenumber (This is the location number of slot on motherboard)
      Functionnumber (This is what you are looking for. Physical port)






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Found this article



        Get-NetAdapterHardwareInfo | select Name, InterfaceDescription, DeviceType, Busnumber, Devicenumber, Functionnumber | FL



        Name (This is what you see in Control Panel > .. > Network Connections)
        InterfaceDescription (This is what you see in Device Manager)
        DeviceType (This is connector type of the NIC)
        Busnumber (This is where the NIC is slot on motherboard)
        Devicenumber (This is the location number of slot on motherboard)
        Functionnumber (This is what you are looking for. Physical port)






        share|improve this answer












        Found this article



        Get-NetAdapterHardwareInfo | select Name, InterfaceDescription, DeviceType, Busnumber, Devicenumber, Functionnumber | FL



        Name (This is what you see in Control Panel > .. > Network Connections)
        InterfaceDescription (This is what you see in Device Manager)
        DeviceType (This is connector type of the NIC)
        Busnumber (This is where the NIC is slot on motherboard)
        Devicenumber (This is the location number of slot on motherboard)
        Functionnumber (This is what you are looking for. Physical port)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 at 18:57









        bas

        1691212




        1691212






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375024%2fwindows-hardware-discovery-for-network-card-with-multiple-adapters-varies%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How do I know what Microsoft account the skydrive app is syncing to?

            When does type information flow backwards in C++?

            Grease: Live!