Article 548TM output interface selection while forwarding packets

output interface selection while forwarding packets

by
marypoppins
from LinuxQuestions.org on (#548TM)
Dear All,

I would like to ask where the decision is made about which interface will be the output interface for forwarding packets where multiple interface is on the same subnet?

For example, there is a router with vrrp interfaces like this:
(the if_lan and the vrrp_lan2 is connect to the same network):
if_lan1
if_lan2
vrrp_lan2

The situation is: a packet comming from lan1 and travels through the router into (or through) the lan2 network. So the router has to push it to the lan2 (or to the lan2 gw). How the router select the output interface (and in the end the source mac address)?
It seems sometimes it select the vrrp interface, sometimes the the physical interface when I try to make filter rules that filter the output interface.

thank youlatest?d=yIl2AUoC8zA latest?i=0KfqvQMIjqw:2KvfmJ5s1Zw:F7zBnMy latest?i=0KfqvQMIjqw:2KvfmJ5s1Zw:V_sGLiP latest?d=qj6IDK7rITs latest?i=0KfqvQMIjqw:2KvfmJ5s1Zw:gIN9vFw0KfqvQMIjqw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments