Need to restric traffice in linux interface wise

Latest response

Hi Guys
We have an issue

We have two network bonds in our RHEL 6.7 server bond0(two interface ) and Bond1 (two interface)
Bond0 is using for management data with gateway ,Bond1 is using for EMC NFS without gateway
Current situation :when ever the bond1 (NFS traffic) is not available or network is not reachable then the NFS traffic is reaching in Bond0

Is any possible way to restrict this overlapping from OS side

Thanks

Responses

At the basic level this could be done by restricting packet flow through firewall which can be done via iptable rules. You could add a rule which would restrict packet flow through port (2049 for NFSv4) via only bond1 and allow only through bond0 interface. Hope this is what you wanted to achieve.

Hello

This sounds like the routing table is being changed because bond1 is down, but why would the system try to route the NFS traffic over bond0? Are the bond interfaces in the same subnet perhaps?

I suggest reading the section in Deployment Guide Static Routes and the Default Gateway to understand how routes are determined. Then try configuring the bonds to be in different subnets so the system does not think that they represent alternative routes to the same destination.

Hello

Pasting your interface config files and the output of ip route might help us understand. For example, maybe you have GATEWAY in both config files?

Note that ip commands do not persist across system restarts, so edit the config files or use NetworkManager.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.