bottlerocket icon indicating copy to clipboard operation
bottlerocket copied to clipboard

Improve Network Configuration

Open cprivitere opened this issue 2 years ago • 14 comments

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:

  1. Some way to specify a match pattern for NICs that bottlerocket will configure any that match a specified pattern. IE instead of enp5s0f0np0, just specify ens*
  2. 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
    
  3. The ability to specify MAC address and have it configure whatever NIC has that address.
  4. Auto configuration of any NICs discovered to just do DHCP and pick the first available to communicate on.

cprivitere avatar Sep 30 '22 19:09 cprivitere