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

net.toml: Support configuration using MAC instead of device name #2293

Closed
zmrow opened this issue Jul 22, 2022 · 2 comments · Fixed by #2622
Closed

net.toml: Support configuration using MAC instead of device name #2293

zmrow opened this issue Jul 22, 2022 · 2 comments · Fixed by #2622
Assignees
Labels
area/metal Bare metal support status/in-progress This issue is currently being worked on
Milestone

Comments

@zmrow
Copy link
Contributor

zmrow commented Jul 22, 2022

Currently the only way to configure a network device in net.toml is by device name:

[eno1]
...

It would be nice to be able to use MAC address as the key since many organizations already have the information and may not know how the device will be named.

[ab:cd:ef:gh:ij]
...
@zmrow zmrow added the area/metal Bare metal support label Jul 22, 2022
@zmrow zmrow changed the title net.toml: Support configuration of network devices using MAC instead of device name net.toml: Support configuration using MAC instead of device name Jul 22, 2022
@bcressey
Copy link
Contributor

It feels oddly specific to know the MAC address but not know or care what network device is the "primary" one for the purposes of getting DHCP leases, setting the hostname, or registering the node with the Kubernetes cluster.

What's the larger architectural context here?

@Cajga
Copy link

Cajga commented Aug 23, 2022

This initiative seems to be interesting. Let me add our use case:
EKS-A bare metal requires to define the MAC address at first place so, the built-in DHCP server will reply on the DHCP request from the new HW. The MAC is normally written on the HW/Server with a sticker.
In the next step, one needs to define the net.toml in a template file which will work for the node. But as hinted above, no one knows the Linux interface name for a new HW before it booted a Linux... So, what we do now is that we boot a Ubuntu Live and check the interface name so we can create the net.toml file in the EKS-A bare metal config.

Personally, I am not sure if using the MAC here is the best solution (as one normally is able to change a MAC of a given interface through network config) but who knows :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metal Bare metal support status/in-progress This issue is currently being worked on
Projects
Development

Successfully merging a pull request may close this issue.

5 participants