LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: how to do if I have different netmask

To: 'sean zheng ' <seanzheng@xxxxxxxxxxx>, "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx '" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: how to do if I have different netmask
From: Peter Mueller <pmueller@xxxxxxxxxxxx>
Date: Fri, 13 Jul 2001 00:57:37 -0700
pulse is NOT supported here.  It's a redhat program, and from what I can see
the LVS group doesn't really seem to like it much... 

try redhat support if you're bent on using them.  people her like LVS or
ultramonkey.

good luck :)

-----Original Message-----
From: sean zheng
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Sent: 7/12/01 11:26 PM
Subject: Re: how to do if I have different netmask

Hi,
        Thanks for your prompt help. 
        Yes, manually I can do so, but the thing is the "ifconfig" is
run through program "pulse".
Is there any way to set the netmask in the /etc/lvs.cf which is read by
pulse, so we can let pulse 
can run "ifconfig" using 
        ifconfig eth0:1 10.2.0.28 netmask 255.255.0.0 up 
        NOT
        ifconfig eth0:1 10.2.0.28 up ( in this way, ifconfig assigns a
netmask 255.0.0.0 to this interface just
based on 10.xx.xx.xx is a Class A ipaddress)

          eth0:1    Link encap:Ethernet  HWaddr 02:20:17:3E:EF:4D  
          inet addr:10.2.0.28  Bcast:10.255.255.255  Mask:255.0.0.0
<---- wrong netmask and broadcase 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0x8000 




Regards,
haizhou
        

*********** REPLY SEPARATOR  ***********

On 7/12/01 at 10:58 PM jik@xxxxxxxxxxxxxxx wrote:

>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
>
>ifconfig eth0:1 10.2.0.28 netmask 255.255.255.0
>
>or whatever....
>> 
>> 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
>
>_______________________________________________
>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



_______________________________________________
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>