请教VIP与RIP在同一台服务器上,不为REALSERVER建虚拟机,能否实现

请教一下,一台服务器配置3个IP,A做为VIP,B、C做为RIP,在B、C上运行两个服务进程,通过LVS能否实现?如何设置?
我配置如下,但不能工作,RIP指向其他机器则没问题。
ipvsadm -A -u 192.168.0.1:53 -s rr
ipvsadm -a -u 192.168.0.1:53 -r 192.168.0.2 -m
ipvsadm -a -u 192.168.0.1:53 -r 192.168.0.3 -m

eth0 Link encap:Ethernet HWaddr 00:15:17:5E:EE:34
inet addr:1192.168.0.1 Bcast:121.199.254.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fe5e:ee34/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:264029 errors:0 dropped:0 overruns:0 frame:0
TX packets:42970 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17503965 (16.6 MiB) TX bytes:5902269 (5.6 MiB)
lo:0 Link encap:Local Loopback
inet addr:192.168.0.2 Mask:255.255.255.255
UP LOOPBACK RUNNING MTU:16436 Metric:1

lo:1 Link encap:Local Loopback
inet addr:192.168.0.3 Mask:255.255.255.255
UP LOOPBACK RUNNING MTU:16436 Metric:1

Forums:

NAT方式都是走到LOCAL_IN链上面,然后LVS将其再转到POST_ROUTING中出去,根本走不到本地的进程上.
当然你换成其他机器肯定是可以的

Most help articles on the web are inaccurate or ineehorcnt. Not this!

At last, somnoee who comes to the heart of it all

Super iniromatfve writing; keep it up.