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

    Updated Realtek NIC drivers missing in PfSense 2.6.0

    Scheduled Pinned Locked Moved Hardware
    178 Posts 25 Posters 91.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      In the boot log. Also in the system log if you've just rebooted. Like:

      re0: <Realtek PCIe GbE Family Controller> port 0x1000-0x10ff mem 0xf7a00000-0xf7a00fff,0xf7900000-0xf7903fff irq 16 at device 0.0 on pci1
      re0: Using Memory Mapping!
      re0: Using 1 MSI-X message
      re0: ASPM disabled
      re0: version:1.97.00
      re0: Ethernet address: 00:0d:b9:38:30:10
      This product is covered by one or more of the following patents:
      US6,570,884, US6,115,776, and US6,327,625.
      re0: Ethernet address: 00:0d:b9:38:30:10
      pcib2: <ACPI PCI-PCI bridge> irq 17 at device 5.0 on pci0
      pci2: <ACPI PCI bus> on pcib2
      re1: <Realtek PCIe GbE Family Controller> port 0x2000-0x20ff mem 0xf7c00000-0xf7c00fff,0xf7b00000-0xf7b03fff irq 17 at device 0.0 on pci2
      re1: Using Memory Mapping!
      re1: Using 1 MSI-X message
      re1: ASPM disabled
      re1: version:1.97.00
      re1: Ethernet address: 00:0d:b9:38:30:11
      This product is covered by one or more of the following patents:
      US6,570,884, US6,115,776, and US6,327,625.
      re1: Ethernet address: 00:0d:b9:38:30:11
      
      1 Reply Last reply Reply Quote 0
      • G
        Gradius @jsmiddleton4
        last edited by

        @jsmiddleton4 Everything is on driver:

        name:realtek-re-kmod
        origin:net/realtek-re-kmod
        version:198.00
        comment:Kernel driver for Realtek PCIe Ethernet Controllers
        maintainer:ale@FreeBSD.org

        description:
        Realtek PCIe FE GBE 2.5G
        Gaming Ethernet Family Controller kernel driver.

        This is the official driver from Realtek with a few patches to
        improve stability and performance. It can be loaded instead of
        the FreeBSD driver built into the GENERIC kernel if you experience
        issues with it (eg. watchdog timeouts), or your card is not supported.

        Supported devices:
        2.5G Gigabit Ethernet: RTL8125 / RTL8125B(S)(G)

        10/100/1000M Gigabit Ethernet:
        RTL8111B / RTL8111C / RTL8111D / RTL8111E / RTL8111F / RTL8111G(S)
        RTL8111H(S) / RTL8118(A)(S) / RTL8119i / RTL8111L / RTL8111K
        RTL8168B / RTL8168E / RTL8168H
        RTL8111DP / RTL8111EP / RTL8111FP
        RTL8411 / RTL8411B

        10/100M Fast Ethernet:
        RTL8101E / RTL8102E / RTL8103E / RTL8105E / RTL8106E / RTL8107E
        RTL8401 / RTL8402

        See also:
        https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

        1 Reply Last reply Reply Quote 0
        • R
          RK0 @jsmiddleton4
          last edited by

          @jsmiddleton4

          Mine read as follows in Status > System Logs > System > OS Boot (scrolling down to the relevant entries)

          re1: version:1.98.00
          re1: ASPM disabled
          re1: Using 1 MSI-X message
          re1: Using Memory Mapping!
          re1: <Realtek PCIe GbE Family Controller> port 0x3000-0x30ff mem 0xa1204000-0xa1204fff,0xa1200000-0xa1203fff irq 19 at device 0.0 on pci3

          and

          re0: version:1.98.00
          re0: ASPM disabled
          re0: Using 1 MSI-X message
          re0: Using Memory Mapping!
          re0: <Realtek PCIe GbE Family Controller> port 0x4000-0x40ff mem 0xa1304000-0xa1304fff,0xa1300000-0xa1303fff irq 19 at device 0.0 on pci2

          J 1 Reply Last reply Reply Quote 0
          • J
            JimBob Indiana @RK0
            last edited by JimBob Indiana

            @rk0

            Thanks but I’m not getting any of that. I’m pretty sure the Realtek driver isn’t getting installed. I followed the steps…..

            There’s a post I can’t find now on this forum that has the steps in an easy to follow format. Even the information on how to tell if the driver is installed. The PFSense driver will list the number of the Realtek card. Realtek’s driver lists as you indicated, Realtek PCEe Family Controller.

            Mine never said that. But if it only says PCIe GBe Family that is not the 2.5gbe card. At least as far as I know that’s the 1gb card.

            R 1 Reply Last reply Reply Quote 0
            • R
              RK0 @JimBob Indiana
              last edited by RK0

              @jimbob-indiana

              This did not work?

              pkg add https://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/realtek-re-kmod-198.00.pkg
              

              ...and of course, you will have to follow the instructions that should come up on screen, changing your /boot/loader.conf.local file with the entries

              if_re_load="YES"
              if_re_name="/boot/modules/if_re.ko"
              

              ...and then rebooting your PFSense system

              I would also recommend grabbing and keeping the file https://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/realtek-re-kmod-198.00.pkg somewhere safe. (You can just open that URL on a PC browser, and download the realtek-re-kmod-198.00.pkg file). Save it somewhere in case you have to rebuild your PFSense firewall. Worst case you could then transfer the file manually to your PFSense firewall and install it directly from local storage, in case it "disappears" from the URL above.

              My system uses RTL8111 adapters integral to the system, and is supported by the 198 package...I can't speak for your 2.5Gb adapter however. I hope it is not one of those USB attached 2.5Gbs adapters...all bets are off if that is the case.

              J 1 Reply Last reply Reply Quote 1
              • J
                JimBob Indiana @RK0
                last edited by JimBob Indiana

                @rk0 Didn’t seem to. Will try again. Not sure how I remove anything that was installed previously other than just manually remove the .ko files from modules and kernel folders.

                I’m getting the OSVersion mix match error.

                To ignore this error set IGNORE_OSVERSION=yes

                1 Reply Last reply Reply Quote 1
                • J
                  JimBob Indiana
                  last edited by

                  @rk0 NOT USB. PCIe 2.5gb 8125B.

                  For some reason it appears to me the driver isn’t actually loading.

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

                    What pfSense version are you running?

                    What's in your /boot/loader.conf.local file?

                    1 Reply Last reply Reply Quote 1
                    • R
                      RK0 @JimBob Indiana
                      last edited by

                      @jimbob-indiana

                      When you execute the commands, are you running under the auspices of the local admin account? If not, try doing that.

                      J 1 Reply Last reply Reply Quote 1
                      • J
                        jsmiddleton4 @RK0
                        last edited by jsmiddleton4

                        @rk0

                        Am local admin.

                        The latest 2.7. Just updated.

                        I had the lines for if re, etc. I copied and pasted them to make sure I had them correct.

                        At this juncture I'm looking at starting over. I don't want to reinstall PFSense fresh but do want to figure out how I remove any left over realtek drivers.

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

                          In 2.7 it's in our repo. You just install the kmod using: pkg install realtek-re-kmod

                          You still need the loader lines to load it at boot.

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jsmiddleton4 @stephenw10
                            last edited by jsmiddleton4

                            @stephenw10 said in Updated Realtek NIC drivers missing in PfSense 2.6.0:

                            pkg install realtek-re-kmod

                            Thanks but how do I remove any of the previous install information?

                            I do not have the .ko file in boot/modules or kernel. But when I run the install I'm told its already installed. Whatever I've messed up, I need to clean the information so I can start over.

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

                              Is there anything installed, it would have just failed to install the FreeBSD 12 package in 2.7 because it's built on FreeBSD 14.
                              Try running: pkg info -x realtek

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                jsmiddleton4 @stephenw10
                                last edited by

                                @stephenw10 said in Updated Realtek NIC drivers missing in PfSense 2.6.0:

                                pkg info -x realtek

                                realtek-re-kmod-198.00

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

                                  So do: pkg delete realtek-re-kmod

                                  See: https://man.freebsd.org/cgi/man.cgi?query=pkg

                                  J 2 Replies Last reply Reply Quote 0
                                  • J
                                    jsmiddleton4 @stephenw10
                                    last edited by

                                    @stephenw10
                                    Thanks. Had to do the -y option as I'm doing this from the Command Prompt in the GUI.

                                    Now: "pkg: No package(s) matching realtek"

                                    Just to be certain I understand, all the other stuff found about how to install the driver, not talking about the loader lines, is no longer necessary. I just run "pkg install realtek-re-kmod"

                                    1 Reply Last reply Reply Quote 1
                                    • J
                                      jsmiddleton4 @stephenw10
                                      last edited by

                                      @stephenw10

                                      In poking around, I think it is one of your posts, the line about loading the module not necessary? It is automatically, or by default, found anyway?

                                      I did the delete command.
                                      Booted.
                                      Everything gone.
                                      Tried your simple command for pkg install. It wants to install 1.97.
                                      Did the longer command line, had to tell it to ignore the OS, and it installed.

                                      I swear earlier I left the "12" in the command line, did not change it to "14" because when trying 14 nothing was found.

                                      Now 12 doesn't work, need 14 but get the OSVersion ?

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

                                        If you just use the driver in our repo you can just 'pkg install' it directly. Currently that's 1.97:

                                        [2.7.0-DEVELOPMENT][admin@cedev.stevew.lan]/root: pkg search realtek
                                        realtek-re-kmod-197.00         Kernel driver for Realtek PCIe Ethernet Controllers
                                        

                                        You still have to add the loader lines, installing the pkg doesn't do that for you.

                                        Steve

                                        J 2 Replies Last reply Reply Quote 0
                                        • J
                                          JimBob Indiana @stephenw10
                                          last edited by

                                          @stephenw10

                                          1.98 loaded but not being loaded at boot. I’m still using the built in Realtek driver.

                                          re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 0xf7b00000-0xf7b00fff,0xf0000000-0xf0003fff at device 0.0 on pci8
                                          re0: Using 1 MSI-X message
                                          re0: turning off MSI enable bit.
                                          re0: ASPM disabled
                                          re0: Chip rev. 0x4c000000
                                          re0: MAC rev. 0x00000000
                                          miibus0: <MII bus> on re0
                                          rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 1 on miibus0
                                          rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
                                          re0: Using defaults for TSO: 65518/35/2048
                                          re0: Ethernet address: 64:00:6a:14:be:16
                                          re0: netmap queues/slots: TX 1/256, RX 1/256

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            JimBob Indiana @stephenw10
                                            last edited by

                                            @stephenw10

                                            I deleted 1.98 or 198.00. Installed 1.97 with the simple command line install. It WORKED! Geez. Been hammering 1.98 for a couple of days.

                                            1.98 or 198.00 not ready to install in 2.7?

                                            re0: <Realtek PCIe GbE Family Controller> port 0xe000-0xe0ff mem 0xf7b00000-0xf7b00fff,0xf0000000-0xf0003fff at device 0.0 on pci8
                                            re0: Using Memory Mapping!
                                            re0: Using 1 MSI-X message
                                            re0: ASPM disabled
                                            re0: version:1.97.00
                                            re0: Ethernet address: 64:00:6a:14:be:16
                                            This product is covered by one or more of the following patents:
                                            US6,570,884, US6,115,776, and US6,327,625.
                                            re0: Ethernet address: 64:00:6a:14:be:16

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