Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Support IPv6 #10

Closed
roeme opened this issue Mar 5, 2014 · 7 comments
Closed

Support IPv6 #10

roeme opened this issue Mar 5, 2014 · 7 comments

Comments

@roeme
Copy link

roeme commented Mar 5, 2014

I think we can safely assume that it's about time :)

Referring to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529383 , is there a general idea on what needs to be changed, apart from the ip format check? My C is a bit (read: quite) rusty, so I wasn't quite able to infer this from glancing over the code. (Might be also because of the lack of comments, but then again, probably my code monkeying skills).

@pedroapero
Copy link

pedroapero commented Feb 14, 2017

You may use native ifupdown to add some IPv6 support to ucarp. Here is how I do it:

auto eth0
iface eth0 inet static
  address 10.0.0.1
  netmask 255.255.255.0
  ucarp-vid 1
  ucarp-vip 10.0.0.3
  ucarp-password shared_password
  ucarp-master yes

iface eth0:ucarp inet static
  address 10.0.0.3
  netmask 255.255.255.0

iface eth0:ucarp inet6 static
  address AA:AA:AA::01
  netmask 64

The CARP protocol is still performed using IPv4: you need to have a shared IPv4 anyways.

@roeme
Copy link
Author

roeme commented Feb 14, 2017

This issue is not about bringing IPv6 addresses up/down, but using ucarp within an IPv6-only environment. Last time I checked, while there is already quite a bit of ifndef'ed INET6 socket code, some is still missing.

@mdsalman729
Copy link

Is Ipv6 supported with ucarp now?

@jedisct1
Copy link
Owner

Nope.

@mdsalman729
Copy link

Have there been any efforts towards porting? I am stuck at implementing the neighbor discovery.
Looks like there is no netinet6 library support on linux. Do you think this is the right approach?

@jedisct1
Copy link
Owner

Support for IPv6 exists in OpenBSD and has actually been there forever.

I removed it when porting the code as IPv6 wasn't deployed anywhere and to keep things simple. But that part can certainly be ported.

@mdsalman729
Copy link

mdsalman729 commented Jul 20, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants