LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: how to do if I have different netmask

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: how to do if I have different netmask
From: Michael E Brown <michael_e_brown@xxxxxxxx>
Date: Fri, 13 Jul 2001 10:08:04 -0500 (CDT)
Looks like you are using RedHat Piranha. Try getting the latest version,
it has support for non-standard netmasks.
--
Michael Brown
Dell Computer Corp

On Thu, 12 Jul 2001, sean zheng wrote:

> 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
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>



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