Mailing List Archive

[lvs-users] IPv6 Unique Local address virtual server with IPv6 link local address real server
Hello Team,



Is it possible to add IPv6 Unique Local address virtual server with IPv6 link local address real server. I tried and get the error mentioned below





root@l3-newversion-1~#ipvsadm -a -t [fd21:d1aa:194a:3515:0:1:0:0]:80 -r [fe80::5054:ff:fe35:a011]:80

Argument list too long

root@l3-newversion-1~#ipvsadm -v

ipvsadm v1.29 2016/12/23 (compiled with popt and IPVS v1.2.1)

root@l3-newversion-1~#uname -a

Linux l3-newversion-1 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux




Regards,
Sankar





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

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] IPv6 Unique Local address virtual server with IPv6 link local address real server [ In reply to ]
Hello,

On Wed, 30 May 2018, SankaraNarayanan S wrote:

> Hello Team,
>
>
>
> Is it possible to add IPv6 Unique Local address virtual server with IPv6 link local address real server. I tried and get the error mentioned below
>
>
>
>
>
> root@l3-newversion-1~#ipvsadm -a -t [fd21:d1aa:194a:3515:0:1:0:0]:80 -r [fe80::5054:ff:fe35:a011]:80

It is possible only if RIP is local IP, not for
remote link-local addresses. See this commit:

commit 3bfb92f4073aa829f8e67e459d54c79306ddbd73
Author: Sven Wegener <sven.wegener@stealer.net>
Date: Fri Sep 5 16:53:49 2008 +0200

ipvs: Reject ipv6 link-local addresses for destinations

We can't use non-local link-local addresses for destinations, without
knowing the interface on which we can reach the address. Reject them for
now.

...

@@ -838,7 +838,8 @@ ip_vs_new_dest(struct ip_vs_service *svc, struct
ip_vs_dest_user_kern *udest,
#ifdef CONFIG_IP_VS_IPV6
if (svc->af == AF_INET6) {
atype = ipv6_addr_type(&udest->addr.in6);
- if (!(atype & IPV6_ADDR_UNICAST) &&
+ if ((!(atype & IPV6_ADDR_UNICAST) ||
+ atype & IPV6_ADDR_LINKLOCAL) &&
!__ip_vs_addr_is_local_v6(&udest->addr.in6))
return -EINVAL;
} else

Regards

--
Julian Anastasov <ja@ssi.bg>

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

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