Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    4 port NIC with mixed IDs

    Scheduled Pinned Locked Moved Hardware
    21 Posts 6 Posters 1.9k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephenw10S Offline
      stephenw10 Netgate Administrator
      last edited by

      The port numbering order is entirely down the way FreeBSD parses the PCI tree.

      You can force it to reorder using PCI Device Wiring but I don't recommend that. If you have to reinstall those settings will be lost and the ports would be re-ordered.

      Steve

      johnpozJ 1 Reply Last reply Reply Quote 1
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator @stephenw10
        last edited by

        Best solution is prob just a label maker and label them hehe

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07 | Lab VMs 2.8, 25.07

        D 1 Reply Last reply Reply Quote 2
        • AndyRHA Offline
          AndyRH
          last edited by

          On mine it is not the MAC, I checked. Just a guess, but maybe they crossed 2 wires. The 4 ports are really 4 NICs on 1 board. They would be found in order as the OS scans the bus.

          As for the label maker idea, be sure it is a little one. ๐Ÿ˜€

          o||||o
          7100-1u

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            I bet they are not in order on the bus. Try running: pciconf -lv

            The NICs will almost certainly appear in the correct order for the PCI device locations. As seen by FreeBSD at least. It's not uncommon to see the BIOS pass different values for FreeBSD that it does for Windows.

            Steve

            D 1 Reply Last reply Reply Quote 0
            • P Offline
              Patch @johnpoz
              last edited by Patch

              @johnpoz said in 4 port NIC with mixed IDs:

              server I have to setup proxmox on

              For me with pfsense running in a VM under Proxmox, nic order is determined by the order they are defined in the VM definition created in Proxmox (I use nic pass through)

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ Offline
                johnpoz LAYER 8 Global Moderator @Patch
                last edited by johnpoz

                @patch well got proxmox running - and its showing the interfaces freaking odd, ie get the 1-4, but then 49-52

                proxmox.jpg

                Haven't setup any vms yet just got the thing booted.. Old DL360 gen9..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 25.07 | Lab VMs 2.8, 25.07

                1 Reply Last reply Reply Quote 0
                • stephenw10S Offline
                  stephenw10 Netgate Administrator
                  last edited by

                  Interesting. I'd check the PCI locations there too. If they're not the same card perhaps one set of NICs is behind a bridge so appears on a different bus?

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    Patch
                    last edited by Patch

                    @johnpoz
                    What is happening would probably be shown by

                    lspci -v
                    

                    and if you have set up pass through

                    for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done
                    

                    btw
                    When you create your VM I find it easiest to assign no NIC
                    then go to pve -> VM -> Hardware
                    and add nic in the order you want them to apear in pfsense ie WAN, LAN, Op1 etc
                    In pfsense then they will be given sequential numbers in that order.

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      darkcorner @johnpoz
                      last edited by

                      @johnpoz
                      ๐Ÿ˜ž
                      My error.

                      • igp1
                      • igp0
                      • igp3
                      • igp2
                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        darkcorner @stephenw10
                        last edited by

                        @stephenw10 said in 4 port NIC with mixed IDs:

                        I bet they are not in order on the bus. Try running: pciconf -lv

                        pcib4@pci0:3:0:0:	class=0x060400 card=0x00000000 chip=0x230412d8 rev=0x05 hdr=0x01
                            vendor     = 'Pericom Semiconductor'
                            device     = 'PI7C9X2G304 EL/SL PCIe2 3-Port/4-Lane Packet Switch'
                            class      = bridge
                            subclass   = PCI-PCI
                        pcib5@pci0:4:1:0:	class=0x060400 card=0x00000000 chip=0x230412d8 rev=0x05 hdr=0x01
                            vendor     = 'Pericom Semiconductor'
                            device     = 'PI7C9X2G304 EL/SL PCIe2 3-Port/4-Lane Packet Switch'
                            class      = bridge
                            subclass   = PCI-PCI
                        pcib6@pci0:4:2:0:	class=0x060400 card=0x00000000 chip=0x230412d8 rev=0x05 hdr=0x01
                            vendor     = 'Pericom Semiconductor'
                            device     = 'PI7C9X2G304 EL/SL PCIe2 3-Port/4-Lane Packet Switch'
                            class      = bridge
                            subclass   = PCI-PCI
                        igb0@pci0:5:0:0:	class=0x020000 card=0xa02f8086 chip=0x10c98086 rev=0x01 hdr=0x00
                            vendor     = 'Intel Corporation'
                            device     = '82576 Gigabit Network Connection'
                            class      = network
                            subclass   = ethernet
                        igb1@pci0:5:0:1:	class=0x020000 card=0xa02f8086 chip=0x10c98086 rev=0x01 hdr=0x00
                            vendor     = 'Intel Corporation'
                            device     = '82576 Gigabit Network Connection'
                            class      = network
                            subclass   = ethernet
                        igb2@pci0:6:0:0:	class=0x020000 card=0xa02f8086 chip=0x10c98086 rev=0x01 hdr=0x00
                            vendor     = 'Intel Corporation'
                            device     = '82576 Gigabit Network Connection'
                            class      = network
                            subclass   = ethernet
                        igb3@pci0:6:0:1:	class=0x020000 card=0xa02f8086 chip=0x10c98086 rev=0x01 hdr=0x00
                            vendor     = 'Intel Corporation'
                            device     = '82576 Gigabit Network Connection'
                            class      = network
                            subclass   = ethernet
                        

                        Even so I would have expected them to be in order.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          darkcorner @johnpoz
                          last edited by

                          @johnpoz said in 4 port NIC with mixed IDs:

                          Best solution is prob just a label maker and label them hehe

                          I had thought of that too.
                          However, if the numbering derives from FreeBSD the important thing is that this does not change at each restart because otherwise it would skip the assignment of the networks and therefore of the connected cables.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            darkcorner @Patch
                            last edited by

                            @patch
                            Is there lspci on FreeBSD / pfSense?
                            I can't even find a package, I also tried with pciutils.

                            P 1 Reply Last reply Reply Quote 0
                            • P Offline
                              Patch @darkcorner
                              last edited by

                              @darkcorner said in 4 port NIC with mixed IDs:

                              Is there lspci on FreeBSD / pfSense?

                              No
                              It is a linux command relevant to Proxmox not pfsense install

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S Offline
                                stephenw10 Netgate Administrator
                                last edited by

                                pciconf is the FreeBSD equivalent for most functions.

                                You can see though how the ports are numbered in the order they are seen on the bus:

                                igb0@pci0:5:0:0:
                                igb1@pci0:5:0:1:
                                igb2@pci0:6:0:0:
                                igb3@pci0:6:0:1:
                                

                                There's nothing you can do to change that.

                                Steve

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  darkcorner
                                  last edited by

                                  Interpreting the pciconf data, I believe the problem is due to the card having two buses for two NICs each.
                                  Therefore, the double sequence igp1-0 and igp3-2 is explained.
                                  OK. I'll put a label indicating the ports ID.
                                  Thanks everyone.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.