Page MenuHomeVyOS Platform

Ability to remap ethernet interfaces to other/new mac-addresses
Open, WishlistPublicFEATURE REQUEST

Description

Since it occasionally happens, that a vyos setup must be moved to another machine, either virtual or bare metal, or network hardware might be exchanged for whatever reason, it would be great, if vyos could ask at boot-time or first ssh session login after boot to remap previously configured ethernet interfaces to other/newly found mac-addresses. This occurs when the interfaces are not configured in the config.boot file, or a configuration points to mac-addresses which are not present anymore. This behaviour would be preferred, instead of throwing errors or remapping the interfaces to macs without active admin interaction to choose which particular interface is to be mapped to a certain mac.

This would tremendously ease the pain of migrating a working setup to a different/new underlying machine and would make the config.boot file almost as much worth as a full machine backup. Of course special configuration like RSA-IDs or Wireguard keypairs are not included, but it would be of exceptional help.

Details

Difficulty level
Hard (possibly days)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Improvement (missing useful functionality)

Event Timeline

syncer triaged this task as Wishlist priority.Tue, May 7, 4:32 AM
c-po changed Difficulty level from Unknown (require assessment) to Hard (possibly days).

There is an ongoing discussion in the background between the maintainers for more then a year how to get rid of the hw-id node in general and do such a detection once during initial boot.

There are some ideas but no proof-of-concept yet.

show configuration commands | no-match hw-id could be used in the meantime.