ctdb w/ per_ip_routing

William Marshall bmarsh at us.ibm.com
Fri Jan 10 15:53:05 MST 2014

I am trying to setup ctdb on Red Hat 6.4. The system has 2 interfaces and
I'm want to have some public addresses on each interface. I don't know how
typical it is, but my networks require me to respond to the packets on the
interface they arrived on.

I was able to modify /etc/ctdb/events.d/13.per_ip_routing so that a default
entry was created in addition to the IP route add command that was already
there, but I'd like to know if this change makes sense.

All the IPs on my eth0 (10.10.227.x) were working fine. Today I was adding
a public IP on eth1 (10.10.228.x)

Here's some of the settings I have. Initially I tried the
auto_routing_conf, but that didn't work. It might work now w/ the added


# cat /etc/ctdb/per_ip_routing.conf	     (this doesn't have entries for the
other public addresses, since they were routing OK via the default. I will
add them.)
# <public_ip_address> <network> [<gateway>]

Initially, I was only getting the 1st line in my route table, I added a
line to the /etc/ctdb/events.d/13.per_ip_routing to create the default
#  ip route show table 241 via dev eth1
default via dev eth1

I hope someone with more expereience here can tell me if I had an initial
configuration problem, and/or if this change makes sense.


Bill Marshall

More information about the samba-technical mailing list