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

    Modify Intel X540-T2 NIC To Work At 2.5GbE ?

    Scheduled Pinned Locked Moved General pfSense Questions
    46 Posts 6 Posters 1.5k Views
    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.
    • w0wW
      w0w @panzerscope
      last edited by

      @panzerscope
      And what about putting your PC directly, without pfsense and testing speeds again?

      P 1 Reply Last reply Reply Quote 0
      • P
        panzerscope @w0w
        last edited by

        @w0w

        I did that a while ago, should have reiterated that going from PC direct to ISP Router gives the full expected speeds.

        w0wW 1 Reply Last reply Reply Quote 1
        • w0wW
          w0w @panzerscope
          last edited by

          @panzerscope
          Hmm... Ok
          Just to make sure it's not some hardware-specific glitch, I'd probably try installing IPFire or OpenWRT for x86 instead of pfSense—if you have enough time for such experiments, of course. The main thing is, don't forget to back up your configuration.

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

            If you set the advertised speeds for auto-neg to only one speed in the sysctls does it still flap?

            [25.03-BETA][root@m470-3.stevew.lan]/root: sysctl -d dev.ix.0.advertise_speed
            dev.ix.0.advertise_speed: 
            Control advertised link speed using these flags:
                    0x1 - advertise 100M
                    0x2 - advertise 1G
                    0x4 - advertise 10G
                    0x8 - advertise 10M
            
                    0x10  - advertise 2.5G
                    0x20  - advertise 5G
            
                    100M and 10M are only supported on certain adapters.
            
            1 Reply Last reply Reply Quote 1
            • P
              panzerscope @w0w
              last edited by

              @w0w said in Modify Intel X540-T2 NIC To Work At 2.5GbE ?:

              @panzerscope
              Hmm... Ok
              Just to make sure it's not some hardware-specific glitch, I'd probably try installing IPFire or OpenWRT for x86 instead of pfSense—if you have enough time for such experiments, of course. The main thing is, don't forget to back up your configuration.

              I see the logic of doing that, for sure. However I am not willing right now to go that deep with it.

              @stephenw10 said in Modify Intel X540-T2 NIC To Work At 2.5GbE ?:

              If you set the advertised speeds for auto-neg to only one speed in the sysctls does it still flap?

              [25.03-BETA][root@m470-3.stevew.lan]/root: sysctl -d dev.ix.0.advertise_speed
              dev.ix.0.advertise_speed: 
              Control advertised link speed using these flags:
                      0x1 - advertise 100M
                      0x2 - advertise 1G
                      0x4 - advertise 10G
                      0x8 - advertise 10M
              
                      0x10  - advertise 2.5G
                      0x20  - advertise 5G
              
                      100M and 10M are only supported on certain adapters.
              

              If I set a link speed then it will be fine. Auto-Neg is a no go for me otherwise the WAN will go up and down all over the place. So I set it to 10G.

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

                So it still flaps even if you expose only one possible negotiation speed?

                P 1 Reply Last reply Reply Quote 1
                • P
                  panzerscope @stephenw10
                  last edited by

                  @stephenw10 said in Modify Intel X540-T2 NIC To Work At 2.5GbE ?:

                  So it still flaps even if you expose only one possible negotiation speed?

                  What would the tuneable be for 10g only? Sorry I looked at what you put but don't fully understand the value/flag I need to input for sysctl -d dev.ix.0.advertise_speed

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

                    It would be like:

                    [25.03-BETA][root@m470-3.stevew.lan]/root: sysctl dev.ix.2.advertise_speed=4
                    dev.ix.2.advertise_speed: 6 -> 4
                    

                    But obviously ix0 or whichever NIC you're using there

                    P 1 Reply Last reply Reply Quote 1
                    • P
                      panzerscope @stephenw10
                      last edited by

                      @stephenw10 said in Modify Intel X540-T2 NIC To Work At 2.5GbE ?:

                      It would be like:

                      [25.03-BETA][root@m470-3.stevew.lan]/root: sysctl dev.ix.2.advertise_speed=4
                      dev.ix.2.advertise_speed: 6 -> 4
                      

                      But obviously ix0 or whichever NIC you're using there

                      Thanks. I have popped that in. Does that mean I should set my WAN to Autoselect now or leave it set at 10G? I had it manually set to 10G anyway, so seemingly nothing has changed.

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

                        Yes, when you set it to autoselect it will try to negotiate a link with the other side but will advertise only 10G so it can't try to connect at any other speed.

                        It may still flap since it still runs negotiation. But many newer NICs/drivers actually require that to work correctly.

                        P 1 Reply Last reply Reply Quote 1
                        • P
                          panzerscope @stephenw10
                          last edited by panzerscope

                          @stephenw10 said in Modify Intel X540-T2 NIC To Work At 2.5GbE ?:

                          Yes, when you set it to autoselect it will try to negotiate a link with the other side but will advertise only 10G so it can't try to connect at any other speed.

                          It may still flap since it still runs negotiation. But many newer NICs/drivers actually require that to work correctly.

                          Thanks. I gave that a go, had to reboot for it work but autoselect now works :) However does not seem to be as reliable as just setting WAN to 10g manually. If I save a setting that causes WAN to restart, it will flop about again. I was not getting that when manually forcing 10g.

                          I will go back to manually setting it. Manually setting the link speed persisted through reboots anyway.

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