1
24.1 Legacy Series / Re: Only half speed on 2.5 GBE LAN
« on: April 15, 2024, 04:04:36 pm »
Okay, I now know that it does not depend on the version of OPNsense, at all. There's an entirely different reason / cause.
When I tried different versions of OPNsense to find out if I get the low speeds with every version, I did not configure the interfaces in the exact same way every time. That led to sometimes getting the full speed and sometimes only getting half the possible speed.
Here's how I configured the LAN interface when I only got half speed with the live USB stick:
Option 2 --> LAN interface --> no DHCP --> static IP/netmask --> no upstream gateway address. I then set a default route to my local router via "sudo route add default router_ip" and I got the full speed. I then installed OPNsense permanently on my M.2 SSD. After the reboot the default gateway wasn't there anymore, of course, the above command is not a permanent setting, so I configured a gateway in the web UI via System --> Gateways --> Configuration. I didn't the the upstream option. I then configured a default route via System -->Routes --> Configuration where I set the target IP 0.0.0.0/0 to the gateway I just configured. I still got the full speed in iperf3.
I still don't know what exactly is causing the low speed, but that's probably just my lack of understanding how to correctly set up the interfaces. I'm new to OPNsense, so it's probably a stupid mistake. Would love for anyone to explain to me the reason for this / the mistake I made.
When I tried different versions of OPNsense to find out if I get the low speeds with every version, I did not configure the interfaces in the exact same way every time. That led to sometimes getting the full speed and sometimes only getting half the possible speed.
Here's how I configured the LAN interface when I only got half speed with the live USB stick:
- After first boot I selected option 2 --> LAN interface --> DHCP. That led to a working connection to the LAN including DNS server and the local gateway address of my router, but the speed was reduced as described.
- I also tried option 2 --> LAN interface --> no DHCP --> static IP/netmask --> upstream gateway address set to my local router. That again led to a working connection to my LAN, but the speed was reduced, same as before.
Option 2 --> LAN interface --> no DHCP --> static IP/netmask --> no upstream gateway address. I then set a default route to my local router via "sudo route add default router_ip" and I got the full speed. I then installed OPNsense permanently on my M.2 SSD. After the reboot the default gateway wasn't there anymore, of course, the above command is not a permanent setting, so I configured a gateway in the web UI via System --> Gateways --> Configuration. I didn't the the upstream option. I then configured a default route via System -->Routes --> Configuration where I set the target IP 0.0.0.0/0 to the gateway I just configured. I still got the full speed in iperf3.
I still don't know what exactly is causing the low speed, but that's probably just my lack of understanding how to correctly set up the interfaces. I'm new to OPNsense, so it's probably a stupid mistake. Would love for anyone to explain to me the reason for this / the mistake I made.