LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: keepalived handling 2 VIPs [solved -> maybe parse error?]

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: keepalived handling 2 VIPs [solved -> maybe parse error?]
From: Dominik Klein <dk@xxxxxxxxxxxxxxxx>
Date: Tue, 25 Apr 2006 10:37:39 +0200
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

<Prev in Thread] Current Thread [Next in Thread>