Answers to: Static route in RHEL 6http://linuxexchange.org/questions/3029/static-route-in-rhel-6<p>I have a box that's on two subnets, both fully routable within the network. I would like to add routing so that all traffic goes to the first adapter, with the exception of a handful of addresses.<br> I have been able to add the static routes for the individual machines and can get to the secondary adapter, but then when you try to get to the first adapter from one of those machines, then the ping fails. I want to do this for putting certain traffic ie cluster traffic through certain interfaces, but everything needs to be routable within the network.</p> <p>bond0 --&gt; 10.10.10.10</p> <p>bond1 --&gt; 10.20.10.10</p> <p>Ping from another machine on 10.10.10.0 to 10.10.10.10 is good</p> <p>Ping from another machine on 10.10.10.0 to 10.20.10.10 is bad</p> <p>Ping from another machine on 10.20.10.0 to 10.10.10.10 is bad</p> <p>Ping from another machine on 10.20.10.0 to 10.20.10.10 is good</p> <p>Edit: It looks like I might need to tune something in the arp tunables, but so far arp_ingore/arp_annouce/arp_filter haven't produced any results, but it does sounds like interface base vs host base arp might be the issue.</p>enFri, 01 Mar 2013 16:28:09 -0500Answer by darkonchttp://linuxexchange.org/questions/3029/static-route-in-rhel-6/3046<p>is routing (packet forwarding) turned on?</p> <p>Try:<br> echo 1 &gt; /proc/sys/net/ipv4/ip_forward</p> <p>If that works, then -- to make the change permanent:<br> echo 'net.ipv4.ip_forward = 1' &gt;&gt; /etc/sysctl.d/60Routing</p> <p>Linux, by default, will not forward packets between interfaces. This is a security feature.</p>darkoncFri, 01 Mar 2013 16:28:09 -0500http://linuxexchange.org/questions/3029/static-route-in-rhel-6/3046Answer by rfelsburghttp://linuxexchange.org/questions/3029/static-route-in-rhel-6/3043<p>We're going to need some more info on this one bud. A couple of things and commands to run. Can we get an output of:</p> <pre><code>netstat -r ifconfig </code></pre> <p>Also, we need to know what networks you want routed where.</p> <p>-Rob</p>rfelsburgFri, 01 Mar 2013 14:11:16 -0500http://linuxexchange.org/questions/3029/static-route-in-rhel-6/3043