Dear All,
I tried to configure a load balancer with IPVS on a RHEL 4 machine. My
load balancer is having two network cards where one is public IP and the
other is a private IP.
I successfully configured the ipvs tables with /sbin/ipvsadm ,
My /etc/ipvsadm.rules are as below:
-A -u 192.168.1.70:5060 -s wlc
-a -u 192.168.1.70:5060 -r 192.168.1.71:5060 -g -w 1
When tried to test the load balancer by sending udp messages on port
5060, my load balancer was not forwarding it to the real server.
Load balancer Interface configuration :
[root@localhost sbin]# ./ip addr sh
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:16:17:ad:c0:a7 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.71/24 brd 192.168.1.255 scope global eth0
inet6 fe80::216:17ff:fead:c0a7/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:02:b3:4a:7e:b3 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 brd 192.168.1.100 scope global eth1
inet6 fe80::202:b3ff:fe4a:7eb3/64 scope link
valid_lft forever preferred_lft forever
4: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
Real server Interface configuration:
[root@localhost ipvsadm-1.24]# /sbin/ip addr sh
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 192.168.1.70/32 brd 192.168.1.70 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:16:17:ad:bc:9d brd ff:ff:ff:ff:ff:ff
inet 192.168.1.70/24 brd 192.168.1.255 scope global eth0
inet6 fe80::216:17ff:fead:bc9d/64 scope link
valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
[root@localhost ipvsadm-1.24]#
UDP stats on the load balancer are given below:
[root@localhost sbin]# /sbin/ipvsadm -L -n --stats
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Conns InPkts OutPkts InBytes
OutBytes
-> RemoteAddress:Port
UDP 192.168.1.71:5060 1 1 0
580 0
-> 192.168.1.70:5060 1 1 0
580 0
>From above traces we identified that the load balancer is not forwarding
the UDP messages to real server.
Can anyone please tell me what was wrong with the setup.
Thanks & Regards,
Narsan V| NGN | Tech Mahindra R&D
9/7 Hosur Road , Bangalore - 560029
* Office: +91-080-25539232 | Extn: 2210
Email: narsanv@xxxxxxxxxxxxxxxx
www.techmahindra.com <http://www.techmahindra.com/>
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may review
the policy at <a
href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
externally and <a
href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a>
internally within Tech Mahindra.
============================================================================================================================
|