From 22d12fd90260079e8a494221bfa519c95c9ed1c3 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Wed, 31 Jul 2024 23:37:57 +0800 Subject: [PATCH] tools/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