All -
I'm having some difficulty with ipvsadm and ipvs-0.9.16-2.2.17. The kernel
patch was successful, but I'm having trouble finding a version of ipvsadm
that doesn't dump core. This is a RH6.1 machine with a non-rpm kernel and
the tarballed patch from the main lvs site. I'm not using any
Redhat-specific lvs packages - everything is from scratch. Please let me
know if you need any specific command output. I'm simply trying to
redirect connections at this point using DR and -s rr.
Thanks for any help you might be able to offer.
best,
john
---- ---- ---- ---- Examples below ----
Kernel and build date: 2.2.17 #1 SMP Mon Oct 9
-=-=-
Tarball from main ftp, built in ipvs-0.9.16-2.2.17/ipvsadm/
# ./ipvsadm -h
ipvsadm v1.11 2000/06/16 (compiled with popt and IPVS v0.9.16)
IP Virtual Server version 0.9.16 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
# ./ipvsadm -C
# ./ipvsadm -A -t 1.2.3.4:80 -s rr
[1.2.3.x is/are real IPs in these examples]
# ./ipvsadm
IP Virtual Server version 0.9.16 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
Segmentation fault (core dumped)
-=-=-
>From main ftp, ipvsadm-1.11-4.src.rpm
# ipvsadm -C
# ipvsadm -A -t 1.2.3.4:80 -s rr
# ipvsadm
IP Virtual Server version 0.9.16 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
Segmentation fault (core dumped)
-=-=-
>From main ftp, ipvsadm-1.11.tar.gz
Same as above.
-=-=-
As an experiment, I tried ipvsadm-1.1-2.i386.rpm from rpmfind:
# /sbin/ipvsadm -C
# /sbin/ipvsadm -A -t 1.2.3.4:80 -s rr
# /sbin/ipvsadm
ipvsadm v1.1 1999/7/1
IP Virtual Server version 0.9.16 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP [HEX]:0050 rr
# /sbin/ipvsadm -a -t 1.2.3.4:80 -r 1.2.3.5:80
# /sbin/ipvsadm
IP Virtual Server version 0.9.16 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP [HEX]:0050 rr
-> [HEX]:0000 Masq 0 0 0
# /sbin/ipvsadm -a -t 1.2.3.4:80 -r 1.2.3.6:80
setsockopt failed: File exists
Destination already exists
The example above doesn't forward packets to 1.2.3.5:80, despite listing
it in the table.
--
John Mora
|