From 4bc69c56ad80924f57213c8934b27f5280bd483b Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Mon, 22 Jan 2024 23:14:57 +0800 Subject: [PATCH] ignore-veth.sh --- tools/ignore-veth.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tools/ignore-veth.sh diff --git a/tools/ignore-veth.sh b/tools/ignore-veth.sh new file mode 100755 index 0000000..7a84b2d --- /dev/null +++ b/tools/ignore-veth.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# https://forums.opensuse.org/t/networkmanager-shows-connection-to-lo/164441/13 +# https://man.archlinux.org/man/NetworkManager.conf.5.en#Device_List_Format +# https://access.redhat.com/documentation/ru-ru/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-networkmanager-to-ignore-certain-devices_configuring-and-managing-networking + +sudo touch /etc/NetworkManager/conf.d/10-ignore-veth.conf +sudo tee < /dev/null +# Disable virtual interfaces to be managed via NetworkManager +[keyfile] +unmanaged-devices=interface-name:veth* + +EOF +sudo systemctl reload NetworkManager