LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

how to do if I have different netmask

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: how to do if I have different netmask
From: sean zheng <seanzheng@xxxxxxxxxxx>
Date: Thu, 12 Jul 2001 22:29:42 -0700
Hi,
        The following is a test config file /etc/lvs.cf
primary = 10.2.0.25
service = lvs
rsh_command = rsh
backup_active = 1
backup = 10.2.0.26
heartbeat = 0
heartbeat_port = 1050
keepalive = 2
deadtime = 10
network = nat
nat_router = 192.168.102.1 eth1:1
virtual vstest {
     active = 1
     address = 10.2.0.28 eth0:1
     port = 80
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     load_monitor = uptime
     scheduler = rr
     protocol = tcp
     timeout = 6
     reentry = 15
     server vstest1 {
         address = 192.168.102.10
         active = 1
         weight = 1000
     }
     server vstest2 {
         address = 192.168.102.11
         active = 1
         weight = 1000
     }
}

        Please be noted, the address for the virtual machine is 10.2.0.28 which 
is a class A ip address. When 
the lvs starts working, it uses "ifconfig eth0:1 10.2.0.28 up" to set the ip 
address, unfortunately Linux use a 
default netmask 255.0.0.0 for this interface which is different from our 
netmask (our netmark is 255.255.0.0)
My question is how to sepecify a netmaks for this interface.
        Could someone help me out. Thanks




Regards,
sean


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