Can't assign NIC [Aquantia Corp. AQC107]
-
@madbrain said in Can't assign NIC [Aquantia Corp. AQC107]:
The file to edit was actually /boot/loader.conf . Not /boot/loader.conf.local
Noop.
The file /boot/loader.conf can be rewritten 'at any moment' by pfSense itself, discarding your edits.
Your own additions should be placed in /boot/loader.conf.local, which will not be touched.
If needed, you have to create this file.
This file will also get parsed at kernel boot time.See, for example Hardware Tuning and Troubleshooting
-
Not sure why you wouldn't see DNS there though. Is the service starting correctly?
-
@gertjan said in Can't assign NIC [Aquantia Corp. AQC107]:
@madbrain said in Can't assign NIC [Aquantia Corp. AQC107]:
The file to edit was actually /boot/loader.conf . Not /boot/loader.conf.local
Noop.
The file /boot/loader.conf can be rewritten 'at any moment' by pfSense itself, discarding your edits.
Your own additions should be placed in /boot/loader.conf.local, which will not be touched.
If needed, you have to create this file.
This file will also get parsed at kernel boot time.See, for example Hardware Tuning and Troubleshooting
Thanks. I stand corrected. I didn't know I was supposed to create the .local file. I just did so and moved the if_atlantic_load declaration to it.
What about the directory for the module ? Is it really supposed to be /boot/kernel ? The package installed it in /boot/modules originally. I made a copy in /boot/kernel, but wondering if it really needs to be in two places.
-
@stephenw10 said in Can't assign NIC [Aquantia Corp. AQC107]:
Not sure why you wouldn't see DNS there though. Is the service starting correctly?
I believe the DNS service was starting properly, yes. In fact, at the console in the shell, DNS worked fine - I could ping internet hosts.
But my client box, connected to the LAN NIC, didn't have DNS.
This happened when was doing a manual kldload on the Aquantia module.Once I made it persistent and rebooted, the problem with DNS on the client went away, somehow. I don't see a good explanation for this, but it's resolved now.
-
Ah, OK. That would almost certainly have been because the interface was down or didn't exist when Unbound started.
-
@stephenw10 said in Can't assign NIC [Aquantia Corp. AQC107]:
Ah, OK. That would almost certainly have been because the interface was down or didn't exist when Unbound started.
That makes sense. Indeed the interface wouldn't have existed at boot time. But after the kldload, I had gone through the menu to reconfigure the interfaces and IP addresses, and still DNS didn't work. Anyway, it's taken care of now, thank you !
-
-
-
-
-
This was a deep rabbit hole but eventually rewarding!
Attaching the Aquantia driver for latest pfSense (2.7.2) – not that it's a good idea to download random binaries from strangers. ;)
Steps to reproduce successful compilation of
net/aquantia-atlantic-kmod
for pfSense.- Install Poudriere
- git clone https://github.com/freebsd/poudriere.git
- cd poudriere
- ./configure
- make
- make install
- cp /usr/local/etc/poudriere.conf.sample /usr/local/etc/poudriere.conf (check & update)
- Download & compile FreeBSD source code at correct version
- pkg install git
- rm -rf /usr/src
- git clone -o freebsd https://git.FreeBSD.org/src.git /usr/src
- cd /usr/src
- git checkout 0c783a37d5d5
- make buildworld -j number of CPU cores
- Create jail for compilation
- poudriere jail -c -j pf272amd64 -a amd64 -m src=/usr/src
- Compile
- cd
- cat "net/aquantia-atlantic-kmod" > pkglist.txt
- poudriere bulk -f pkglist.txt -j pf272amd64
- Profit
- find your binary at /usr/local/poudriere/data/packages/pf272amd64-default/All/aquantia-atlantic-kmod-0.0.5_3.pkg
-
Oh yeah, also wanted to thank to @Rico who gave me the idea that this might be possible and actually dig it. So happy, that I can now use the sweet 10g NIC, and learned a bunch along the way!
-
Nice work!
-
@onoseto Thanks for this great work !
My two AQN-107 NICs are in a drawer in the garage, currently. I have been using an Intel X550-T2 dual-port NIC with pfSense for a year, for both 2.5 Gbps WAN (Comcast) and 10 Gbps LAN.
The X550-T2 is a little bit faster than the Aquantia AQN-107, in addition to having two ports. It lacks WOL support, however, which doesn't matter for pfSense, but does for a desktop. I discovered this when I bought a second X550-T2 for my main Windows desktop to get last tiny bit of performance (max iperf3 on LAN with one stream). WOL no longer worked. I had to enable the motherboard Intel I211 NIC, and turn on WOL on it. I didn't bind any protocol to it (no TCP/IP). It does require an extra ethernet cable, and port on a 1Gb switch, but those are cheap enough.
Anyway, the Aquantia seems to be great with Linux as they have been supported out of the box in the kernel for several years with Ubuntu. Not sure about other distributions. My NAS runs Linux and uses an Aquantia AQN-107 and is able to max out the connection, unlike under Windows.
For pfSense, the AQN-107 driver is regrettably not part of the official distribution. Is there any chance that it will ever make it to the official pfSense distribution ? That would be really welcome for disaster recovery scenarios (drive failure) to be able to just upload the settings to restore, without the need to figure out how to rebuild/download and reinstall the driver.
There are of course workarounds, such as temporarily using the motherboard built-in NIC for either WAN or LAN. -
Likely when the driver is added the FreeBSD tree directly rather than as kmod pkg.
-
@onoseto Are you able to re-attach that? Unfortunately attachments to the forum were lost for a short period and that was included.
-