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

Hardware driver

Scheduled Pinned Locked Moved Hardware
33 Posts 7 Posters 6.4k Views 7 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.
  • R Offline
    regentofgaia
    last edited by Apr 19, 2023, 1:12 PM

    Hey everyone!

    I have bought a 4 port 2.5gb NIC with Realtek 8125B Chip and the pfSense doesn't detect the hardware. Need some advice 😊

    1 Reply Last reply Reply Quote 0
    • S Online
      stephenw10 Netgate Administrator
      last edited by Apr 19, 2023, 1:21 PM

      Use the alternative Realtek driver. What pfSense version are you using?

      R 1 Reply Last reply Apr 19, 2023, 1:23 PM Reply Quote 0
      • R Offline
        regentofgaia @stephenw10
        last edited by Apr 19, 2023, 1:23 PM

        Thank you @stephenw10 I am using the 2.6.0-RELEASE

        1 Reply Last reply Reply Quote 0
        • S Online
          stephenw10 Netgate Administrator
          last edited by Apr 19, 2023, 2:28 PM

          At the command line run:

          pkg-static add https://pkg.freebsd.org/FreeBSD:12:amd64/release_4/All/realtek-re-kmod-197.00.pkg
          

          Then:

          echo 'if_re_load="YES"' >> /boot/loader.conf.local
          echo 'if_re_name="/boot/modules/if_re.ko"' >> /boot/loader.conf.local
          

          Then reboot and check the boot logs show the 1.97 driver:

          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
          

          Steve

          R S J 3 Replies Last reply May 19, 2023, 12:21 PM Reply Quote 1
          • R Offline
            regentofgaia @stephenw10
            last edited by May 19, 2023, 12:21 PM

            @stephenw10 said in Hardware driver:

            At the command line run:

            pkg-static add https://pkg.freebsd.org/FreeBSD:12:amd64/release_4/All/realtek-re-kmod-197.00.pkg
            

            Then:

            echo 'if_re_load="YES"' >> /boot/loader.conf.local
            echo 'if_re_name="/boot/modules/if_re.ko"' >> /boot/loader.conf.local
            

            Then reboot and check the boot logs show the 1.97 driver:

            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
            

            Steve

            This work flawlessly. Thank you so much Steve!

            Irwin

            G 1 Reply Last reply Aug 2, 2023, 4:26 AM Reply Quote 1
            • G Offline
              Gradius @regentofgaia
              last edited by Aug 2, 2023, 4:26 AM

              It won't really works on last version (2.7):
              [2.7.0-RELEASE][admin@pfSense.home.arpa]/: pkg-static add https://pkg.freebsd.org/FreeBSD:12:amd64/release_4/All/realtek-re-kmod-197.00.pkg
              Fetching realtek-re-kmod-197.00.pkg: 100% 100 KiB 102.1kB/s 00:01
              Installing realtek-re-kmod-197.00...
              pkg-static: wrong architecture: FreeBSD:12:amd64 instead of FreeBSD:14:amd64

              Failed to install the following 1 package(s): https://pkg.freebsd.org/FreeBSD:12:amd64/release_4/All/realtek-re-kmod-197.00.pkg

              As v2.7 uses FreeBSD 14.0

              G 1 Reply Last reply Aug 2, 2023, 4:33 AM Reply Quote 0
              • G Offline
                Gradius @Gradius
                last edited by Aug 2, 2023, 4:33 AM

                As v2.7 uses FreeBSD 14.0

                This worked btw:

                pkg install realtek-re-kmod

                Updating pfSense-core repository catalogue...
                pfSense-core repository is up to date.
                Updating pfSense repository catalogue...
                pfSense repository is up to date.
                All repositories are up to date.
                The following 1 package(s) will be affected (of 0 checked):

                New packages to be INSTALLED:
                realtek-re-kmod: 198.00_1 [pfSense]

                Number of packages to be installed: 1

                102 KiB to be downloaded.

                Proceed with this action? [y/N]: y
                [1/1] Fetching realtek-re-kmod-198.00_1.pkg: 100% 102 KiB 104.2kB/s 00:01
                Checking integrity... done (0 conflicting)
                [1/1] Installing realtek-re-kmod-198.00_1...
                [1/1] Extracting realtek-re-kmod-198.00_1: 100%

                P 1 Reply Last reply Aug 11, 2024, 7:00 AM Reply Quote 0
                • S Online
                  stephenw10 Netgate Administrator
                  last edited by Aug 2, 2023, 11:43 AM

                  Yes the pkg is in our repo in 2.7 so you can just install it directly. That also means it's build for the specific kernel used by pfSense.

                  S 1 Reply Last reply Oct 25, 2023, 11:30 AM Reply Quote 0
                  • S Offline
                    Spectrum @stephenw10
                    last edited by Oct 25, 2023, 11:30 AM

                    @stephenw10 hello everyone. i am a new user, i installed pfsense on my machine and i wanted to install Realtek RTL8125B dual port 2.5G drivers. i followed what you wrote but as user @Gradius says with pfsense 2.7.0 it can't be done anymore. I tried sending the command directly into the machine (pfsense) as root@pfsense.xxxxx.local/root.

                    I also tried to do "pkg install realtek-re-kmod" and it says that the packages versions are already installed but the driver seems not to go (I also did reboot the machine). tips for this white rabbit?

                    1 Reply Last reply Reply Quote 0
                    • S Online
                      stephenw10 Netgate Administrator @stephenw10
                      last edited by Oct 25, 2023, 1:01 PM

                      @stephenw10 said in Hardware driver:

                      Then:

                      echo 'if_re_load="YES"' >> /boot/loader.conf.local
                      echo 'if_re_name="/boot/modules/if_re.ko"' >> /boot/loader.conf.local

                      Did you do that part?

                      S 2 Replies Last reply Oct 25, 2023, 1:22 PM Reply Quote 0
                      • S Offline
                        Spectrum @stephenw10
                        last edited by Oct 25, 2023, 1:22 PM

                        @stephenw10 no. now i reset to factory defaults

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          Spectrum @stephenw10
                          last edited by Oct 25, 2023, 1:32 PM

                          @stephenw10 Now I did as you said but in root@pfsense.home.arpa/root nothing happens

                          1 Reply Last reply Reply Quote 0
                          • S Online
                            stephenw10 Netgate Administrator
                            last edited by Oct 25, 2023, 2:01 PM

                            Try running: cat /boot/loader.conf.local

                            Make sure those two lines have been added to the file. Those are required to load the kernel module at boot.

                            S J 2 Replies Last reply Oct 25, 2023, 10:34 PM Reply Quote 0
                            • S Offline
                              Spectrum @stephenw10
                              last edited by Oct 25, 2023, 10:34 PM

                              @stephenw10 now i see them enabled, but pc won't connect. i have tried everything between rebooting, swapping cables, swapping re0 re1 re2 re3. all day i try. i unplugged everything and plugged the line back to pc to write

                              1 Reply Last reply Reply Quote 0
                              • S stephenw10 forked this topic on Oct 29, 2023, 4:37 PM
                              • J Offline
                                jeonard1985 @stephenw10
                                last edited by jeonard1985 Jul 21, 2024, 12:08 AM Jul 21, 2024, 12:07 AM

                                @stephenw10
                                cbe65b0f-8184-4bc8-84cc-79d02806f5b3-image.png

                                are they working? if this is the result?

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jeonard1985 @stephenw10
                                  last edited by Jul 21, 2024, 12:14 AM

                                  @stephenw10 said in Hardware driver:

                                  echo 'if_re_load="YES"' >> /boot/loader.conf.local
                                  echo 'if_re_name="/boot/modules/if_re.ko"' >> /boot/loader.conf.local

                                  i try this command nothing happen

                                  6e30eef5-5e7d-4512-ac58-88110c2b1ede-image.png

                                  it normal?

                                  patient0P 1 Reply Last reply Jul 21, 2024, 5:49 AM Reply Quote 0
                                  • patient0P Offline
                                    patient0 @jeonard1985
                                    last edited by Jul 21, 2024, 5:49 AM

                                    @jeonard1985 said in Hardware driver:

                                    i try this command nothing happen

                                    With these command you add the two lines to the /boot/loader.conf.local file. That worked; you added the two lines 6x but that won't hurt.

                                    After that you reboot so the driver get loaded.

                                    1 Reply Last reply Reply Quote 1
                                    • S Online
                                      stephenw10 Netgate Administrator
                                      last edited by Jul 24, 2024, 12:12 AM

                                      Yes, and then check the boot log to see the driver version when it attaches to the NIC.

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pfultz @Gradius
                                        last edited by Aug 11, 2024, 7:00 AM

                                        @Gradius can you show how you did this and where you obtained the 1998.00 driver.

                                        1 Reply Last reply Reply Quote 0
                                        • S Online
                                          stephenw10 Netgate Administrator
                                          last edited by Aug 11, 2024, 1:14 PM

                                          198 is the version in our repo:

                                          [2.7.2-RELEASE][admin@t70.stevew.lan]/root: pkg search realtek
                                          realtek-re-kmod-198.00_3       Kernel driver for Realtek PCIe Ethernet Controllers
                                          
                                          P 3 Replies Last reply Aug 14, 2024, 6:27 AM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]