I have a server running RHEL6.4
.
I need to configure .rp_filter
sysctl parameter for my server's private interconnect.
This server has 2 NICs bonded together.
I looked through the documentation and searched online but haven't found conclusive information how exactly it should be configured.
Should I set it on the bonded interface itself?
net.ipv4.conf.bond0.rp_filter = 0
Or should I set it on the 2 physical slave NICs?
net.ipv4.conf.em1.rp_filter = 0
net.ipv4.conf.em2.rp_filter = 0
I can not use net.ipv4.conf.all.rp_filter
or net.ipv4.conf.default.rp_filter
.
What's good with open source - you can always refer to the source, if you're in doubt.
A quick search shows that
rp_filter
is used in function fib_validate_source, which is called only in net/ipv4/route.c, TCP/IP stack implementation for linux.So rp_filter doesn't do absolutely anything whether it's enabled or not on an interface without IP address configured.
Bonding is a layer 2 function; rp_filter is a layer 3 function. So this is probably the wrong question. As @c4f4t0r mentioned, your rp_filter goes where your IP address is.