Score:0

What is the simplest way to make ip link add/addr commands exist after a reboot?

cn flag

after each restart of my server (ubuntu server 20.04) i have to give these commands:

sudo ip link add macvlan0 link eth0 type macvlan mode bridge
sudo ip addr add 192.168.1.200/29 dev macvlan0
sudo ip link set macvlan0 up

Unfortunately doing some research I discovered that it is not enough to modify netplan and i would like to ask if anyone knows a simple method to get the macvlan0 interface working after reboot. Sorry my poor english, i hope you can understand my question.

guiverc avatar
cn flag
You've tagged `persistence`, so is this a *live* system (not a conventional installed system) booted from thumb-drive (etc) with persistence enabled?
waltinator avatar
it flag
Look at `examples.netplan.io`, and set up your configuration in netplan.
cn flag
@guiverc No, maybe I made a mistake in choosing the tag, it's a normal installation. What I try is to avoid giving these commands every time the server is restarted
cn flag
@waltinator unfortunately at the moment netplan does not support macvlan interfaces: https://bugs.launchpad.net/netplan/+bug/1664847
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.