Static route issue

Started by Noci, March 16, 2026, 11:28:17 PM

Previous topic - Next topic
March 16, 2026, 11:28:17 PM Last Edit: March 16, 2026, 11:30:44 PM by Noci
I had some trouble with a system that used to be routed using a static route or firewall rule with gateway.

This doesn't work anymore with 26.1.

Static routes are not added as check with netstat -rn shows
adding a route with route add destination internal-IP-address   then it DOES work...

I have an address block...  one of the addresses (PUB-1) is handing all NATted ports. usual NAT rules apply, works no problem.
An other address is routed through....

This used to be a static route:  IP address = PUB-2, with gateway 192.168.x.10
The system on 192.168.x.10 has the PUB-2 address as default and 192.168.x.10 as an alias.

On previous versions this was no problem.  Current version fails to add the route needed.

Also adding a in the firewall with a gateway added does not work.
There is a reason for NOT using NAT..., it helps when some systems have the public address on the local system, due to software/protocol limitations.

I have this experience on slow switch reconnection. This solved my problem:

add from ssh shell: /usr/local/etc/rc.syshook.d/start/99-route-fix:
(do not forget chmod +x 99-route-fix !!!)

#!/bin/sh
# Wait 10 seconds to ensure the parent interface and VLANs are fully stable
sleep 10
# This is the actual backend script that reloads all routing logic,other as "configctl route reload" or "configctl interface reconfigure" did not help
/usr/local/etc/rc.routing_configure

It seems to be bug on 26.1.4? I thing routes must  be rebuild after initializing of slowest one interface.

Quote from: zhladik on March 23, 2026, 09:41:10 PMI have this experience on slow switch reconnection.[...]

Spanning tree?

Quote from: pfry on March 23, 2026, 10:49:18 PMSpanning tree?

Probably. Configure portfast for any connected system that is not another switch/bridge.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)