Destination Dependent Routing?

Started by wpzed, June 22, 2023, 10:36:08 AM

Previous topic - Next topic
I have multiple gateways and multiple vLANs.
I would like to route the outgoing traffic through "gateway1" if the destination IP is "A.B.C.D" independently from the source of the traffic.
The source of the traffic could be any vLAN network or the router itself. 
What is the best way to implement a rule like this?

Floating rule? Or per interface. It's pretty standard..

Note that traffic from router itself is not able to be managed by a gateway rule.


Cheers,
Franco

A "floating rule" works fine for vLANs but as you wrote it does not work for the router itself.
What is the suggested way to create the same rule for the router itself?

You cannot at this point. It has been known for ages.


Cheers,
Franco

What's keeping you from setting a static route for A.B.C.D/32 with gateway1? All routing is per destination by default. It's source based routing that is more complex.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)