Re: connection to disable an interface
- From: Andrei Borzenkov <arvidjaar gmail com>
- To: networkmanager-list gnome org
- Subject: Re: connection to disable an interface
- Date: Sat, 14 May 2022 07:38:02 +0300
On 14.05.2022 00:23, Adrian Freihofer via networkmanager-list wrote:
Hi
Is it somehow possible to disable an interface via NetworkManager?
I am thinking of something like:
nmcli connection modify con-eth0 802-3-ethernet.phy disabled
nmcli connection up con-eth0
which would basically have the same effect as:
ip link set eth0 down
nmcli connection modify con-eth0 802-3-ethernet.phy enabled
nmcli connection up con-eth0
which would basically have the same effect as:
ip link set eth0 up
The background is a security requirement. Unused interfaces must
ideally remain disabled at the physical layer when a cable is plugged
in. Ideally, the LEDs would also remain dark.
It sounds like
no-auto-default=*
mostly does what you want.
If this function does not exist yet, would it be interesting for
NetworkManager?
Could the functionality be implemented with reasonable effort or would
it be difficult to implement?
Thank you and regards,
Adrian
_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]