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.
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.

bond0 --> 10.10.10.10

bond1 --> 10.20.10.10

Ping from another machine on 10.10.10.0 to 10.10.10.10 is good

Ping from another machine on 10.10.10.0 to 10.20.10.10 is bad

Ping from another machine on 10.20.10.0 to 10.10.10.10 is bad

Ping from another machine on 10.20.10.0 to 10.20.10.10 is good

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.

asked 27 Feb '13, 13:51

BigDuphis's gravatar image

BigDuphis
11
accept rate: 0%

edited 27 Feb '13, 15:29




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:

netstat -r
ifconfig

Also, we need to know what networks you want routed where.

-Rob

link

answered 01 Mar '13, 14:11

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%

is routing (packet forwarding) turned on?

Try:
echo 1 > /proc/sys/net/ipv4/ip_forward

If that works, then -- to make the change permanent:
echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.d/60Routing

Linux, by default, will not forward packets between interfaces. This is a security feature.

link

answered 01 Mar '13, 16:28

darkonc's gravatar image

darkonc
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23

Asked: 27 Feb '13, 13:51

Seen: 1,787 times

Last updated: 01 Mar '13, 16:28

powered by OSQA