I'm running a Dell R630 with FreeBSD 14.2, using LAGG for link aggregation on three 2x10Gbit NICs. Each LAGG has multiple IP addresses and VLANs configured, including a mix of public routable IPs, transit provider IPs, and IX IPs. I'm using BIRD v2 for BGP sessions and pf for firewalling. The internal network uses publicly routable IP addresses.
The issue I've observed is that the router is sometimes using non-routable IP addresses (i.e., IP addresses from the IX or other unexpected sources) when attempting to reach external destinations. I would like the router to use public routable IP addresses instead, specifically the IP address 23.165.136.1 or even the IP provided by my transit provider (on lagg0). This only seems to occur when the router needs to connect to the internet, not with the internal network.
I'm concerned about this issue because it's causing connectivity problems and I'm not sure why the router is choosing to use non-routable IPs. Can anyone help me understand what's causing this behavior and how to configure my router to use the desired IP addresses?
The issue I've observed is that the router is sometimes using non-routable IP addresses (i.e., IP addresses from the IX or other unexpected sources) when attempting to reach external destinations. I would like the router to use public routable IP addresses instead, specifically the IP address 23.165.136.1 or even the IP provided by my transit provider (on lagg0). This only seems to occur when the router needs to connect to the internet, not with the internal network.
I'm concerned about this issue because it's causing connectivity problems and I'm not sure why the router is choosing to use non-routable IPs. Can anyone help me understand what's causing this behavior and how to configure my router to use the desired IP addresses?