LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] broadcast address for VIP

To: linbo liao <llbgurs@xxxxxxxxx>
Subject: Re: [lvs-users] broadcast address for VIP
Cc: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Julian Anastasov <ja@xxxxxx>
Date: Sun, 25 Dec 2016 12:52:52 +0200 (EET)
        Hello,

On Sun, 25 Dec 2016, linbo liao wrote:

> I saw most of example will configure broadcast address for VIP, and
> broadcast address is same as VIP.  Like VS-DRouting
> <http://www.linuxvirtualserver.org/VS-DRouting.html>.
> 
> Refer to netmask for VIP
> <http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.ipvsadm.html#netmask_for_VIP>,
> netmask should be 255.255.255.255. But for broadcast , I can't figure out
> the reason, why should set broadcast same as vip address explicitly ?

        Do not provide broadcast address when configuring VIP.
As VIP is part from some subnet, the broadcast addresses are
automatically generated by the kernel when the primary (first)
IP in subnet was added, see fib_add_ifaddr() for reference.
VIPs should be configured with /32 (255.255.255.255 netmask),
so no broadcast is created for them, for example:

1. add RIP/24 on eth0 (first and last address are created as broadcasts)
2. add VIP/32 on lo (for real server) or on eth0 (for director)

Regards

--
Julian Anastasov <ja@xxxxxx>

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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