Well, I already found the first mistakes and thought I'll correct them
right away:
------------------------------
- SVR1 ip rules and routing: -
------------------------------
cat /etc/iproute2/rt_tables
2 mysqlrouting
...
ip rule show
...
32765: from 10.250.250.20 lookup mysqlrouting
...
ip route show table mysqlrouting
default via 10.250.250.21 dev eth1
Setup-steps for this:
echo "2 mysqlrouting" > /tmp/rt_tables
cat /etc/iproute2/rt_tables >> /tmp/rt_tables
cp /tmp/rt_tables /etc/iproute2/rt_tables
rcnetwork restart
ip rule add from 10.250.250.20 table mysqlrouting
ip route add default via 10.250.250.21 dev eth1 table mysqlrouting
------------------------------
- SVR2 ip rules and routing: -
------------------------------
cat /etc/iproute2/rt_tables
2 mysqlrouting
...
ip rule show
...
32765: from 10.250.250.20 lookup mysqlrouting
...
ip route show table mysqlrouting
default via 10.250.250.20 dev eth1
Setup-steps for this:
echo "2 mysqlrouting" > /tmp/rt_tables
cat /etc/iproute2/rt_tables >> /tmp/rt_tables
cp /tmp/rt_tables /etc/iproute2/rt_tables
rcnetwork restart
ip rule add from 10.250.250.21 table mysqlrouting
ip route add default via 10.250.250.20 dev eth1 table mysqlrouting
|