Comments (4)
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.
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.
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.
Closing as #158 has merged.
from resource-agents.
Related Issues (20)
- Theoretical security problem in SAPInstance HOT 3
- mysql: variable master_host empty on slave reboot
- Are awsvip and awseip still supported resources agents for RHEL HA? HOT 2
- awsvip versus AWS Policy HOT 3
- nothing provides /bin/ps needed by resource-agents-4.11.0 HOT 1
- WARNING: Can't get <node-name> xlog location. HOT 6
- ZFS promotion not working HOT 10
- Occasional false positive "down" reports from IPv6addr "monitor" action
- ZFS can't migrate to other node (cannot open pool: no such pool) HOT 2
- ERROR: LXC container name not set! HOT 23
- How to use the parameter of monitor_script?
- Unable to get metadata for resource agent 'stonith:fence_watchdog' (SyntaxError:JSON.parse:unexpected character at line 1) HOT 2
- master-pgsql attribute disappear HOT 1
- AWS Pacemaker awsvip failing with different errors HOT 4
- Resource agent - AWS Lambda support HOT 2
- Postfix RA continuously fails validate check HOT 1
- iSCSITarget - don't create default portal HOT 4
- resource-agents/heartbeat/ZFS - '-f' to option HOT 1
- "ocf : heartbeat : docker" does not exists in resource-agent v4.10 HOT 1
- How can I create a galera resource with two nodes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resource-agents.