Bring up interface WITHOUT IP at boot
This seems like a trivial issue, but I can't seem to find a solution that fits my needs.
My box has 2 NICs, enp3s0 and enp0s31f6.
- enp0s31f6 is configured via systemd-network with static IP. No issues there.
- enp3s0 has no network configuration defined. It's used for a docker macvlan network and a bridged network with libvirt.
Anytime I reboot the machine, enp0s31f6 comes up properly configured, but the enp3s0 interface stays in a DOWN state. Needless to say, that kinda messes with the macvlan and bridge network.
How can I bring the enp3s0 interface UP at boot, but leave it unconfigured? And yes, both are plugged in at boot with a valid link. A simple ip link set enp3s0 up solves the issue with little headache. I would just like this interface up at boot.
TIA
About this post
- Posted
- Archived
- Score
- 10 · 79% up
- Kind
- Text
- ID
- gr93ol
2 comments
Create a systemd service and set up the interface there. Will allow for more tweaking down the line if you ever need a more complicated config for the interface
I’d just use a cron job but that might not be the “right” way to do it