bottlerocket
bottlerocket copied to clipboard
Improve Network Configuration
What I'd like: We're supporting using bottlerocket on bare metal as part of EKS Anywhere running on Equinix Metal.
One of the most limiting and difficult to configure aspects is the NIC configuration. This is due to bare metal servers (even those of a particular plan type like m3.large.x86 or c3.medium.x86) not always having identical configurations. Sometimes network cards aren't the same, sometimes they don't all get plugged into the same slot. The current method of specifying the exact name of the networking card makes supporting this sort of environment near impossible.
Ideas we think would be good:
- Some way to specify a match pattern for NICs that bottlerocket will configure any that match a specified pattern. IE instead of
enp5s0f0np0
, just specifyens*
- The ability to specify multiple NICs and bottlerocket to try configuring them in order and once one works, use it as primary.
So in this scenario we would have a net.toml that looks like this (primary=auto just a made up idea to express the desired behavior):
[enp131s0f0np0] dhcp4 = true dhcp6 = false primary = auto [enp5s0f0np0] dhcp4 = true dhcp6 = false primary = auto [enp1s0f0np0] dhcp4 = true dhcp6 = false primary = auto
- The ability to specify MAC address and have it configure whatever NIC has that address.
- Auto configuration of any NICs discovered to just do DHCP and pick the first available to communicate on.