LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Director and Real servers on different networks

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Director and Real servers on different networks
From: Andre Nathan <andre@xxxxxxxxxxxxxxx>
Date: Wed, 11 Oct 2006 14:07:33 -0300
On Wed, 2006-10-11 at 16:45 +0200, Vittorio R. Tracy wrote:
> Why don't you send output from these on your director: 

Sure. Below, as in the original email, "a.b.c" is the old network, and
"x.y.z" is the new network. "a.b.c.106" is the shared IP address.

> ipvsadm -l --numeric

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  a.b.c.106:25 wlc
  -> x.y.z.65:25                  Route   7982   0          569
                                                 ^^^^^^^^^^^^^^
             ActiveConn always stays in 0 and InActConn keeps increasing

  -> a.b.c.35:25                  Route   3392   9          54
  -> a.b.c.34:25                  Route   7186   17         87
  -> a.b.c.46:25                  Route   4997   12         68
  -> a.b.c.28:25                  Route   3949   10         34
  -> a.b.c.45:25                  Route   5692   13         87
  -> a.b.c.96:25                  Route   1486   4          47
  -> a.b.c.51:25                  Route   2062   5          26
  -> a.b.c.93:25                  Route   7599   14         188
  -> a.b.c.31:25                  Route   7599   16         139
  -> a.b.c.117:25                 Route   5992   14         115
  -> a.b.c.43:25                  Route   2515   6          39
  -> a.b.c.30:25                  Route   7185   16         77
  -> a.b.c.20:25                  Route   7185   17         96
  -> a.b.c.79:25                  Route   7185   18         79
  -> a.b.c.104:25                 Route   7184   20         59


> route -n

Kernel IP routing table
Destination    Gateway        Genmask         Flags Metric Ref Use Iface
a.b.c.0        0.0.0.0        255.255.255.128 U     0      0     0 eth0
x.y.z.0        0.0.0.0        255.255.255.0   U     0      0     0 eth0
0.0.0.0        a.b.c.1        0.0.0.0         UG    0      0     0 eth0


> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:F1:AD:1C:25
          inet addr:a.b.c.53  Bcast:a.b.c.127  Mask:255.255.255.128
          inet6 addr: fe80::20c:f1ff:fead:1c25/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1     
          RX packets:1287772358 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1254148915 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:214447349 (204.5 Mb)  TX bytes:1280209585 (1220.9 Mb)
          Base address:0xac00 Memory:fc9e0000-fca00000

eth0:0    Link encap:Ethernet  HWaddr 00:0C:F1:AD:1C:25
          inet addr:a.b.c.106  Bcast:a.b.c.106 Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0xac00 Memory:fc9e0000-fca00000

> And maybe these on the one realserver:
> route -n

Kernel IP routing table
Destination    Gateway        Genmask         Flags Metric Ref Use Iface
a.b.c.0        0.0.0.0        255.255.255.128 U     0      0     0 eth0
x.y.z.0        0.0.0.0        255.255.255.0   U     0      0     0 eth0
0.0.0.0        x.y.z.1        0.0.0.0         UG    0      0     0 eth0


> ifconfig

dummy0    Link encap:Ethernet  HWaddr 16:D3:77:46:A0:7B
          inet6 addr: fe80::14d3:77ff:fe46:a07b/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:210 (210.0 b)

dummy0:0  Link encap:Ethernet  HWaddr 16:D3:77:46:A0:7B
          inet addr:a.b.c.106  Bcast:a.b.c.106  Mask:255.255.255.255
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:15:17:0C:91:38
          inet addr:x.y.z.65  Bcast:x.y.z.255  Mask:255.255.255.0
          inet6 addr: fe80::215:17ff:fe0c:9138/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3754775 errors:0 dropped:0 overruns:0 frame:0
          TX packets:141270 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:388103525 (370.1 MiB)  TX bytes:38935763 (37.1 MiB)
          Base address:0x3020 Memory:b8820000-b8840000


Andre


<Prev in Thread] Current Thread [Next in Thread>