Setting a primary outgoing interface

Hello to everyone who's reading this.
I am running my services on a 13.5 FreeBSD server. I have a 1Gb NIC with 4 ports. the first and 3rd ports are from the same broadcast range and I have permission on all the router for the IP address on the 1st port but every connection goes out of the 3rd interface.
the IP for the 1st port is : 192.167.100.2
the IP for the 3rd port is 192.168.100.1
Is there anyway I can set the 1st port as the outgoing interface globally without changing the IPs ?
Thanks in advance
 
13.5 FreeBSD server
FreeBSD 13.5 is EoL and not supported any more. The entire 13 major branch is EoL.


the first and 3rd ports are from the same broadcast range
Don't put multiple interfaces on the same network.
 
Hello to everyone who's reading this.
I am running my services on a 13.5 FreeBSD server. I have a 1Gb NIC with 4 ports. the first and 3rd ports are from the same broadcast range and I have permission on all the router for the IP address on the 1st port but every connection goes out of the 3rd interface.
the IP for the 1st port is : 192.167.100.2
the IP for the 3rd port is 192.168.100.1
Is there anyway I can set the 1st port as the outgoing interface globally without changing the IPs ?
Thanks in advance

I am running my services on a 13.5 FreeBSD server... as stated above. EOL
I have a 1Gb NIC with 4 ports. ... not relevant

the first and 3rd ports are from the same broadcast range.... no, they probably are not.
the IP for the 1st port is : 192.167.100.2... what the tar is this?
the IP for the 3rd port is 192.168.100.1... This is the only thing that looks sane

You need to look at your routing table and packet stats to determine what is going on. this looks to me purely like the default route being funneled through to 192.168.100.1 and then of course all traffic will go out that port. Also, for routing problems you should include your routing table output in the problem description.
 
Back
Top