Huhu all :-)
after successfully playing with LVS-NAT I want to check out LVS-DR.
Here is my setup: (note: this is 2.2.22)
DIRECTOR:
---------
root@fw-rot:[/root] # ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:B3:B9:63:00
inet addr:10.0.1.1 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1303 errors:0 dropped:0 overruns:0 frame:0
TX packets:1628 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:134271 (131.1 KiB) TX bytes:131216 (128.1 KiB)
Interrupt:3 Base address:0x9000
eth1 Link encap:Ethernet HWaddr 00:02:B3:B9:63:A3
inet addr:10.0.0.40 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2052 errors:0 dropped:0 overruns:0 frame:0
TX packets:1407 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:167433 (163.5 KiB) TX bytes:186034 (181.6 KiB)
Interrupt:4 Base address:0xb000
eth1:1 Link encap:Ethernet HWaddr 00:02:B3:B9:63:A3
inet addr:192.168.0.1 Bcast:192.168.0.1 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:4 Base address:0xb000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
echo 0 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/ip_always_defrag
echo 1 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 1 > /proc/sys/net/ipv4/conf/default/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects
echo 1 > /proc/sys/net/ipv4/conf/eth1/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/all/hidden
echo 0 > /proc/sys/net/ipv4/conf/eth0/hidden
echo 0 > /proc/sys/net/ipv4/conf/eth1/hidden
echo 10 > /proc/sys/net/ipv4/vs/debug_level
echo 1 > /proc/sys/net/ipv4/vs/secure_tcp
ifconfig eth1:1 192.168.0.1 broadcast 192.168.0.1 netmask 255.255.255.255
route add -host 192.168.0.1 dev eth1:1
ipvsadm -A -t 192.168.0.1:80 -s wlc
ipvsadm -a -t 192.168.0.1:80 -r 10.0.1.10:80 -g -w 50
ipvsadm -a -t 192.168.0.1:80 -r 10.0.1.11:80 -g -w 50
ipvsadm -a -t 192.168.0.1:80 -r 10.0.1.12:80 -g -w 50
REALSERVERS:
------------
root@webserver1:[/root] # ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:B3:B8:73:40
inet addr:10.0.1.10 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:938 errors:0 dropped:0 overruns:0 frame:0
TX packets:824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:86195 (84.1 KiB) TX bytes:110926 (108.3 KiB)
Interrupt:5 Base address:0x9000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo:1 Link encap:Local Loopback
inet addr:192.168.0.1 Mask:255.255.255.255
UP LOOPBACK RUNNING MTU:3924 Metric:1
echo 0 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/ip_always_defrag
echo 1 > /proc/sys/net/ipv4/conf/all/hidden
echo 1 > /proc/sys/net/ipv4/conf/lo/hidden
ifconfig lo:1 192.168.0.1 broadcast 192.168.0.1 netmask 0xffffffff up
route add -host 192.168.0.1 dev lo:1
Where is my thinking error? :-)
Many thanks!!
ciao, Marc
|