ipvsadm全部启动成功,可是netstat里看不到端口?
[b]kernel:[/b]
Linux test217 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
[b]ifconfig -a:[/b]
eth0 Link encap:Ethernet HWaddr 00:19:B9:EE:A0:5E
inet addr:192.168.40.217 Bcast:192.168.40.255 Mask:255.255.255.0
inet6 addr: fe80::219:b9ff:feee:a05e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:88515 errors:0 dropped:0 overruns:0 frame:0
TX packets:41906 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52886576 (50.4 MiB) TX bytes:5229460 (4.9 MiB)
Interrupt:169 Memory:f8000000-f8011100
eth0:200 Link encap:Ethernet HWaddr 00:19:B9:EE:A0:5E
inet addr:192.168.40.200 Bcast:192.168.40.200 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:169 Memory:f8000000-f8011100
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:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2052 (2.0 KiB) TX bytes:2052 (2.0 KiB)
[b]/etc/sysconfig/ipvsadm:[/b]-
A -t 192.168.40.200:80 -s rr
-a -t 192.168.40.200:80 -r 192.168.40.216:80 -g -w 1
-a -t 192.168.40.200:80 -r 192.168.40.215:80 -g -w 1
[b]ipvsadm -L -n:[/b]
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.40.200:80 rr
-> 192.168.40.215:80 Route 1 0 0
-> 192.168.40.216:80 Route 1 0 0
确认过两台realserver的port 80都是正常的!
[b]netstat -an:[/b]
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::ffff:192.168.40.217:22 ::ffff:192.168.30.221:50481 ESTABLISHED
[b]为什么在LVS-DR的主机上没有port 80起来?[/b]
tool哥
周二, 2008-05-20 19:18
Permalink
ipvsadm全部启动成功,可是netstat里看不到端口?
selinux有没有把它关闭!