Make dummy network device persist

Dummy networking device seems to not be supported by NetworkManager.
What is the best practice way to make my dummy network device to be recreated after reboot?

Commands to create it manually:

ip link add dummen type dummy
ip link set dev dummen master brmen
ip link set dummen up

You can put that stuff in a script and start the script at login.
Heck … you could just string them together and start that at login, ex:

ip link add dummen type dummy && ip link set dev dummen master brmen && ip link set dummen up

Yes, login script is a possibility. But is it the best practice? I bet there is at least 5 different ways to do this. Which also means that when time has passed, I’ve forgotten where I did this settings, and when there becomes a need to do changes, I’m not going to find out where I put this. In my mind there is a place where network configs belong.
/etc/network/interfaces.d/ would be the place I’d expect to find this sort of config. But this seems not to be the correct location in manjaro.

I’d prefer this to start before login though, and be independent on which user(s) has logged in.

Solution:

nmcli connection add connection.interface-name dummen type dummy master brmen

Turns out that networkmanager can handle dummy from command line, but not in gui.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.