LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Linux VS across subnetted networks?

To: linux-virtualserver@xxxxxxxxxxxx
Subject: Linux VS across subnetted networks?
From: Jake Buchholz <jake@xxxxxxxxxx>
Date: Fri, 16 Apr 1999 11:57:35 -0500
I had Linux Virtual Server (tunnelling) working fine when I had all the
servers in the same subnet, but when I moved 'em out from behind the
firewall and into their places in the real world, I can't seem to get
it working again.  Any hints would be greatly appreciated.  Here's how
it's being setup...

Load Balancer, linux 2.0.36, vs-0.8:

        eth0: 192.168.4.42 netmask 255.255.255.224 (net 192.168.4.32/27)

        ifconfig eth0:0 192.168.4.37 netmask 255.255.255.255 broadcast
                192.168.4.37 up
        route add -host 192.168.4.37 dev eth0:0
        ippfvsadm -A -t 192.168.4.37:23 -R 192.168.5.124

Server, linux 2.2.5ac3:

        eth0: 192.168.5.124 netmask 255.255.255.192 (net 192.168.5.64/26)

        ifconfig tunl0 192.168.4.37 netmask 255.255.255.255 broadcast
                192.168.4.37 up

Load Balancer ifconfig -au/routing:

eth0      Link encap:Ethernet  HWaddr 00:60:08:12:93:94  
          inet addr:192.168.4.42  Bcast:192.168.4.63  Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2351 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1 
          Interrupt:11 Base address:0xd000 

eth0:0    Link encap:Ethernet  HWaddr 00:60:08:12:93:94  
          inet addr:192.168.4.37  Bcast:192.168.4.37  Mask:255.255.255.255
          UP BROADCAST RUNNING  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 

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.4.37    0.0.0.0         255.255.255.255 UH     1500 0          0 eth0:0
192.168.4.32    0.0.0.0         255.255.255.224 U      1500 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0          0 lo
0.0.0.0         192.168.4.62    0.0.0.0         UG     1500 0          0 eth0

Server ifconfig/routing:

eth0      Link encap:Ethernet  HWaddr 00:E0:29:10:E5:AD  
          inet addr:192.168.5.124  Bcast:192.168.5.127  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3813 errors:0 dropped:0 overruns:0 frame:0
          TX packets:483 errors:1 dropped:0 overruns:0 carrier:1
          collisions:7 txqueuelen:100 
          Interrupt:12 Base address:0xc800 

tunl0     Link encap:IPIP Tunnel  HWaddr   
          inet addr:192.168.4.37  Mask:255.255.255.255
          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 txqueuelen:0 

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.5.124   0.0.0.0         255.255.255.255 UH        0 0          0 eth0
127.0.0.1       0.0.0.0         255.255.255.255 UH        0 0          0 lo
192.168.5.64    0.0.0.0         255.255.255.192 U         0 0          0 eth0
0.0.0.0         192.168.5.65    0.0.0.0         UG        0 0          0 eth0

And ippfvsadm -L says:

Protocol Local Addr:Port ==> 
                        Remote Addr           Connections
                        ...
TCP      192.168.4.37:23 ==>
                        192.168.5.124         2          

So, I'm getting that far, at least...

-- 
Jake Buchholz, ExecPC Sr. Systems Administrator :           /~\
jake@xxxxxxxxxx -- http://www.execpc.com/~jake  :    ASCII  \ /  Against
Fngrpt PGP262: 29f3322af2da07994dc03fdf1f50aed2 :   Ribbon   X   HTML
GnuPG: 53d97ab3d279f731e7d2fc1197ca38544423882b : Campaign  / \  Mail

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