From: Gionatan Danti <g.danti@assyoma•it>
To: netdev@vger•kernel.org
Subject: Force mavtap interfaces up
Date: Mon, 02 May 2022 18:30:10 +0200 [thread overview]
Message-ID: <116c870676ecab331ec3c76aaec7bf0f@assyoma.it> (raw)
Dear list,
I would like to ask if, and how, it is possible to force a macvtap
interface up even when the underlying physical device has no link
(reporting NO-CARRIER).
From my understanding, I can do that via something as "ip link set
macvtap0 protodown off". And it works, indeed. However, if the
underlying physical device is plugged & unplugged again, the macvtap0
interface goes down with it; to restore it, I need to re-run the above
"protodown off" command.
Does a method exists to always force one or more macvtap interfaces up,
regardless the physical link status?
Full disclosure: I am trying to use macvtap rather than plain bridge for
a KVM host and I stumbled across the behavior described above. If the
physical interface is disconnected, the guests lose connection with each
other. With a classical bridge setup, disconnecting the physical
interface only interrupt communication with outer guest/hosts (but
internal traffic is preserved).
Regards.
--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@assyoma•it - info@assyoma•it
GPG public key ID: FF5F32A8
reply other threads:[~2022-05-02 16:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=116c870676ecab331ec3c76aaec7bf0f@assyoma.it \
--to=g.danti@assyoma$(echo .)it \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox