Hello all,
I'm hoping that this layout here will make it easy for anyone to
figure out what booboo i've done?
I'm attempting to use Lars' method, since i really don't know how to
setup with only 1 (gateways have confused me)
i just can't get anything working...
client: 192.168.2.10 -> 192.168.2.1 via crossover cable (ping OK)
web browser is pointed to 192.168.2.100
LVS (centos 5.1, pulse, piranha):
eth0: 192.168.2.1/gw {none}
eth1: 192.168.0.111/gw 192.168.0.1
eth0:1 - 192.168.2.100 {VIP}
echo 1 > /proc/sys/net/ipv4/ip_forward
no iptables is running, httpd default port is 8080, and piranha_GUI is
listening at 3636
RIP1:
eth0: 192.168.0.15 / gw 192.168.0.1
/etc/sysconfig/network-scripts/lo:0
lo:0 - 192.168.2.100
ifup lo:0
ping 192.168.2.100 and 192.168.0.111 {OK}
echo 1 > /proc/sys/net/ipv4/ip_forward
RIP2:
eth0: 192.168.0.11 / gw 192.168.0.1
/etc/sysconfig/network-scripts/lo:0
lo:0 - 192.168.2.100
ifup lo:0
ping 192.168.2.100 and 192.168.0.111 {OK}
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/sysconfig/ha/lvs.cf:
serial_no = 19
primary = 192.168.2.1
service = lvs
backup = 0.0.0.0
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = nat
nat_router = 192.168.0.111 eth1
nat_nmask = 255.255.255.0
debug_level = NONE
virtual all-web {
active = 1
address = 192.168.2.100 eth0:1
vip_nmask = 255.255.255.0
port = 80
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = rr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server offsite1 {
address = 192.168.0.11
active = 1
weight = 1
}
server offsite2 {
address = 192.168.0.15
active = 1
weight = 1
}
}
/etc/init.d/pulse start
localhost nanny[3471]: starting LVS client monitor for 192.168.2.100:80
localhost lvs[3456]: create_monitor for all-web/offsite1 running as pid 3471
localhost nanny[3472]: starting LVS client monitor for 192.168.2.100:80
localhost lvs[3456]: create_monitor for all-web/offsite2 running as pid 3472
localhost nanny[3471]: making 192.168.0.11:80 available
localhost nanny[3472]: making 192.168.0.15:80 available
localhost pulse[3458]: gratuitous lvs arps finished
|