Jerome BENOIST wrote:
> My config don't work ???
>
> Load Balancer :
> ifconfig
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
> UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
> RX packets:2 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
> Collisions:0
>
> eth0 Link encap:Ethernet HWaddr 00:60:08:6E:38:EF
> inet addr:195.134.208.27 Bcast:195.134.208.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:693 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> Collisions:0
> Interrupt:9 Base address:0xff00
>
> eth1 Link encap:Ethernet HWaddr 00:10:4B:BC:30:55
> inet addr:195.134.208.28 Bcast:195.134.208.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:136 errors:0 dropped:0 overruns:0 frame:0
> TX packets:630 errors:0 dropped:0 overruns:0 carrier:0
> Collisions:0
> Interrupt:9 Base address:0xf880
The eth1 must be configured as follows in your example,
ifconfig eth1 195.134.208.28 netmask 255.255.255.255 broadcast 195.134.208.28
up
route add -host 195.134.208.28 dev eth1
>
>
> /proc/net/ip_pfvs
> ippfvs (LinuxDirector) version 0.9pre1 (Tunneling, WRR, size=4096)
> IP Port Forwarding & Virtual Server Table
> Protocol Local Addr:Port ==>
> Remote Addr Weight ActiveConns
> TotalConns
> ...
> UDP 195.134.208.28:80 ==>
> 195.134.208.51 1 0
> 0
> 195.134.208.50 1 0
> 0
> TCP 195.134.208.28:80 ==>
> 195.134.208.51 1 2
> 2
> 195.134.208.50 1 2
> 2
>
> Real Server 1 :
> ifconfig
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
> UP BROADCAST LOOPBACK RUNNING MTU:3584 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
>
> tunl0 Link encap:IPIP Tunnel HWaddr
> inet addr:195.134.208.28 Mask:255.255.255.0
> UP RUNNING NOARP MTU:1480 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
>
ifconfig tunl0 195.134.208.28 netmask 255.255.255.255 broadcast
195.134.208.28 up
route add -host 195.134.208.28 dev tunl0
>
> eth0 Link encap:Ethernet HWaddr 00:10:5A:3E:17:ED
> inet addr:195.134.208.50 Bcast:195.134.208.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1589 errors:0 dropped:0 overruns:0 frame:0
> TX packets:825 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> Interrupt:10 Base address:0xfc80
>
> Real Server 2 :
> ifconfig
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
> UP BROADCAST LOOPBACK RUNNING MTU:3584 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
>
> eth0 Link encap:Ethernet HWaddr 00:10:5A:3E:17:F5
> inet addr:195.134.208.51 Bcast:195.134.208.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1387 errors:0 dropped:0 overruns:0 frame:0
> TX packets:470 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> Interrupt:12 Base address:0x1280
>
> tunl0 Link encap:IPIP Tunnel HWaddr
> inet addr:195.134.208.28 Mask:255.255.255.0
> UP RUNNING NOARP MTU:1480 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
>
ifconfig tunl0 195.134.208.28 netmask 255.255.255.255 broadcast
195.134.208.28 up
route add -host 195.134.208.28 dev tunl0
If you still cannot fix it, please send us "netstat -rn" too, maybe we
can figure it out.
Good luck,
Wensong
>
> The kernel of loadbalancer send message :
> Apr 30 11:39:47 loadb kernel: eth1: Packet targetted at myself!
|