public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* Force mavtap interfaces up
@ 2022-05-02 16:30 Gionatan Danti
  0 siblings, 0 replies; only message in thread
From: Gionatan Danti @ 2022-05-02 16:30 UTC (permalink / raw)
  To: netdev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-02 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02 16:30 Force mavtap interfaces up Gionatan Danti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox