Skip to content

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

10 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
10 · 79% up
Kind
Text
ID
gr93ol

Author

1
posts
14
comments
0
media
View profile

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

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.