GithubHelp home page GithubHelp logo

Comments (4)

kskmori avatar kskmori commented on July 19, 2024

Hi,

I don't have much knowledge about such configuration, but isn't address labels usable for your purpose by any chance?
http://lists.debian.org/debian-isp/2011/05/msg00047.html
http://linux-hacks.blogspot.jp/2008/07/default-address-selection-part-2.html

If we need to add a such options anyway, I would prefer using ip command rather than writing a C code in IPv6addr.
I'm just trying to write a dual-stack version of IPaddr2 for another sake,
http://www.gossamer-threads.com/lists/linuxha/dev/76429
and if once the proposal is accepted by everybody it would be pretty easy to add a configurable parameter to pass extra options to ip command.

Otherwise we could add some C code for IPv6addr RA but the new parameter would be very specific only for this purpose.

Just for my curiosity, if you don't mind, could you tell me why do you need to preserve a static source address rather than using a virtual address? Because most of users around me want to always use the virtual (newly added) address as the source address (that's why IPsrcaddr exists in IPv4), otherwise the source address would changes every time a fail over occurred.

from resource-agents.

bradjones1 avatar bradjones1 commented on July 19, 2024

First off, thanks for responding.

Re: using labels for address selection, I am not an IP stack expert but I don't think it's an option. By the way I read it: Using labels is good if the destination address you're requesting is 1::1 and you are choosing between, say, two global addresses 1::1 and 2::1 -- it will choose the one with the shortest matching prefix. Or, a global address over one configured link-local. But since my global addresses are all on the same /64, they all pass the label rules the same. I'd love to be corrected on this, but I haven't found anything on the web indicating a way to use labels to select one of many same-subnet addresses.

I think your suggestion of a more flexible ip command RA is best; that way you can pass any options accepted by ip (there are a lot...) the preferred_lft flag being one of them.

And my reasoning is mostly with respect to predictability; calls from a server to, say, an API may be subject to IP restrictions and I shouldn't have to go back and edit those to accommodate whatever address gets added "last" at any particular time... and B) why not -- IPv6 is kinda a hobby and I'm interested in figuring it out. It's easy to accomplish this with IPv4, since the tiebreaker rule is the opposite - the FIRST address configured is the source, all other things being equal.

from resource-agents.

kskmori avatar kskmori commented on July 19, 2024

Hi,

I have been investigating related to this and I now consider that it could be solved using address labels by the command something like:

ip addrlabel add prefix fd00:172:20:25::243 label 99

Would it work for your purpose too?

for more details and the related discussion, please see here:

I would appreciate for your any comments.
Thanks,

from resource-agents.

kskmori avatar kskmori commented on July 19, 2024

Closing as #158 has merged.

from resource-agents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.