Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Link-Local" mac format? #15

Open
James-E-A opened this issue Jun 17, 2018 · 3 comments
Open

"Link-Local" mac format? #15

James-E-A opened this issue Jun 17, 2018 · 3 comments

Comments

@James-E-A
Copy link

James-E-A commented Jun 17, 2018

I've got my network set up currently as:

               prefix ~ address
                      |
fd 04 : b9 0a : 14 30 : fe 80 : $llamac$
|   |   |   |   |   |   "fe80"
ULA |   185.10.68.174
"IPv4"

(Yeah, it's not exactly kosher per se; but that's beside the point, which is everything past the /48 line)

Where llamac translates to the link-local formatted MAC address of the device.

However, this requires adding entries manually. (Thankfully, the devices still work well under fd04:b90a:1430::$mac$ until they're added to the database!)

Is there a way to do any kind of processing on MAC addresses to calculate the assigned IPv6 address? Whether that be for this, or for something with a bit more utility; it seems like this would be a nice feature. Does it already exist, though? / Am I just missing it?

@HenriWahl
Copy link
Owner

I am sorry but do not fully get the question - can you explain deeper what you want to achieve? Should the MAC be part of the IPv6 address (which is possible right now)? Or the EUI-64 formatted address part of the fe80 link local address? In the second case there is no way right now but I guess it would not make much sense because the same job with the same resulting addresses could be done by a plain router software like radvd.

@James-E-A
Copy link
Author

James-E-A commented Jun 17, 2018

Basically, right now, it has built in to it the ability to literally translate a MAC address into a piece of an IPv6 address, byte-for-byte.

Is there currently any way to apply any sort of algorithm to interpreting MAC addresses? (other than direct "cat-style translation")

For instance, if I wanted to only use the last 3 bytes of the MAC in determining the assigned IPv6 of clients, could that be done? Or to use a particular hashing algorithm?

Or even a way just to feed all the known attributes of a host into a script or such, to hook in any kind of arbitrary assignment system, whether stateless or centralized

@HenriWahl
Copy link
Owner

Well, this is not possible right now. What would be the benefit?

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

No branches or pull requests

2 participants