Hello,
I just started to try LVS recently.
I can't start service of ipvsadm.
The diagram is below:
=======================================<
ClientPC(192.168.1.103)
|
|---LVS Server(eth0:192.168.1.94, eth0:0:192.168.1.70)
|
Web Server(192.168.1.90)
=======================================>
I did "service ipvsadm start" but 80 port on LVS Server isn't opened.
The operation on LVS Server is below:
=======================================<
[root@fedora3 ~]# ipvsadm -A -t 192.168.1.70:http -s rr
[root@fedora3 ~]# ipvsadm -a -t 192.168.1.70:http -r 192.168.1.90:http -m -w
1
[root@fedora3 ~]# ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.70:http rr
-> 192.168.1.90:http Masq 1 0 0
[root@fedora3 ~]# service ipvsadm save
Saving IPVS table to /etc/sysconfig/ipvsadm: [ OK ]
[root@fedora3 ~]# service ipvsadm start
Clearing the current IPVS table: [ OK ]
Applying IPVS configuration: [ OK ]
[root@fedora3 ~]# ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.70:http rr
-> 192.168.1.90:http Masq 1 0 0
[root@fedora3 ~]# service pound stop
Stopping pound: ^[[A^[[A[root@fedora3 ~]# netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 0.0.0.0:32768 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:32769 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:5335 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:*
LISTEN
tcp 0 288 192.168.1.94:793 192.168.1.90:2049
ESTABLISHED
tcp 0 0 :::22 :::*
LISTEN
tcp 0 132 ::ffff:192.168.1.94:22 ::ffff:192.168.1.103:2345
ESTABLISHED
=======================================>
And the log "/var/log/messages" on LVS Server is below:
=======================================<
Sep 3 09:51:04 fedora3 kernel: IPVS: Registered protocols (TCP, UDP, AH,
ESP)
Sep 3 09:51:04 fedora3 kernel: IPVS: Connection hash table configured
(size=4096, memory=32Kbytes)
Sep 3 09:51:04 fedora3 kernel: IPVS: ipvs loaded.
Sep 3 09:51:12 fedora3 kernel: IPVS: [rr] scheduler registered.
Sep 3 09:53:44 fedora3 ipvsadm: Saving IPVS table to /etc/sysconfig/ipvsadm
succeeded
Sep 3 09:53:52 fedora3 ipvsadm: Clearing the current IPVS table: succeeded
Sep 3 09:53:53 fedora3 ipvsadm: Applying IPVS configuration succeeded
=======================================>
And the operation of telnet from LVS server to localhost 80 is below:
=======================================<
[root@fedora3 ~]# telnet localhost 80
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
=======================================>
And the condition of ifconfig and route is below:
=======================================<
[root@fedora3 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:99:10:56:E2
inet addr:192.168.1.94 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::290:99ff:fe10:56e2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3714715 errors:0 dropped:0 overruns:0 frame:0
TX packets:1960615 errors:19 dropped:0 overruns:0 carrier:19
collisions:1466725 txqueuelen:1000
RX bytes:1304720790 (1.2 GiB) TX bytes:154256385 (147.1 MiB)
Interrupt:12 Base address:0xd000
eth0:0 Link encap:Ethernet HWaddr 00:90:99:10:56:E2
inet addr:192.168.1.70 Bcast:192.168.1.70 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:12 Base address:0xd000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1992 (1.9 KiB) TX bytes:1992 (1.9 KiB)
[root@fedora3 ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.70 * 255.255.255.255 UH 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
=======================================>
And there's no process named "ipvs" or like that when I check by "ps aux".
And my OS is fedora core 3.
And the version of ipvs is "ipvsadm v1.24 2003/06/07 (compiled with popt and
IPVS v1.2.0)".
Generally speaking, some port is opened when ipvsadm service starts?
Or is it normal that any port is opened even when ipvsadm service starts?
Can you help me, anyone?
Thanks,
---------------------------------
Hiroyuki Shimizu
Yokohama - Kanagawa - Japan
omisosiru55@xxxxxxxxxxx
http://www.stk-production.com/
---------------------------------
|