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

    Trouble with WAN not being able to get correct speed

    Scheduled Pinned Locked Moved General pfSense Questions
    69 Posts 4 Posters 9.3k 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.
    • J
      Jarhead @kilasin
      last edited by

      @kilasin Are you saying it's only linking at 1g or you're only seeing 1g of bandwidth?

      Is your Internet connection faster then 1g?
      What is your WAN linked to? Your ISP device may only have a 1g port so you'll never link higher than that.

      K 1 Reply Last reply Reply Quote 0
      • K
        kilasin @Jarhead
        last edited by

        @Jarhead my connection is 2G and im connected through ppoe bypassin the isps router

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

          How are you testing where you see 1Gbps?

          How did you run iperf where it showed 10Gbps?

          Do the NICs show as linked at 10G?

          K 2 Replies Last reply Reply Quote 0
          • K
            kilasin @stephenw10
            last edited by

            @stephenw10 ok so my LAN link says 10G as shown here:

            fc254425-af7a-4069-8f9e-0a624d953788-image.png now i test iperf as such .. I put my router as a server and my machine as client then i do vise versa. Yes my internet connection should be 2G which ive checked with their wifi router.

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

              So you are testing iperf from another VM on the LAN side to/from pfSense directly?

              How are you testing the WAN connection?

              Check the WAN parent NIC is linked at the correct speed, run: ifconfig -va

              K 1 Reply Last reply Reply Quote 0
              • K
                kilasin @stephenw10
                last edited by

                @stephenw10 i tried testin iperf from another VM which i get the real speeds then i tried connectin my makeshift router to my machine directly good speeds just the WAN. However, when i put the isps router i get the exact 2G speeds but unfortuantely the ports are only 1 G only. Hence, I made this router from my old machine 4 10gs cards and 1 2.5G but im gettin capped at 1G speeds which suck. I will try that command thanks.

                1 Reply Last reply Reply Quote 0
                • K
                  kilasin @stephenw10
                  last edited by

                  @stephenw10 There it is.. You are correct i was only connecting at 1G speeds check this out :
                  b9acfdf7-e882-49b7-b3ec-fd0531017519-image.png

                  Now how to change that is the next step lol any help would be greatly appreciate it

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    Jarhead @kilasin
                    last edited by

                    @kilasin As I said, verify the device you're plugging into first.
                    There may be a 1g port and a 10g port on it.

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

                      So you're passing that NIC through to the VM?

                      What is the actual connection here, the physical link?

                      Try running: ifconfig -vvvm ix0 to see what speeds it can link at.

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kilasin @stephenw10
                        last edited by

                        @stephenw10 Yes, I am passing the 10G nic through the VM so Unraid does not see it.

                        The actual connection is being connected to 10G nic card. Here is what I ran from your command

                        ix0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
                        options=48138b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,HWSTATS,MEXTPG>
                        capabilities=4f53fbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,NETMAP,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
                        ether 6c:92:bf:48:c0:a0
                        inet6 fe80::6e92:bfff:fe48:c0a0%ix0 prefixlen 64 scopeid 0x1
                        media: Ethernet autoselect (1000baseT <full-duplex>)
                        status: active
                        supported media:
                        media autoselect
                        media 100baseTX
                        media 1000baseT
                        media 10Gbase-T
                        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

                        It appears to auto select the 1G speed, how do I change that into the 10G speed?

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

                          It's set to auto negotiate and is negotiating 1G. So the port at the other end might be 1G or the cable might not support 10G.

                          If you set the port to 10G fixed you may need to set the other end to 10G fixed also and that may not be possible.

                          Try running: sysctl dev.ix.0.advertise_speed to see what link rates it's trying to negotiate to.
                          You might be able to restrict that to 10G only using: sysctl dev.ix.0.advertise_speed=4

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            kilasin @stephenw10
                            last edited by

                            @stephenw10 said in Trouble with WAN not being able to get correct speed:

                            sysctl dev.ix.0.advertise_speed=4

                            Ok this what I am getting when using the command sysctl dev.ix.0.advertise_speed: dev.ix.0.advertise_speed: 7

                            and this is what i got when using this command sysctl dev.ix.0.advertise_speed=4 : dev.ix.0.advertise_speed: 7 -> 4 (It disconnected my connection) So i just changed it back to 7 and i got connection back.

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

                              Ok, so it fails to link when it can only negotiate 10G. Check/replace the cable. Try linking to something else if you can.

                              [23.09.1-RELEASE][admin@6100.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.
                              

                              advertise_speed=7 implies 10G, 1G and 100M.

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                kilasin @stephenw10
                                last edited by kilasin

                                @stephenw10 said in Trouble with WAN not being able to get correct speed:

                                sysctl -d dev.ix.0.advertise_speed

                                Ok so I tried 10 and 20 and none worked unfortunately. I did see something curious though when the cable gets connected to my switch i see this :
                                fbd19bf4-d360-4446-a713-e7da3966afe7-image.png

                                The LAN from the WAN nic card is connected at 10G to my switch and my computer is only at 2.5G which should be 10G but that might just be a cable issue. Sorry for digressing.

                                Back to the WAN its weird i tried
                                0x1 - advertise 100M (works)
                                0x2 - advertise 1G (works)
                                0x4 - advertise 10G(not working)
                                0x8 - advertise 10M(invalid arguement)

                                x10(invalid arguement)
                                x20(invalid arguement)

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

                                  That NIC likely doesn't support 2.5G or 5G so you can't set those advertise speeds.

                                  I assume that switch is on the LAN side?

                                  The WAN is connected to the ISP/ONT directly?

                                  K 2 Replies Last reply Reply Quote 0
                                  • K
                                    kilasin @stephenw10
                                    last edited by

                                    @stephenw10 Correct on both questions .

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kilasin @stephenw10
                                      last edited by

                                      @stephenw10 I do have another 10G card that i can physically put in the machine but then that only leaves me with a 2.5G nic however I want my speeds lol i have another 2.5G card installed in the server but that is an rtl and pfsense does not like rtl cards as i tried implementing it into pfsense to no avail

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

                                        Does the ISP/ONT device support 2.5G?

                                        A Realtek 2.5G NIC in pfSense requires the realtek-kmod driver package.

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          kilasin @stephenw10
                                          last edited by

                                          @stephenw10
                                          the ISP/ONT supports it as their router gets those speeds. I tested their speed test and im getting exactly what I pay for but only in Wifi not Ethernet cuz of the port which makes no sense to me but that is how it is.

                                          I see il try to install that package and try to use that nic as my WAN ..But I think i will bite the bullet and buy another 2.5G card that is compatible with pfsense

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

                                            Ah, their router links to the ONT at 2.5G?

                                            Are you sure the ONT actually supports 10G links then? That would explain why the 10G NIC only links at 1G.

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